Skip to content

Commit

Permalink
Merge pull request #15457 from jrafanie/add_server_mb_usage_in_evm_st…
Browse files Browse the repository at this point in the history
…atus

Add server MB usage to rake evm:status and status_full.
  • Loading branch information
bdunne committed Aug 1, 2017
2 parents 4ac490d + 0476fa7 commit 83726a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/tasks/evm_application.rb
Expand Up @@ -81,11 +81,12 @@ def self.output_servers_status(servers)
s.drb_uri,
s.started_on && s.started_on.iso8601,
s.last_heartbeat && s.last_heartbeat.iso8601,
(mem = (s.proportional_set_size || s.memory_usage)).nil? ? "" : mem / 1.megabyte,
s.is_master,
s.active_role_names.join(':'),
]
end
header = ["Zone", "Server", "Status", "ID", "PID", "SPID", "URL", "Started On", "Last Heartbeat", "Master?", "Active Roles"]
header = ["Zone", "Server", "Status", "ID", "PID", "SPID", "URL", "Started On", "Last Heartbeat", "MB Usage", "Master?", "Active Roles"]
puts data.unshift(header).tableize
end

Expand Down

0 comments on commit 83726a9

Please sign in to comment.