简体   繁体   English

可能分片现有的ArangoDB数据库?

[英]Possible sharding existing ArangoDB database?

I have one simple question. 我有一个简单的问题。 If I develop now my game on single ArangoDB database, and if it grows big, would it be possible to extend my existing database/collection with coordinators and shards included with redundancy? 如果我现在在单个ArangoDB数据库上开发我的游戏,并且如果它变得很大,是否可以通过包含冗余的协调器和分片扩展我现有的数据库/集合?

Thanks, Vili 谢谢,Vili

you will be able to use arangodump to get a dump of your non sharded database. 您将能够使用arangodump获取未分片数据库的转储。

You actually get two files per collection: 每个集合实际上有两个文件:

  • the payload, one json document per line (*.data.json) 有效负载,每行一个json文档(* .data.json)
  • the collection description (*.structure.json) 集合描述(* .structure.json)

You then could modify the collection description to configure more than one shard plus its parameters , and restore it into a cluster setup. 然后,您可以修改集合描述以配置多个分片及其参数 ,然后还原到集群设置中。

You may however need to re-tune your queries for optimal performance in the clustered situation. 但是,您可能需要重新调整查询以在集群情况下获得最佳性能。 You should definitely calculate that you first need to test-drive your application with the new setup. 您绝对应该计算得出,您首先需要使用新设置来测试驱动您的应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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