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
modify elastic urls from string to array.
ruitao.liu719dc43af141
diff --git a/weed/command/scaffold.go b/weed/command/scaffold.goindex 7ced118ca5..800bc6029e 100644--- a/weed/command/scaffold.go+++ b/weed/command/scaffold.go@@ -176,7 +176,11 @@ database = "seaweedfs"[elastic7]enabled = false-servers = "http://localhost1:9200,http://localhost2:9200,http://localhost3:9200"+servers = [+ "http://localhost1:9200",+ "http://localhost2:9200",+ "http://localhost3:9200",+]username = ""password = ""sniff_enabled = falsediff --git a/weed/filer/elastic/v7/elastic_store.go b/weed/filer/elastic/v7/elastic_store.goindex 7696d6b1f8..5750b2fb82 100644--- a/weed/filer/elastic/v7/elastic_store.go+++ b/weed/filer/elastic/v7/elastic_store.go@@ -68,13 +68,8 @@ func (store *ElasticStore) Initialize(configuration weed_util.Configuration, pre}func (store *ElasticStore) initialize(configuration weed_util.Configuration, prefix string) (options []elastic.ClientOptionFunc) {- configuration.SetDefault(prefix+"servers", "http://localhost:9200")- servers := configuration.GetString(prefix + "servers")- url := make([]string, 0)- for _, v := range strings.Split(servers, ",") {- url = append(url, v)- }- options = append(options, elastic.SetURL(url...))+ servers := configuration.GetStringSlice(prefix + "servers")+ options = append(options, elastic.SetURL(servers...))username := configuration.GetString(prefix + "username")password := configuration.GetString(prefix + "password")if username != "" && password != "" {