mirror of
https://github.com/Graylog2/graylog2-server.git
synced 2026-03-13 09:32:21 +08:00
make cluster initial nodes in datanode configurable (#16146)
* make cluster initial nodes in datanode configurable * added changelog * removed forgotten debug logging * returned opensearch_network_host config for containerized datanode tests
This commit is contained in:
@@ -98,6 +98,12 @@ public class Configuration extends BaseConfiguration {
|
||||
@Parameter(value = "node_name")
|
||||
private String datanodeNodeName = "node1";
|
||||
|
||||
/**
|
||||
* Comma separated list of opensearch nodes that are eligible as manager nodes.
|
||||
*/
|
||||
@Parameter(value = "cluster_initial_manager_nodes")
|
||||
private String initialManagerNodes = "node1";
|
||||
|
||||
@Parameter(value = "opensearch_http_port", converter = IntegerConverter.class)
|
||||
private int opensearchHttpPort = 9200;
|
||||
|
||||
@@ -236,6 +242,10 @@ public class Configuration extends BaseConfiguration {
|
||||
return datanodeNodeName;
|
||||
}
|
||||
|
||||
public String getInitialManagerNodes() {
|
||||
return initialManagerNodes;
|
||||
}
|
||||
|
||||
public int getOpensearchHttpPort() {
|
||||
return opensearchHttpPort;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user