mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
@kbn/test - include node.name
and cluster.initial_master_nodes
settings when starting ES.
This commit is contained in:
parent
ff20e3ea2f
commit
b187a01a60
1 changed files with 3 additions and 0 deletions
|
@ -42,6 +42,7 @@ export function createEsTestCluster(options = {}) {
|
|||
.toString(36)
|
||||
.substring(2);
|
||||
const clusterName = `test-${randomHash}`;
|
||||
const nodeName = `node-${randomHash}`;
|
||||
const config = {
|
||||
version: esTestConfig.getVersion(),
|
||||
installPath: resolve(basePath, clusterName),
|
||||
|
@ -78,7 +79,9 @@ export function createEsTestCluster(options = {}) {
|
|||
esArgs: [
|
||||
`cluster.name=${clusterName}`,
|
||||
`http.port=${port}`,
|
||||
`node.name=${nodeName}`,
|
||||
`discovery.zen.ping.unicast.hosts=localhost:${port}`,
|
||||
`cluster.initial_master_nodes=${nodeName}`,
|
||||
...esArgs,
|
||||
],
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue