{"action":"created","issue":{"url":"https://api.github.com/repos/ripanea/SLURM_Status/issues/1","labels_url":"https://api.github.com/repos/ripanea/SLURM_Status/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/ripanea/SLURM_Status/issues/1/comments","events_url":"https://api.github.com/repos/ripanea/SLURM_Status/issues/1/events","html_url":"https://github.com/ripanea/SLURM_Status/issues/1","id":118231613,"number":1,"title":"Make partitions dynamic rather than specific to one cluster","user":{"login":"hlapp","id":51458,"avatar_url":"https://avatars.githubusercontent.com/u/51458?v=3","gravatar_id":"","url":"https://api.github.com/users/hlapp","html_url":"https://github.com/hlapp","followers_url":"https://api.github.com/users/hlapp/followers","following_url":"https://api.github.com/users/hlapp/following{/other_user}","gists_url":"https://api.github.com/users/hlapp/gists{/gist_id}","starred_url":"https://api.github.com/users/hlapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hlapp/subscriptions","organizations_url":"https://api.github.com/users/hlapp/orgs","repos_url":"https://api.github.com/users/hlapp/repos","events_url":"https://api.github.com/users/hlapp/events{/privacy}","received_events_url":"https://api.github.com/users/hlapp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-22T01:10:34Z","updated_at":"2015-11-23T17:20:45Z","closed_at":null,"body":"The \"lowmem\", \"highmem\", and \"interactive\" partitions should be obtained dynamically by the script rather than hardcoded so that they are not specific to our cluster. (And even there they will be changed in the near future.)"},"comment":{"url":"https://api.github.com/repos/ripanea/SLURM_Status/issues/comments/159001152","html_url":"https://github.com/ripanea/SLURM_Status/issues/1#issuecomment-159001152","issue_url":"https://api.github.com/repos/ripanea/SLURM_Status/issues/1","id":159001152,"user":{"login":"ripanea","id":11778890,"avatar_url":"https://avatars.githubusercontent.com/u/11778890?v=3","gravatar_id":"","url":"https://api.github.com/users/ripanea","html_url":"https://github.com/ripanea","followers_url":"https://api.github.com/users/ripanea/followers","following_url":"https://api.github.com/users/ripanea/following{/other_user}","gists_url":"https://api.github.com/users/ripanea/gists{/gist_id}","starred_url":"https://api.github.com/users/ripanea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ripanea/subscriptions","organizations_url":"https://api.github.com/users/ripanea/orgs","repos_url":"https://api.github.com/users/ripanea/repos","events_url":"https://api.github.com/users/ripanea/events{/privacy}","received_events_url":"https://api.github.com/users/ripanea/received_events","type":"User","site_admin":false},"created_at":"2015-11-23T17:20:45Z","updated_at":"2015-11-23T17:20:45Z","body":"That's a good point! I was thinking we can obtain the required information from two SLURM commands:\r\n\r\n* partition names for all the nodes can be obtained from **sinfo --noheader --format=\"...\"**\r\n* cpu number (as _CPUTot_) and memory total (as _RealMemory_) can be obtained from **scontrol show nodes --oneliner** , so the user can see the \"lowmem\" and \"himem\", by looking at these numbers\r\n\r\nWe might probably have to create a class *Node* to organize the data\r\n\r\nFor the user based part, we won't need to separate the resources per user on \"lowmem\", \"highmem\" or \"interactive\". We can make it just a total for each resource OR we can separate in \"interactive\" and \"others\". What do you think? "}}