diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-09-03 20:12:38 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-09-03 20:12:38 -0700 |
| commit | 46f65a84a6edb99d9f949ff4b36b391e4861acd5 (patch) | |
| tree | 64c34267b85cb1d0e46eb83de4dae5543a7e9452 | |
| parent | f815fce81b060448001f3539a7188aa3602d5544 (diff) | |
| download | seaweedfs-46f65a84a6edb99d9f949ff4b36b391e4861acd5.tar.xz seaweedfs-46f65a84a6edb99d9f949ff4b36b391e4861acd5.zip | |
filer: elastic7 adjust default value
| -rw-r--r-- | weed/command/scaffold.go | 2 | ||||
| -rw-r--r-- | weed/filer/elastic/v7/elastic_store.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/weed/command/scaffold.go b/weed/command/scaffold.go index c07751786..479e0665f 100644 --- a/weed/command/scaffold.go +++ b/weed/command/scaffold.go @@ -177,7 +177,7 @@ database = "seaweedfs" [elastic7] enabled = false servers = "http://localhost:9200" -# increase the value is recommend, both filer and elastic cluster +# increase the value is recommend, both here and in elastic cluster configuration index.max_result_window = 10000 ` diff --git a/weed/filer/elastic/v7/elastic_store.go b/weed/filer/elastic/v7/elastic_store.go index e75f55239..5c57e352a 100644 --- a/weed/filer/elastic/v7/elastic_store.go +++ b/weed/filer/elastic/v7/elastic_store.go @@ -44,7 +44,7 @@ func (store *ElasticStore) Initialize(configuration weed_util.Configuration, pre } store.maxPageSize = configuration.GetInt(prefix + "index.max_result_window") if store.maxPageSize <= 0 { - return fmt.Errorf("error elastic index.max_result_window.") + store.maxPageSize = 10000 } glog.Infof("filer store elastic endpoints: %s, index.max_result_window:%d", servers, store.maxPageSize) store.client, err = elastic.NewClient( |
