KBEC-00330 - How to get server data from all servers in an HA setup

Summary

If you use ectool commands to query for server information without specifying a particular server in an HA setup, the load balancer will make a random selection out of the cluster and return its data. This behavior and the information it presents may be misleading. Server data commands that are affected by this includes:

  • getServerInfo
  • getServerStatus
  • dumpStatistics

Solution

You must specify a single server in the cluster with the --server option with each command. You must run the command once for each server in the cluster if you want information from all of them.

Examples

Suppose we have a simple HA setup with two servers foo and bar. If we simply run this command:

ectool dumpStatistics --clearStatistics true --fileName stats.txt

the load balancer will select between foo and bar essentially at random. There is no way to tell which server the returned statistics belongs to.

To get the internal timing statistics for the entire two-server cluster, run the following commands:

ectool --server foo dumpStatistics --clearStatistics true --fileName stats_foo.txt
ectool --server bar dumpStatistics --clearStatistics true --fileName stats_bar.txt

Applies to

  • Product versions: 5.x and above
  • OS versions: All
Have more questions? Submit a request

Comments

Powered by Zendesk