Browse Source

cassandra use local quorum for better performance

pull/637/head
Chris Lu 7 years ago
parent
commit
d49e91cd78
  1. 2
      weed/filer/cassandra_store/cassandra_store.go

2
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)

Loading…
Cancel
Save