1. Describe your incident:
We have multi-node Graylog setup fronted by F5 Load Balancer to load balance user sessions and incoming logs.
After upgrading from Graylog 4 to Graylog 6 the logs we noticed that the logs are no longer being balanced as expected. This issue was discovered a couple of weeks after the upgrade so it could not be related to the upgrade 100%
Previously Balanced Logs:
[Node] [Messages] [Percentage]
graylogn2 1,202,158 20.02%
graylogn4 1,201,813 20.01%
graylogn5 1,201,724 20.01%
graylogn3 1,201,330 20.00%
graylogn1 1,199,158 19.97%
Current Logs Distribution:
[Node] [Messages] [Percentage]
graylogn4 2,029,273 34.54%
graylogn3 1,464,229 24.92%
graylogn2 1,237,422 21.06%
graylogn5 665,532 11.33%
graylogn1 479,403 8.16%
- Describe your environment:
x5 Graylog Nodes + MongoDB ( v6.0.24 )
-
OS Information: Rocky Linux release 8.10
-
Package Version: Graylog 6.0.14
x3 External Elasticsearch Nodes
-
OS Information: Rocky Linux release 8.10
-
Package Version: Elasticsearch 7.10.2
Big IP** F5 Load Balancer:**
Virtual IP which sources sends logs to.
Server pool containing all Graylog Nodes.
Load Balancing Method: Round Robin
Priority Group Activation: Disabled
Default Persistence Profile: Custom (Based on universal profile but with timeout set at 5 seconds).
F5 iRule:
when CLIENT_ACCEPTED {
if {[UDP::payload length] >= 12 } {
#binary scan [UDP::payload 12] H* chunkedheader
binary scan [UDP::payload 12] H4H16c1c1 magicbytes messageid seqno seqcount
#incr seqno
if { $magicbytes equals “1e0f”} {
#log local0. “GrayLog chunked message received. Header: $chunkedheader; ID: $messageid (msg #$seqno of $seqcount)”
persist uie $messageid
}
}
}
3. What steps have you already taken to try and solve the problem?
Restarted Graylog Nodes
Removed F5 iRule
Increased Persistence Profile Timeout to 30seconds.
According to F5 Support each source will establish a connection with a single node and after the sessions is terminated its re establishing a new connection with a different node.
4. How can the community help?
How can I proper load balance such setup using Big IP F5 Load balancer?
Thanks.
Ryan

