简体   繁体   中英

Is it possible to increase the number of shards in an arangodb collection as it grows?

Since I am not sure how big my collection might grow in the future, I would like to know if I can add new shards when required. Is it possible to do this without dumping all the data and then recreating the collection with the new numofshards?

Sharding is only available in arangodb clusters. You cannot reshard an existing collection with a single operation. You would have to create a new collection with desired new sharding and transfer all documents from the old one to the new. Very often folks decide to create the collection with the final number of shards on a smaller cluster and move the shards to new db servers as you grow.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM