I've been using Elasticsearch for the last couple of weeks and it works great integrated with symfony.
However, I've noticed that the server is crashing every 2-3 days. Our site is really small so for the next 3-6 months, we plan on using one node.
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 26261 elastic+ 20 0 1323504 781936 22576 S 0.3 76.9 0:17.71 java
Our AWS instance is t2-micro and has 1GB of memory.
And I have assigned on elasticsearch configuration file.
HEAP_SIZE: 512m number_of_shards: 5 (I've just moved to 1) number_of_replicas: 1 (I've just moved to 0)
Our Index size is really small, around 97kb, we're storing 63 products. But on average we will around 200.
So the questions that I have is:
1- Is there a recommeded configuration for one node in a really small server
2- Is there a way to diagnose the crash, the logs in Trace mode, didn't give me any hints of what went wrong.
3- Is there a way to automatically restart Elasticsearch when it crashes, like maybe with supervisor.
Aucun commentaire:
Enregistrer un commentaire