Skip to content

Commit

Permalink
[elastic#192624] multiple_es_nodes (elastic#193899)
Browse files Browse the repository at this point in the history
(cherry picked from commit 66f2027)
  • Loading branch information
afharo committed Sep 25, 2024
1 parent bc72d3e commit 5755ea7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/kbn-test/src/es/test_es_cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,10 @@ export function createTestEsCluster<
`transport.port=${transportPort ?? esTestConfig.getTransportPort()}`,
// For multi-node clusters, we make all nodes master-eligible by default.
...(nodes.length > 1
? ['discovery.type=zen', `cluster.initial_master_nodes=${nodes.map((n) => n.name).join(',')}`]
? [
'discovery.type=multi-node',
`cluster.initial_master_nodes=${nodes.map((n) => n.name).join(',')}`,
]
: ['discovery.type=single-node']),
];

Expand Down
Binary file not shown.
Binary file not shown.

0 comments on commit 5755ea7

Please sign in to comment.