There is a datanode config property opensearch_heap that you need to configure in your datanode.conf, or alternatively, by configuring env property GRAYLOG_DATANODE_OPENSEARCH_HEAP.
This property and the notification itself is refering to the memory that will be used by the managed opensearch process in datanode.
Did you mean I need to add GRAYLOG_DATANODE_OPENSEARCH_HEAP in the datanode container right? so no need to add heap argument in graylog container right?
the property itself and its usage is correct, the value would be simply 3g:
GRAYLOG_DATANODE_OPENSEARCH_HEAP: "3g"
The rest will happen automatically, meaning your opensearch in datanode will be started exactly as you are trying, with the -Xms3g -Xmx3g in the background.
@Tdvorak It is setting up but still it is showing the heap notification and suggested that minimum 50% of RAM should be set for example for 16GB RAM, need to set 7GB.
I set to 7g but now the graylog is not able to access with FQDN but able to access with IP.