V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
alwayshere
V2EX  ›  程序员

避免内存浪费, 64G 内存可不可以运行两个 ES?

  •  
  •   alwayshere · 2018-11-07 09:46:05 +08:00 · 2222 次点击
    这是一个创建于 2005 天前的主题,其中的信息可能已经有所发展或是发生改变。

    ES 最大内存设定为 32G,我现在手上服务器 64G,正好有两个项目,可不可以跑两个 ES ?

    5 条回复    2018-11-07 13:19:35 +08:00
    yuikns
        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
    yuikns
        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.
    myhot21
        3
    myhot21  
       2018-11-07 10:06:42 +08:00
    可以运行两个 es 的,只是如果两个 es 都设为 32g,可能会不稳定或性能有问题,为了稳定性,一般需要预留一部分内存给操作系统使用。
    blueskea
        4
    blueskea  
       2018-11-07 12:58:55 +08:00 via Android
    建议多装几块硬盘,data 分到不同的硬盘上去,或者上 ssd 缓解下 io 的压力
    aqqwiyth
        5
    aqqwiyth  
       2018-11-07 13:19:35 +08:00
    io 能抗的住的话完全可以. ES 的瓶颈在硬盘
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2480 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 12:23 · PVG 20:23 · LAX 05:23 · JFK 08:23
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.