We should send stats (number of xmits, available disk space, etc) from the datanode to zookeeper every 3(?) seconds. The stats will be added to the existing DataNodePayload struct in zk_dn_client.h
DataNodePayload fields:
uint32_t ipcPort;
uint32_t xferPort;
uint64_t disk_bytes; //total space on disk
uint64_t free_bytes; //free space on disk
uint32_t xmits; //current number of xmits
We should send stats (number of xmits, available disk space, etc) from the datanode to zookeeper every 3(?) seconds. The stats will be added to the existing DataNodePayload struct in zk_dn_client.h
DataNodePayload fields: uint32_t ipcPort; uint32_t xferPort; uint64_t disk_bytes; //total space on disk uint64_t free_bytes; //free space on disk uint32_t xmits; //current number of xmits