Graylog2 / collector-sidecar

Manage log collectors through Graylog
https://www.graylog.org/
Other
268 stars 56 forks source link

Sidecar can temporarly lose config registrations #481

Closed mpfz0r closed 10 months ago

mpfz0r commented 10 months ago

Problem description

With every registration request, the Sidecar performs a version check against the Graylog server. The result then decides which kind of config assignment is expected. Servers >= 5.0 return a type that supports multiple configs per backend. (see #441)

As a precaution, a fallback result to version 4.0.0 was added in case the version could not be parsed from the server. This turns out to be problematic in the following scenario. If a Sidecar is talking to a load balancer, which sits in front of multiple Graylog nodes, the following race condition can happen:

mpfz0r commented 10 months ago

[ HS #1903228006 ]