diff options
| author | Chris Lu <chris.lu@gmail.com> | 2018-04-16 01:33:05 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2018-04-16 01:33:05 -0700 |
| commit | d49e91cd7815534dc11f0e8f58fdc0ef76923065 (patch) | |
| tree | 824c9d8e065cf786ef49ad5c4ca6ed260b080e93 | |
| parent | 69facc0e2f1c7753cb77a3d1fc932c8fde586605 (diff) | |
| download | seaweedfs-d49e91cd7815534dc11f0e8f58fdc0ef76923065.tar.xz seaweedfs-d49e91cd7815534dc11f0e8f58fdc0ef76923065.zip | |
cassandra use local quorum for better performance
| -rw-r--r-- | weed/filer/cassandra_store/cassandra_store.go | 2 |
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) |
