give elastic jvm more memeory, restart always
This commit is contained in:
parent
7a48a1e2cd
commit
edb81cf970
|
@ -39,8 +39,9 @@
|
||||||
cluster_name = "zentralwerk";
|
cluster_name = "zentralwerk";
|
||||||
dataDir = "/srv/elasticsearch";
|
dataDir = "/srv/elasticsearch";
|
||||||
listenAddress = "0.0.0.0";
|
listenAddress = "0.0.0.0";
|
||||||
|
extraJavaOptions = [ "-Xms2g" "-Xmx2g" ];
|
||||||
};
|
};
|
||||||
|
systemd.services.elasticsearch.serviceConfig.Restart = "always";
|
||||||
|
|
||||||
# does not work, needs to be set on hv (done through ansible)
|
# does not work, needs to be set on hv (done through ansible)
|
||||||
boot.kernel.sysctl = {
|
boot.kernel.sysctl = {
|
||||||
|
|
Loading…
Reference in New Issue