hostseditValue type is uriDefault value is [//127.0.0.1]Sets the host(s) of the remote instance. If given an array it will load balance requests across the hosts specified in the hosts parameter. Remember the http PRotocol uses the http address (eg. 9200, not 9300). "127.0.0.1" ["127.0.0.1:9200","127.0.0.2:9200"] ["http://127.0.0.1"] ["https://127.0.0.1:9200"] ["https://127.0.0.1:9200/mypath"] (If using a proxy on a subpath) It is important to exclude dedicated master nodes from the hosts list to prevent LS from sending bulk requests to the master nodes. So this parameter should only reference either data or client nodes in Elasticsearch.Any special characters present in the URLs here MUST be URL escaped! This means # should be put in as %23 for instance.指定 遠程實例的hosts,如果給定一個數組 它會負載均衡請求到 指定的主機。記住 http 協議使用http 地址(如9200 而不是9300) "127.0.0.1" ["127.0.0.1:9200","127.0.0.2:9200"] ["http://127.0.0.1"] ["https://127.0.0.1:9200"] ["https://127.0.0.1:9200/mypath"] (如果 使用一個代理在一個子路徑) 它是重要的 排除專用的主機從主機列表 來防止 發送bulk請求到master 節點因此這個參數應該只能引用數據或者客戶端節點在Elasticsearch
新聞熱點
疑難解答