add support for running in AWS autoscale cluster with graceful scale-in and standby

This commit is contained in:
Dave Horton
2020-04-19 16:32:52 -04:00
parent 86cc137085
commit d31c53d383
8 changed files with 284 additions and 6 deletions

View File

@@ -44,6 +44,7 @@ class SessionTracker extends Emitter {
assert(callSid);
this.sessions.delete(callSid);
this.logger.info(`SessionTracker:remove callSid ${callSid}, we have ${this.sessions.size} being tracked`);
if (0 === this.sessions.size) this.emit('idle');
}
/**