Skip to content

Rollback activeConnectionsPerPod for backend-listen to 22 - #6732

Merged
beastoin merged 1 commit into
mainfrom
task/rollback-activeConnectionsPerPod-config-for-backend-listen
Apr 17, 2026
Merged

beastoin merged 1 commit into
mainfrom
task/rollback-activeConnectionsPerPod-config-for-backend-listen

Conversation

@thainguyensunya

Copy link
Copy Markdown
Collaborator

Low CPU usage doesn't mean backend-listen has spare capacity to process the requests.
It comes down to CPU occupation and concurrent.
I'll keep the activeConnectionsPerPod as 22 for now. Once new enhancement has been deployed, I will try to adjust this value again.

Changes:

  • Rollback activeConnectionsPerPod for backend-listen to 22

@greptile-apps

greptile-apps Bot commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR rolls back activeConnectionsPerPod for the backend-listen HPA configuration to 22, reverting an earlier increase. The author notes that low CPU utilization is misleading — the service is bottlenecked by concurrency rather than raw CPU, so the higher value caused overload despite favorable CPU metrics.

Confidence Score: 5/5

Safe to merge — minimal-risk rollback of a single concurrency tuning parameter to a previously known-good value.

The change is a one-line rollback of activeConnectionsPerPod to 22, a value that worked in production before the recent increase. No logic changes, no schema changes, and no other configuration is touched. The PR description clearly explains the rationale (CPU is not the actual bottleneck; concurrency is).

No files require special attention.

Important Files Changed

Filename Overview
backend/charts/backend-listen/prod_omi_backend_listen_values.yaml Single-line change: activeConnectionsPerPod restored to 22; no other configuration altered.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[Incoming WebSocket Connections] --> B{GKE Load Balancer}
    B --> C[HPA Autoscaler]
    C -->|activeConnectionsPerPod = 22| D[backend-listen Pods\nmin: 20, max: 60]
    C -->|Scale Up Trigger| E[Add Pods\nup to 50% / +5 per 15s]
    C -->|Scale Down Trigger| F[Remove Pods\n≤20% per 300s or 1 pod/120s]
    D --> G[Process Audio Stream\nSTT + Transcription]
    G --> H[Pusher Service]

    style D fill:#4CAF50,color:#fff
    style C fill:#2196F3,color:#fff
Loading

Reviews (1): Last reviewed commit: "Rollback activeConnectionsPerPod for bac..." | 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 5da1485 into main Apr 17, 2026
3 checks passed
@beastoin
beastoin deleted the task/rollback-activeConnectionsPerPod-config-for-backend-listen branch April 17, 2026 01:18
shaun0927 added a commit to shaun0927/omi that referenced this pull request Apr 17, 2026
… backend-listen=22

PR BasedHardware#6732 rolled back backend-listen to 22 but kept pusher at 30, which
is intentional: pusher's WebSocket handling profile can absorb 30
concurrent connections per pod while backend-listen's cannot. Both
values are tuned continuously as the async request pipeline evolves.

Adds a one-line YAML comment so the asymmetry is visible at the call
site instead of buried in PR history.

Closes BasedHardware#6752

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
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