SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
update cassandra connections
eshujiushiwo5385bf9555f3
diff --git a/weed/filer/cassandra_store/cassandra_store.go b/weed/filer/cassandra_store/cassandra_store.goindex 50a792a652..e9e1d9222c 100644--- a/weed/filer/cassandra_store/cassandra_store.go+++ b/weed/filer/cassandra_store/cassandra_store.go@@ -32,7 +32,12 @@ type CassandraStore struct {func NewCassandraStore(keyspace string, hosts ...string) (c *CassandraStore, err error) {c = &CassandraStore{}- c.cluster = gocql.NewCluster(hosts...)+ s := strings.Split(hosts, ",")+ if len(s) == 1 {+ c.cluster = gocql.NewCluster(hosts...)+ } else if len(s) > 1 {+ c.cluster = gocql.NewCluster(s[0], s[1])+ }c.cluster.Keyspace = keyspacec.cluster.Consistency = gocql.Quorumc.session, err = c.cluster.CreateSession()