-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does MilvusClientV2Pool always work if milvus servers restart after crash for a long time #1176
Comments
The PoolConfig defines the behavior of the pool:
When you call pool.getClient(), if there is an idle client in the pool, it will return the idle client for you. |
So, even if milvus server broken and restart, the MilvusClientV2Pool instance cached by the client is still useful ? |
I just tested with the following steps:
Another tets:
So, I think the answer is yes. If milvus server is broken and restarted, the MilvusClientV2Pool instance cached by the client is still useful. The rpc channel is managed by grpc lib, I think the behavior is based on the grpc lib. |
I always cache the MilvusClientV2Pool when it is created, should I set expired time fot it ?
In my project, getClient always return null since I used the ClientPool。
Now, I restart my application to fix it , so I think ClientPool may have some feature I do not notice.
The text was updated successfully, but these errors were encountered: