Skip to content

Increase activeConnectionsPerPod for pusher and backend-listen - #6690

Merged
beastoin merged 1 commit into
mainfrom
task/increase-activeConnectionsPerPod-for-backend-listen-and-pusher
Apr 16, 2026
Merged

beastoin merged 1 commit into
mainfrom
task/increase-activeConnectionsPerPod-for-backend-listen-and-pusher

Conversation

@thainguyensunya

Copy link
Copy Markdown
Collaborator

Change:

  • Increase activeConnectionsPerPod for pusher and backend-listen (22 -> 30)

@greptile-apps

greptile-apps Bot commented Apr 16, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR increases activeConnectionsPerPod from 22 to 30 in the production Helm values for both the backend-listen and pusher services. This raises the HPA threshold for WebSocket connections per pod by ~36%, meaning the cluster will scale out less aggressively under the same load — effectively increasing the maximum connections handled per pod before a new replica is added.

Confidence Score: 5/5

Safe to merge — purely a production autoscaling threshold adjustment with no code logic changes.

Both files change a single integer HPA threshold in a symmetric, intentional way. No code logic, no migrations, no security implications. All other autoscaling parameters (minReplicas, maxReplicas, scale-up/down policies, PDB) are unchanged.

No files require special attention.

Important Files Changed

Filename Overview
backend/charts/backend-listen/prod_omi_backend_listen_values.yaml Increases activeConnectionsPerPod from 22 to 30; HPA min/max replicas (20-60) and requestsPerPod: 10 are unchanged.
backend/charts/pusher/prod_omi_pusher_values.yaml Increases activeConnectionsPerPod from 22 to 30; HPA min/max replicas (20-40) remain unchanged.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[Active WebSocket Connections] --> B{HPA Metric Check}
    B --> C[desiredReplicas = ceil total_connections / activeConnectionsPerPod]
    C --> D[Before: divide by 22]
    C --> E[After: divide by 30]
    D --> F[More pods scaled out at same load]
    E --> G[Fewer pods scaled out at same load]
    G --> H[Higher per-pod connection density, lower cost]
    F --> I[Lower per-pod load, higher cost]
    H --> J[Clamped to minReplicas=20 / maxReplicas=60 for listen, 40 for pusher]
    I --> J
Loading

Reviews (1): Last reviewed commit: "Increase activeConnectionsPerPod for pus..." | Re-trigger Greptile

@beastoin beastoin left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@beastoin
beastoin merged commit 3377179 into main Apr 16, 2026
3 checks passed
@beastoin
beastoin deleted the task/increase-activeConnectionsPerPod-for-backend-listen-and-pusher branch April 16, 2026 10:15
Glucksberg pushed a commit to Glucksberg/omi-local that referenced this pull request Apr 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants