From d49e91cd7815534dc11f0e8f58fdc0ef76923065 Mon Sep 17 00:00:00 2001
From: Chris Lu <chris.lu@gmail.com>
Date: Mon, 16 Apr 2018 01:33:05 -0700
Subject: [PATCH] cassandra use local quorum for better performance

---
 weed/filer/cassandra_store/cassandra_store.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)