0

Is it possible to use zookeeper to monitor the server resources or to retrieve a number representing the total RAM available?

f_puras
  • 2,521
  • 4
  • 33
  • 38

2 Answers2

2

Apache Zookeeper is not a monitoring tool, it's a distributed manager for configuration sharing, naming and synchronization.

Here is a good description of what Apache Zookeeper is and how it can be used - https://stackoverflow.com/a/8864303/2453586

You can make a workaround and write a script that will check the amount of available RAM every N minutes/seconds (via cron or like a deamonized process) on each local machine and write this value to Zookeeper znode, like zookeeper_host:2181/ram/host1/available. But it's not a good idea.

It's more likely to use a specific tools like Zabbix, Nagios or Gangila for memory monitoring purposes.

Community
  • 1
  • 1
Vit D
  • 193
  • 1
  • 7
  • 25
0

You are probably looking for something like jmx.

sbridges
  • 24,960
  • 4
  • 64
  • 71