ElasticSearch: Difference between revisions

355 bytes added ,  01:16, 26 November 2023
no edit summary
No edit summary
No edit summary
Line 16: Line 16:
idk if we should put this part online but there is some config here too
idk if we should put this part online but there is some config here too
</pre>
</pre>
=== Service ===
Use the default service, except we also make it restart when it dies:
<code>/lib/systemd/system/elasticsearch.service</code>
<syntaxhighlight lang="ini">
[Service]
# Other stuff....
ExecStart=/usr/share/elasticsearch/bin/systemd-entrypoint -p ${PID_DIR}/elasticsearch.pid --quiet
Restart=always
RestartSec=30
# ...
</syntaxhighlight>


=== Memory ===
=== Memory ===