Disk journal grows permanently

Hi everyone,

disk utilization on our Graylog system suddenly grows permanently. Process and output buffer are fully utilized.

2. Describe your environment:

  • OS Information: AlmaLinux 9.8

  • We have a single node installation

    Graylog 7.2.1

    OpenSearch 2.19

    Mongodb 8.0

3. What steps have you already taken to try and solve the problem?

All the metrics indicate that there are no problems with the configuration, shards, queues.
I have changed the parameter

/etc/graylog/server/server.conf

#output_batch_size = 500
output_batch_size = 1500

but the utilization is still growing.

Stopping all the inputs shows that the messages in the disk journal are being processed at the rate of approx. 3-5 K messages per second. To me, this seems to be the bottleneck. The system does not write messages from the disk journal into the opensearch indices fast enough.

Which parameters affects opensearch ?

curl -sS ‘http://localhost:9200/_cluster/health?pretty’

{
“cluster_name” : “graylog”,
“status” : “green”,
“timed_out” : false,
“number_of_nodes” : 1,
“number_of_data_nodes” : 1,
“discovered_master” : true,
“discovered_cluster_manager” : true,
“active_primary_shards” : 889,
“active_shards” : 889,
“relocating_shards” : 0,
“initializing_shards” : 0,
“unassigned_shards” : 0,
“delayed_unassigned_shards” : 0,
“number_of_pending_tasks” : 0,
“number_of_in_flight_fetch” : 0,
“task_max_waiting_in_queue_millis” : 0,
“active_shards_percent_as_number” : 100.0
}

# curl -sS ‘http://localhost:9200/_cat/thread_pool/write?v’
node_name name active queue rejected

xx.xx write 1 0 0

curl -sS ‘http://localhost:9200/_cat/allocation?v’

shards disk.indices disk.used disk.avail disk.total disk.percent host ip node
889 5tb 5tb 1.4tb 6.4tb 78 10.1.100.215 10.1.100.215 syslog2.izum.pri

I appreciate any suggestion.

Miloš

I’m not quite sure but it seems that the problems begun after upgrading Graylog from V6.9.11 to 7.2.1

Hi @milos ,

This seems to be a lot of data, both volume and amount of shards, for single-node opensearch cluster. It’s probably not directly related to the problem you are observing, but I’d recommend to think about reshaping your cluster and have at least 3 nodes, especially if this is your production environment and holds some critical data. Single-node setup is very fragile.

You are not saying anything about your hardware, but it would be good to know how many CPU cores does your graylog server have. If you aren’t configuring outputbuffer_processors explicitly and have only 4 cores or less, your setup will have only one thread processing the output buffer. This would match your observation from the _cat/thread_pool/write response.

You can try to set the outputbuffer_processors configuration to 2 or 4 threads and check if that helps.

Next thing to check would be additional stream outputs, if you have any configured. These could slow down or block the output as well.

You can also check System → Overview → Indexer failures, if anything indicates any problem.

If these things won’t reveal anything, I’d start thinking about the performance of the opensearch server itself, GC, heap…

Hi Thomas,

Thanks for your advice. We had simply too many shards on the system, hitting the limit. After changing the retention strategy from Data Tiering to Index Time and also settings shards = 1, the situation got better.

Good to hear that you could fix your setup! Thanks for letting me know.

Best regards
T.