Merge pull request #1357 from jzhou77/ratekeeper

Add data distributor and ratekeeper to status output
This commit is contained in:
Evan Tschannen 2019-03-26 16:07:44 -07:00 committed by GitHub
commit 75f2929f6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -600,6 +600,14 @@ ACTOR static Future<JsonBuilderObject> processStatusFetcher(
roles.addRole("master", db->get().master);
roles.addRole("cluster_controller", db->get().clusterInterface.clientInterface);
if (db->get().distributor.present()) {
roles.addRole("data_distributor", db->get().distributor.get());
}
if (db->get().ratekeeper.present()) {
roles.addRole("rate_keeper", db->get().ratekeeper.get());
}
state std::vector<std::pair<MasterProxyInterface, EventMap>>::iterator proxy;
for(proxy = proxies.begin(); proxy != proxies.end(); ++proxy) {
roles.addRole( "proxy", proxy->first, proxy->second );