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.指定 遠(yuǎn)程實(shí)例的hosts,如果給定一個(gè)數(shù)組 它會(huì)負(fù)載均衡請(qǐng)求到 指定的主機(jī)。記住 http 協(xié)議使用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"] (如果 使用一個(gè)代理在一個(gè)子路徑) 它是重要的 排除專用的主機(jī)從主機(jī)列表 來防止 發(fā)送bulk請(qǐng)求到master 節(jié)點(diǎn)因此這個(gè)參數(shù)應(yīng)該只能引用數(shù)據(jù)或者客戶端節(jié)點(diǎn)在Elasticsearch
新聞熱點(diǎn)
疑難解答
圖片精選