Sha256: 8ff4f835360bdaeb900565aa8f27697751e6ca3e92a3881f2c25a49f8255c7a9
Contents?: true
Size: 1.18 KB
Versions: 2
Compression:
Stored size: 1.18 KB
Contents
# encoding: UTF-8 module RocketJob # Heartbeat # # Information from the server as at it's last heartbeat class Heartbeat include MongoMapper::EmbeddedDocument embedded_in :server # Time of the last heartbeat received from this server key :updated_at, Time # Number of threads running as at the last heartbeat interval key :active_threads, Integer # Number of threads in the pool # This number should grow and shrink between 1 and :max_threads key :current_threads, Integer # # Process Information # # Percentage utilization for the server process alone key :process_cpu, Integer # Kilo Bytes used by the server process (Virtual & Physical) key :process_mem_phys_kb, Integer key :process_mem_virt_kb, Integer # # System Information # # Percentage utilization for the host machine key :host_cpu, Integer # Kilo Bytes Available on the host machine (Physical) key :host_mem_avail_phys_kbytes, Float key :host_mem_avail_virt_kbytes, Float # If available key :load_average, Float end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rocketjob-0.8.0 | lib/rocket_job/heartbeat.rb |
rocketjob-0.7.0 | lib/rocket_job/heartbeat.rb |