You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're using amphp to create a WebSocket server. We are intermittently seeing Client denied messages in our logs. We would like to expose the current number of active connections as a Prometheus gauge and then have Kubernetes evaluate that number to automatically scale up the number of pods so we can handle more connections.
Is this currently possible or would we first need a way to collect the number of active connections from ConnectionLimitingClientFactory first? Alternatively, can we implement this ourselves via some kind of counter++ and counter-- logic in some handler that guarantees our numbers will not get out of sync due to exceptions and miscellaneous networking errors?
The text was updated successfully, but these errors were encountered:
Hey @rcjsuen, the code you linked is a limit per IP, not an overall limit for the server. If you reach the limits per IP, you probably don't want to scale up, but rather if you hit the overall limit of connections per server instance?
http-server/src/Driver/ConnectionLimitingClientFactory.php
Lines 47 to 58 in b9f6a9e
We're using amphp to create a WebSocket server. We are intermittently seeing
Client denied
messages in our logs. We would like to expose the current number of active connections as a Prometheus gauge and then have Kubernetes evaluate that number to automatically scale up the number of pods so we can handle more connections.Is this currently possible or would we first need a way to collect the number of active connections from
ConnectionLimitingClientFactory
first? Alternatively, can we implement this ourselves via some kind ofcounter++
andcounter--
logic in some handler that guarantees our numbers will not get out of sync due to exceptions and miscellaneous networking errors?The text was updated successfully, but these errors were encountered: