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

Elasticsearch 在高数据量低负载的情况下,应该使用什么配置最具性价比

  •  
  •   Feiox · 2015-04-25 17:45:02 +08:00 · 7251 次点击
    这是一个创建于 3281 天前的主题,其中的信息可能已经有所发展或是发生改变。

    先附:这里说高,是指的对于我们应用来说,学生党能省则省

    数据量在 10GB,查询访问峰值低于 10 QPS,查询速度最好低于 100ms,系统负载应低于 3

    现在需要单独购买一个阿里云服务器示例,用来跑 Elasticsearch, 用什么配置最合适?
    1 核心 1GB 内存 20GB 数据盘可以吗?

    12 条回复    2019-05-19 17:30:09 +08:00
    msg7086
        1
    msg7086  
       2015-04-25 18:49:08 +08:00
    能省则省的话不是应该挑国外便宜的主机吗
    armstrong
        2
    armstrong  
       2015-04-25 20:38:11 +08:00
    ES官方推荐的最佳配置是64GB,http://www.elastic.co/guide/en/elasticsearch/guide/current/hardware.html
    A machine with 64 GB of RAM is the ideal sweet spot, but 32 GB and 16 GB machines are also common. Less than 8 GB tends to be counterproductive (you end up needing many, many small machines), and greater than 64 GB has problems that we will discuss in Heap: Sizing and Swapping.
    9hills
        3
    9hills  
       2015-04-25 21:14:43 +08:00 via iPhone
    一直用128G的机器跑Es
    Landarky
        4
    Landarky  
       2015-04-25 21:17:03 +08:00
    用48G跑ES表示鸭梨很大
    Feiox
        5
    Feiox  
    OP
       2015-04-25 21:22:10 +08:00
    @armstrong 那是不是在小内存中跑 ES 就会变慢、或者不稳定呢?
    knktc
        6
    knktc  
       2015-04-25 23:48:01 +08:00
    @Feiox 会变慢~
    hebwjb
        7
    hebwjb  
       2015-04-25 23:52:35 +08:00
    ES毕竟是基于JVM之上的,1G内存有点捉急吧
    9hills
        9
    9hills  
       2015-04-26 01:42:28 +08:00
    @Feiox 48G内存跑ES,默认参数还会OOM,<_<
    Feiox
        10
    Feiox  
    OP
       2015-04-26 10:04:09 +08:00
    @9hills @hebwjb 好吧,这货属于土豪和公司玩的,我们这小作坊。。。。。。
    wgqzlj
        11
    wgqzlj  
       2015-04-26 22:06:45 +08:00
    SSD是必不可少的,效率提升极大
    ddup
        12
    ddup  
       2019-05-19 17:30:09 +08:00
    jvm 程序真是很吃内存
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3083 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 14:35 · PVG 22:35 · LAX 07:35 · JFK 10:35
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.