mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
cassandra use local quorum for better performance
This commit is contained in:
parent
69facc0e2f
commit
d49e91cd78
|
@ -41,7 +41,7 @@ func NewCassandraStore(keyspace string, hosts string) (c *CassandraStore, err er
|
||||||
c.cluster = gocql.NewCluster(s...)
|
c.cluster = gocql.NewCluster(s...)
|
||||||
}
|
}
|
||||||
c.cluster.Keyspace = keyspace
|
c.cluster.Keyspace = keyspace
|
||||||
c.cluster.Consistency = gocql.Quorum
|
c.cluster.Consistency = gocql.LocalQuorum
|
||||||
c.session, err = c.cluster.CreateSession()
|
c.session, err = c.cluster.CreateSession()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
glog.V(0).Infof("Failed to open cassandra store, hosts %v, keyspace %s", hosts, keyspace)
|
glog.V(0).Infof("Failed to open cassandra store, hosts %v, keyspace %s", hosts, keyspace)
|
||||||
|
|
Loading…
Reference in a new issue