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

Elasticsearch 向 /_search 发送请求经常 wait

  •  
  •   ss098 · 2015-06-16 21:56:47 +08:00 · 3559 次点击
    这是一个创建于 3230 天前的主题,其中的信息可能已经有所发展或是发生改变。
    2 Core 4G RAM CentOS 6

    数据量比较大,约有十亿条,但是已经通过 River 导入进去了,经常发生向 /{index}/_search 发送请求经常等待的事情,请问如何定位问题出在哪里?
    5 条回复    2015-06-17 14:12:16 +08:00
    czheo
        1
    czheo  
       2015-06-16 22:19:48 +08:00
    {index}/_stats 看看
    czheo
        2
    czheo  
       2015-06-16 22:23:47 +08:00   ❤️ 1
    4G RAM 10亿数据,平均每条数据才4个字节,显然不够用
    karloku
        3
    karloku  
       2015-06-16 22:34:27 +08:00   ❤️ 1
    https://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.

    官方建议小于8G不能上生产.
    ss098
        4
    ss098  
    OP
       2015-06-16 23:12:40 +08:00 via iPad
    @czheo
    @karloku

    感谢指出问题所在,准备升级机器。
    knightdf
        5
    knightdf  
       2015-06-17 14:12:16 +08:00
    4G....我们直接上的32G RAM的服务器
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1884 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 16:19 · PVG 00:19 · LAX 09:19 · JFK 12:19
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.