Netflix / dynomite

A generic dynamo implementation for different k-v storage engines
Apache License 2.0
4.2k stars 533 forks source link

Print test cluster topology information #633

Closed smukil closed 5 years ago

smukil commented 5 years ago

This patch prints the cluster topology information when starting a test cluster, along with the PIDs of each Dyno node which is useful for quicker debugging (attaching GDB to process, etc.).

smukil commented 5 years ago

FYI, the output looks like this when starting up a test cluster:

Cluster topology:-
  * DC: dc1
    * Rack: rack1
      * Node: DynoNode: 127.0.1.2:8102  || PID: 11876
  * DC: dc2
    * Rack: rack1
      * Node: DynoNode: 127.0.1.3:8102  || PID: 11886
    * Rack: rack2
      * Node: DynoNode: 127.0.1.4:8102  || PID: 11893
      * Node: DynoNode: 127.0.1.5:8102  || PID: 11900
    * Rack: rack3
      * Node: DynoNode: 127.0.1.6:8102  || PID: 11907
      * Node: DynoNode: 127.0.1.7:8102  || PID: 11914
      * Node: DynoNode: 127.0.1.8:8102  || PID: 11921
      * Node: DynoNode: 127.0.1.9:8102  || PID: 11928

/   /   Waiting for cluster to start    /   /
ipapapa commented 5 years ago

LGTM