question

wdeng avatar image
wdeng asked Jane Deng answered

想请教一个问题,Cassandra复制因子设为1,一个节点挂掉(共3个节点),为什么会查询失败呢?

想请教一个问题,Cassandra复制因子设为1,一个节点挂掉(共3个节点),为什么会查询失败呢?

replication
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Jane Deng avatar image
Jane Deng answered

当复制因子是1,集群里只有一份数据备份,存储于三个节点中的一个。如果这个节点下线,相应的查询会失败。通常建议复制因子设为大于1,3 是最常见的复制因子设置。

Share
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.