Is there any way to get pod's TCP or WebSocket connection count on Google Kubernetes Engine? My point is, i need to create and scale new pod instance if my pod's connection count (not request) is over 2000? I read GKE's and Google StackDriver's documents but there is no info about connection count.
Asked
Active
Viewed 544 times
1 Answers
0
According to autoscaling metrics documentation for GKE, any Stackdriver metric can be used for auto scaling as long as metricType = INT64 or DOUBLE.
Saying this, there are currently no GCP Stackdriver metrics in that table that can scale depending on connection or websockets.
To do what you want, you can look into Autoscaling with custom metrics.
![](../../users/profiles/508462.webp)
Ashik Mahbub
- 31
- 3