Commit 4ddd2e68 by Dudás Ádám

vm: property for getting total ram size including overcommit

parent fd69bf89
...@@ -153,6 +153,12 @@ class Node(TimeStampedModel): ...@@ -153,6 +153,12 @@ class Node(TimeStampedModel):
return self.remote_query(vm_tasks.get_ram_size) return self.remote_query(vm_tasks.get_ram_size)
@property
def ram_size_with_overcommit(self):
"""Bytes of total memory including overcommit margin.
"""
return self.ram_size * self.overcommit
def get_remote_queue_name(self, queue_id): def get_remote_queue_name(self, queue_id):
return self.host.hostname + "." + queue_id return self.host.hostname + "." + queue_id
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment