Ask Your Question

Dose partition count determine the number of objects a cluster can store?

asked 2013-05-06 08:27:42 -0500

When create a ring, we need to specify how many partitions it has. Say, I specify a power of 10, then the cluster will have 1024 partitions. If I specify replica to 4, dose that mean the cluster could store 1024/4=256 objects?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-05-06 16:44:10 -0500

david-hadas gravatar image

Each partition can store many objects. Swift will naturally balance the available disk space such that when X objects are placed into N partitions, each partition would hold roughly X/N objects.

The same partition is than replicated D (E.g. D=3).

One common practice advise is to consider what would be the number of hard disks (devices) you will have when the cluster would reach its maximal size - Lets say you will have M hard disks. In such a case, aim for the number of partitions to be bigger than 100*M.

So if M is 10000, use a partition power of 24 and if M is 1000 use partition power of 17.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2013-05-06 08:27:42 -0500

Seen: 17 times

Last updated: May 06 '13