Skip to content

[BUG]# SSE Connection Fails in Multi-Pod GKE Deployment #174

Open
@tim-srp

Description

@tim-srp

Describe the bug
SSE connections to fastapi_mcp fail intermittently when deployed with multiple pods on GKE. Cursor client sometimes gets tools successfully, sometimes fails with 404 errors. The issue disappears when using single pod deployment.

To Reproduce

  1. Deploy fastapi_mcp service with multiple pods on GKE
  2. Configure Cursor client to connect via SSE
  3. Try to retrieve tools multiple times
  4. Observe intermittent failures (404 errors)

Expected: Consistent successful connections
Actual: Random failures due to load balancer routing requests to different pods

System Info

  • Platform: Google Kubernetes Engine (GKE)
  • Deployment: Multi-pod with load balancing
  • Connection: Server-Sent Events (SSE)
  • Client: Cursor IDE
  • Issue: WebSocket long connections broken by pod switching

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions