Skip to content

Commit af138ca

Browse files
committed
change: increase default cassandra RF to 3 and update docs
Signed-off-by: Jacob Lisi <[email protected]>
1 parent a4aad5d commit af138ca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/configuration/config-file-reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1861,7 +1861,7 @@ cassandra:
18611861

18621862
# Replication factor to use in Cassandra.
18631863
# CLI flag: -cassandra.replication-factor
1864-
[replication_factor: <int> | default = 1]
1864+
[replication_factor: <int> | default = 3]
18651865

18661866
# Instruct the cassandra driver to not attempt to get host info from the
18671867
# system.peers table.

pkg/chunk/cassandra/storage_client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func (cfg *Config) RegisterFlags(f *flag.FlagSet) {
5757
f.IntVar(&cfg.Port, "cassandra.port", 9042, "Port that Cassandra is running on")
5858
f.StringVar(&cfg.Keyspace, "cassandra.keyspace", "", "Keyspace to use in Cassandra.")
5959
f.StringVar(&cfg.Consistency, "cassandra.consistency", "QUORUM", "Consistency level for Cassandra.")
60-
f.IntVar(&cfg.ReplicationFactor, "cassandra.replication-factor", 1, "Replication factor to use in Cassandra.")
60+
f.IntVar(&cfg.ReplicationFactor, "cassandra.replication-factor", 3, "Replication factor to use in Cassandra.")
6161
f.BoolVar(&cfg.DisableInitialHostLookup, "cassandra.disable-initial-host-lookup", false, "Instruct the cassandra driver to not attempt to get host info from the system.peers table.")
6262
f.BoolVar(&cfg.SSL, "cassandra.ssl", false, "Use SSL when connecting to cassandra instances.")
6363
f.BoolVar(&cfg.HostVerification, "cassandra.host-verification", true, "Require SSL certificate validation.")

0 commit comments

Comments
 (0)