Module: Memory::Master

Defined in:
lib/poolparty/monitors/memory.rb

Instance Method Summary collapse

Instance Method Details

#memoryObject

Get the average memory usage over the cloud



9
10
11
# File 'lib/poolparty/monitors/memory.rb', line 9

def memory
  nodes.size > 0 ? nodes.inject(0) {|i,a| i += a.memory } / nodes.size : 0.0
end