aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2018-04-16 01:33:05 -0700
committerChris Lu <chris.lu@gmail.com>2018-04-16 01:33:05 -0700
commitd49e91cd7815534dc11f0e8f58fdc0ef76923065 (patch)
tree824c9d8e065cf786ef49ad5c4ca6ed260b080e93
parent69facc0e2f1c7753cb77a3d1fc932c8fde586605 (diff)
downloadseaweedfs-d49e91cd7815534dc11f0e8f58fdc0ef76923065.tar.xz
seaweedfs-d49e91cd7815534dc11f0e8f58fdc0ef76923065.zip
cassandra use local quorum for better performance
-rw-r--r--weed/filer/cassandra_store/cassandra_store.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/filer/cassandra_store/cassandra_store.go b/weed/filer/cassandra_store/cassandra_store.go
index 75af48bcd..837fa48d3 100644
--- a/weed/filer/cassandra_store/cassandra_store.go
+++ b/weed/filer/cassandra_store/cassandra_store.go
@@ -41,7 +41,7 @@ func NewCassandraStore(keyspace string, hosts string) (c *CassandraStore, err er
c.cluster = gocql.NewCluster(s...)
}
c.cluster.Keyspace = keyspace
- c.cluster.Consistency = gocql.Quorum
+ c.cluster.Consistency = gocql.LocalQuorum
c.session, err = c.cluster.CreateSession()
if err != nil {
glog.V(0).Infof("Failed to open cassandra store, hosts %v, keyspace %s", hosts, keyspace)