Bringing together the Apache Cassandra experts from the community and DataStax.

Want to learn? Have a question? Want to share your expertise? You are in the right place!

Not sure where to begin? Getting Started

 

question

wdeng avatar image
wdeng asked Jane Deng answered

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

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

replicationreplication factor
10 |1000 characters needed characters left characters exceeded

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 characters needed characters left characters exceeded

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