Open st-cpai opened 8 months ago
First of all, we strongly recommend against creating so many collections.
Instead we recommend to look at multitenancy. It describes how to put all your data in a single collection partitioned by payload. That will give you much better results.
Other than that, I've not seen this come up before. Thank you for reporting it! Because even though we don't recommend so many collections, this should not happen.
@timvisee thank you for your reply.
It may be hard to switch our collection design at the moment. Are there things we can try to overcome this limit?
It may be hard to switch our collection design at the moment.
Could you elaborate why?
Are there things we can try to overcome this limit?
Basically, nothing, other than the suggestion above.
@timvisee
Could you elaborate why?
mostly because it will require a migration which we don't have the dev resource for at the moment.
What about going with a cluster deployment? Will that help?
What about going with a cluster deployment? Will that help?
marginally. Still creating 2000 collections in the loop is a bad idea
What about going with a cluster deployment? Will that help?
marginally. Still creating 2000 collections in the loop is a bad idea
oh the loop is just a way to reproduce the issue. In our system we create the collections gradually over multiple weeks.
oh the loop is just a way to reproduce the issue. In our system we create the collections gradually over multiple weeks.
that counts as well
@st-cpai any chance, you're observing this behaviour when the service is about to run out of memory?
@st-cpai any chance, you're observing this behaviour when the service is about to run out of memory?
hi, no it was using just about 20% of memory
Current Behavior
I'm trying to create more than 2000 collections, each has 1000 points of size 1536.
Qdrant crashes on creating the collection 2020. I can restart the container and it then can serve queries just fine, but trying to create another collection will crash it again with the same error:
Steps to Reproduce
Please run this script to create the collections:
Context (Environment)
It has happened to me both on Mac M2, and EC2 ARM instances running Ubuntu.