V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
alwayshere
V2EX  ›  程序员

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

  •  
  •   alwayshere · Nov 7, 2018 · 2573 views
    This topic created in 2728 days ago, the information mentioned may be changed or developed.

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

    5 replies    2018-11-07 13:19:35 +08:00
    yuikns
        1
    yuikns  
       Nov 7, 2018 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  
       Nov 7, 2018 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  
       Nov 7, 2018
    可以运行两个 es 的,只是如果两个 es 都设为 32g,可能会不稳定或性能有问题,为了稳定性,一般需要预留一部分内存给操作系统使用。
    blueskea
        4
    blueskea  
       Nov 7, 2018 via Android
    建议多装几块硬盘,data 分到不同的硬盘上去,或者上 ssd 缓解下 io 的压力
    aqqwiyth
        5
    aqqwiyth  
       Nov 7, 2018
    io 能抗的住的话完全可以. ES 的瓶颈在硬盘
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5612 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 03:42 · PVG 11:42 · LAX 20:42 · JFK 23:42
    ♥ Do have faith in what you're doing.