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

Elasticsearch 向 /_search 发送请求经常 wait

  •  
  •   ss098 · 2015 年 6 月 16 日 · 4023 次点击
    这是一个创建于 3882 天前的主题,其中的信息可能已经有所发展或是发生改变。
    2 Core 4G RAM CentOS 6

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

    感谢指出问题所在,准备升级机器。
    knightdf
        5
    knightdf  
       2015 年 6 月 17 日
    4G....我们直接上的32G RAM的服务器
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   896 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 20:46 · PVG 04:46 · LAX 12:46 · JFK 15:46
    ♥ Do have faith in what you're doing.