cloudopenstack-swift

In swift, how many objects can a container hold?


In swift, how many files can a container hold, is there any limit about this? I've tried google this question but haven't got an answer, help!


Solution

  • Adrian Otto blogged about this a while ago: http://adrianotto.com/2010/09/openstack-os-is-great-for/

    Don’t store unlimited objects per container

    You can store as many objects in a container as you wish. However, your per-object upload latency will increase considerably one you reach a certain point. I found the optimal number of objects per container to be just under one million. This number will vary depending on your equipment, and how heavy of a workload it’s subjected to.