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
Clients (including the console) today use the GetGatewayConnectionStats (and it's HTTP end point) to fetch stats for a single gateway.
With #5536 we now support a new BatchGetGatewayConnectionStats end point that can retrieve the connection stats for a batch of gateways in a single call.
Why do we need this? Who uses it, and when?
Switching to the new BatchGetGatewayConnectionStats RPC will drastically reduce the API calls made (esp) by the console to TTS.
Proposed Implementation
Use BatchGetGatewayConnectionStats (/gs/gateways/connection/stats HTTP end point) and post the list of gateway IDs.
Make sure to check the gateway_server_address of each gateway, collect gateways that have a common address (cluster) and send the request to the GS of that address (cluster).
Contributing
I can help by doing more research.
I can help by implementing the feature after the proposal above is approved.
I can help by testing the feature before it's released.
Summary
Use Gateway Stats Batch API in the Console.
Current Situation
Clients (including the console) today use the
GetGatewayConnectionStats
(and it's HTTP end point) to fetch stats for a single gateway.With #5536 we now support a new
BatchGetGatewayConnectionStats
end point that can retrieve the connection stats for a batch of gateways in a single call.Why do we need this? Who uses it, and when?
Switching to the new
BatchGetGatewayConnectionStats
RPC will drastically reduce the API calls made (esp) by the console to TTS.Proposed Implementation
Use
BatchGetGatewayConnectionStats
(/gs/gateways/connection/stats
HTTP end point) and post the list of gateway IDs.Make sure to check the
gateway_server_address
of each gateway, collect gateways that have a common address (cluster) and send the request to the GS of that address (cluster).Contributing
Code of Conduct
The text was updated successfully, but these errors were encountered: