如果水平分布式数据库丢失一个分片,该分片的数据会发生什么?

发布于 2024-12-28 05:53:00 字数 34 浏览 2 评论 0原文

在水平分布式数据库的概念中,当分片不可用时会发生什么?

In the concept of a horizontally distributed database, what happens when a shard becomes unavailable?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

ヅ她的身影、若隐若现 2025-01-04 05:53:00

你的问题很模糊。在可以控制复制因子和一致性级别的数据库中,例如 CassandraVoldemort 你的数据应该是安全的(除非你弄乱了它)。

另一方面(但我不会称它们为水平分布式数据库)有像 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文