mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-22 00:58:51 +08:00
filer: elastic7 adjust default value
This commit is contained in:
@@ -177,7 +177,7 @@ database = "seaweedfs"
|
|||||||
[elastic7]
|
[elastic7]
|
||||||
enabled = false
|
enabled = false
|
||||||
servers = "http://localhost:9200"
|
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
|
index.max_result_window = 10000
|
||||||
`
|
`
|
||||||
|
|
||||||
|
@@ -44,7 +44,7 @@ func (store *ElasticStore) Initialize(configuration weed_util.Configuration, pre
|
|||||||
}
|
}
|
||||||
store.maxPageSize = configuration.GetInt(prefix + "index.max_result_window")
|
store.maxPageSize = configuration.GetInt(prefix + "index.max_result_window")
|
||||||
if store.maxPageSize <= 0 {
|
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)
|
glog.Infof("filer store elastic endpoints: %s, index.max_result_window:%d", servers, store.maxPageSize)
|
||||||
store.client, err = elastic.NewClient(
|
store.client, err = elastic.NewClient(
|
||||||
|
Reference in New Issue
Block a user