The output speed to ElasticSearch is very slow

am working on processing a large amount of logs file with graylog and es. The input speed is about 100k/second, but the output speed to elastic search is just 7000/second. i have test the performance of my es cluster whose processing speed is about 14k/s, where es should not be bottleneck.

And I have checked the server load, the CPU usage is less than 5%, memory usage and network usage are both quite low.

I have tried the following potential configure changing:

  1. Change output buffer threads core pool size and max pool size to 30 and 90 respectively.
  2. Change output batch size to 2000
  3. Change processbuffer processors and outputbuffer processors to 128.

But unfortunately, there is no observably enhancement.

So what is wrong with my graylog and how to solve it?

Hardware:
64 Cores CPU
384GB Memory
6TB SSD

Software Environment:

  • Graylog Version: 2.2.0
  • Elasticsearch Version: 2.4.3
  • MongoDB Version: 3.*
  • Operating System: Centos 6.7
  • Browser version: Chrome

you missed some information.

Do you have all running on one node? Why did you have versions that are already long end of life? Are you able to update to later versions?

ohh…
It has some problems…

  1. you run on a very old system, I suggest to update it. The ES has 2 new main version with a lot of improvements at the speed side also. As Jan mentioned
    1+1. nodes information (also mentioned by jan)
  2. Elasticsearch doesn’t handle 384 GB of RAM. Max 64GB for ES.
  3. you didn’t share any config. but the eg the ES heap size is important.
  4. your config changes -
    4.2 - GL has a bug if you send bigger batch then your ES http request size, it can stops the process. Take care about it.
    4.3 - please chekc the server.conf’s comments. DON1T use more buffer processors then your cpu’s number.
    If you don’t have experience with it, I suggest use the defaults.
    If you have speed problems on the ES side it won’t help.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.