ElasticSearch: Difference between revisions

597 bytes added ,  02:52, 27 October 2023
no edit summary
No edit summary
No edit summary
Line 13: Line 13:
<pre>
<pre>
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>
=== Memory ===
[https://www.elastic.co/guide/en/elasticsearch/guide/current/heap-sizing.html the ES docs] say to allocate half your available memory to the heap. At the moment (23-10-26) we are using 2.5G/8G memory at rest. Going to try allocating 3GB and see what happens
<code>/lib/systemd/system/elasticsearch.service</code>
<pre>
[Service]
Environment=ES_HEAP_SIZE=3g
</pre>
</pre>


Line 21: Line 31:
Docs:
Docs:
* https://docs.joinmastodon.org/admin/elasticsearch/
* https://docs.joinmastodon.org/admin/elasticsearch/
* THIS is actually the current docs, the other urls that are EXACTLY THE SAME are no longer maintained - https://www.elastic.co/guide/en/elasticsearch/reference/current/advanced-configuration.html#set-jvm-heap-size
* https://www.elastic.co/guide/en/elasticsearch/guide/current/hardware.html
* https://www.elastic.co/guide/en/elasticsearch/guide/current/hardware.html
* https://www.elastic.co/guide/en/elasticsearch/guide/current/heap-sizing.html
* https://www.elastic.co/guide/en/elasticsearch/guide/current/heap-sizing.html