ss098

Elasticsearch 向 /_search 发送请求经常 wait

  •  
  •   ss098 · Jun 16, 2015 · 7775 views
    This topic created in 4072 days ago, the information mentioned may be changed or developed.
    2 Core 4G RAM CentOS 6

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

    感谢指出问题所在,准备升级机器。
    knightdf
        5
    knightdf  
       Jun 17, 2015
    4G....我们直接上的32G RAM的服务器
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1755 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 00:01 · PVG 08:01 · LAX 17:01 · JFK 20:01
    ♥ Do have faith in what you're doing.