Skip to content

Fix DEADLINE_EXCEEDED gRPC timeout on Zilliz Serverless#291

Open
alfredsgenkins wants to merge 1 commit intozilliztech:masterfrom
alfredsgenkins:fix/grpc-timeout-deadline-exceeded
Open

Fix DEADLINE_EXCEEDED gRPC timeout on Zilliz Serverless#291
alfredsgenkins wants to merge 1 commit intozilliztech:masterfrom
alfredsgenkins:fix/grpc-timeout-deadline-exceeded

Conversation

@alfredsgenkins
Copy link
Copy Markdown

Problem

When using Zilliz Serverless clusters, indexing fails with:

Error: Failed to get address from token: Default Project not found

or during checkCollectionLimit():

4 DEADLINE_EXCEEDED: Deadline exceeded after 15.000s

The default gRPC timeout of 15s is too short for Zilliz Serverless cold starts, and the dummy collection create/drop used for limit-checking is an expensive operation that reliably exceeds the deadline.

Fixes #289

Changes

1. Configurable gRPC timeout (MILVUS_TIMEOUT_MS)

Sets MilvusClient timeout to 60s by default. Configurable via MILVUS_TIMEOUT_MS env var.

2. Lightweight checkCollectionLimit()

Replaces the dummy collection create → drop approach with a simple listCollections() call. This is faster, cheaper, and avoids triggering the timeout on serverless clusters. The collection limit is configurable via MILVUS_MAX_COLLECTIONS (default: 4).

Test

Verified against a Zilliz Serverless cluster (aws-eu-central-1) — indexing now completes successfully without timeout errors.

🤖 Generated with Claude Code

The default MilvusClient gRPC timeout (15s) is too short for Zilliz
Serverless clusters, causing DEADLINE_EXCEEDED errors during indexing.

Two changes:
1. Set MilvusClient timeout to 60s (configurable via MILVUS_TIMEOUT_MS)
2. Replace expensive dummy collection create/drop in checkCollectionLimit
   with a lightweight listCollections call

Fixes zilliztech#289

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@alfredsgenkins alfredsgenkins force-pushed the fix/grpc-timeout-deadline-exceeded branch from c739ed2 to 3c28d1f Compare March 27, 2026 13:02
@jessebuitenhuis
Copy link
Copy Markdown

This fixes the issue for me. Can this be merged?

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.

DEADLINE_EXCEEDED on checkCollectionLimit() - gRPC timeout on collection creation (Free tier, macOS)

2 participants