Graylog2 / Graylog2/graylog2-server

DataNode: Set heap size automatically

Open
#23,034 3 comments 1 reaction 0 assignees View on GitHub
feature triaged
Dominant language
Java
Stars
8.1k
Forks
1.1k
Avg merge
1d 20h
Merged PRs (30d)
217

Description

## What?

IMO DataNode should, by default, set the heap size automatically.

## Why?

I somehow completely missed configuring `opensearch_heap` when I converted to Data Node and did not even notice my nodes were running with 1g heap. Thankfully https://github.com/Graylog2/graylog2-server/pull/20168 caught this. But this got me thinking: Why can't or shouldn't this default to 50% ram? There is precedent for this with how we automatically set the buffer processors.

Graylog admins can (and should) still configure `opensearch_heap`, however humans make mistakes and missing things.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.