ES 最大内存设定为 32G,我现在手上服务器 64G,正好有两个项目,可不可以跑两个 ES ?
1
yuikns 2018-11-07 10:01:24 +08:00 via iPhone
Heap is definitely important to Elasticsearch. It is used by many in-memory data structures to provide fast operation. But with that said, there is another major user of memory that is off heap: Lucene.
https://www.elastic.co/guide/en/elasticsearch/guide/current/heap-sizing.html |
2
yuikns 2018-11-07 10:02:17 +08:00 via iPhone
The standard recommendation is to give 50% of the available memory to Elasticsearch heap, while leaving the other 50% free. It won ’ t go unused; Lucene will happily gobble up whatever is left over.
|
3
myhot21 2018-11-07 10:06:42 +08:00
可以运行两个 es 的,只是如果两个 es 都设为 32g,可能会不稳定或性能有问题,为了稳定性,一般需要预留一部分内存给操作系统使用。
|
4
blueskea 2018-11-07 12:58:55 +08:00 via Android
建议多装几块硬盘,data 分到不同的硬盘上去,或者上 ssd 缓解下 io 的压力
|
5
aqqwiyth 2018-11-07 13:19:35 +08:00
io 能抗的住的话完全可以. ES 的瓶颈在硬盘
|