如果水平分布式数据库丢失一个分片,该分片的数据会发生什么?
在水平分布式数据库的概念中,当分片不可用时会发生什么?
In the concept of a horizontally distributed database, what happens when a shard becomes unavailable?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你的问题很模糊。在可以控制复制因子和一致性级别的数据库中,例如 Cassandra 或 Voldemort 你的数据应该是安全的(除非你弄乱了它)。
另一方面(但我不会称它们为水平分布式数据库)有像 memcached 或 redis 这样的项目,其中每个分片处理一组给定的数据(仅一个副本)。因此,如果某些分片出现故障,数据集将会丢失(除非您使用复制或类似的东西......),但集群本身中的数据肯定不存在冗余
your question is pretty vague. In databases where you can control the replication factor and the consistency level like Cassandra or Voldemort your data should be safe (unless you mess with it).
In the other hand (but I wouldn't call them horizontally distributed database) there are projects like memcached or redis where each shards handles a given set of data (one copy only). So in case some shard goes down that dataset will be lost (unless you use replication, or something like that...) but certainly there is not redundancy of the data in the cluster it self