elasticsearch: update configuration
- transport.tcp.port -> transport.port https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking-changes-7.1.html - default to start a single-node cluster https://stackoverflow.com/questions/59350069/elasticsearch-start-up-error-the-default-discovery-settings-are-unsuitable-for
This commit is contained in:
parent
6e17c53b98
commit
f4b40d572c
1 changed files with 8 additions and 1 deletions
|
@ -8,9 +8,10 @@ let
|
|||
esConfig = ''
|
||||
network.host: ${cfg.listenAddress}
|
||||
cluster.name: ${cfg.cluster_name}
|
||||
${lib.optionalString cfg.single_node "discovery.type: single-node"}
|
||||
|
||||
http.port: ${toString cfg.port}
|
||||
transport.tcp.port: ${toString cfg.tcp_port}
|
||||
transport.port: ${toString cfg.tcp_port}
|
||||
|
||||
${cfg.extraConf}
|
||||
'';
|
||||
|
@ -77,6 +78,12 @@ in
|
|||
type = types.str;
|
||||
};
|
||||
|
||||
single_node = mkOption {
|
||||
description = "Start a single-node cluster";
|
||||
default = true;
|
||||
type = types.bool;
|
||||
};
|
||||
|
||||
extraConf = mkOption {
|
||||
description = "Extra configuration for elasticsearch.";
|
||||
default = "";
|
||||
|
|
Loading…
Reference in a new issue