1
0
Fork 0

better status information on shutdown

This commit is contained in:
jsteemann 2018-07-30 19:27:19 +02:00
parent 2a416f2e33
commit efa5e8faa3
1 changed files with 13 additions and 1 deletions

View File

@ -927,7 +927,19 @@ function shutdownInstance (instanceInfo, options, forceTerminate) {
}
});
if (toShutdown.length > 0) {
print(toShutdown.length + ' arangods ' + nonAgenciesCount + ' not agents are still running...');
let roles = {};
toShutdown.forEach(arangod => {
if (!roles.hasOwnProperty(arangod.role)) {
roles[arangod.role] = 0;
}
++roles[arangod.role];
});
let roleNames = [];
for (let r in roles) {
// e.g. 2 + coordinator + (s)
roleNames.push(roles[r] + ' ' + r + '(s)');
}
print(roleNames.join(', ') + ' are still running...');
require('internal').wait(1, false);
}
}