give elastic jvm more memeory, restart always

This commit is contained in:
k-ot 2019-08-29 00:08:05 +02:00
parent 7a48a1e2cd
commit edb81cf970
1 changed files with 2 additions and 1 deletions

View File

@ -39,8 +39,9 @@
cluster_name = "zentralwerk";
dataDir = "/srv/elasticsearch";
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)
boot.kernel.sysctl = {