Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions packages/server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ wssController.on('connection', (ws, req) => {
const firstSpareWorkerId = nextSpareWorkerId;
do {
const mainDeviceId = identifyControlChannelFromWorkerId(nextSpareWorkerId);
log.info(`CONTROLLER: Found ${mainDeviceId} connects to workerId ${nextSpareWorkerId}`);
log.debug(`CONTROLLER: Found ${mainDeviceId} connects to workerId ${nextSpareWorkerId}`);
if (mainDeviceId == null) {
log.info(`CONTROLLER: Warning - found ${nextSpareWorkerId} in pool with no record of main device`);
unallocatedConnections.push(nextSpareWorkerId);
Expand Down Expand Up @@ -288,7 +288,8 @@ wssController.on('connection', (ws, req) => {
// no devices found, return the original one back to pool
unallocatedConnections.push(nextSpareWorkerId);
log.info(
`CONTROLLER: New connection from ${req.socket.remoteAddress} - no Devices available outside cooldown, rejecting`,
`CONTROLLER: New connection from ${req.socket.remoteAddress} - no Devices available outside cooldown, which is set to ${config.monitor.deviceCooldown} seconds. `+
`If you're seeing this, either increase the number of devices, reduce the demand for workers, or decrease the device cooldown. Rejecting connection.`,
);
// error!
ws.close(3001, 'All devices are in cooldown');
Expand Down