Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v22.1.x] cluster,kafka: auto-populate cluster_id and prefix it with "redpanda." #4926

Merged

Conversation

vbotbuildovich
Copy link
Collaborator

Backport from pull request: #4457

jcsp added 9 commits May 25, 2022 11:54
...and check on each tick whether it is really
enabled.

This achieves two things:
- lightweight way to enable switching it on and off
  without restarting redpanda (previously the enable
  flag was checked once at startup)
- enables using the metrics reporter as a place to
  initialize the cluster_id in the config, as now its
  try_initialize_cluster_info will always run, even if
  metrics reporting is disabled.

(cherry picked from commit fa23508)
...and report a dummy "redpanda.initializing" cluster
ID if the cluster_id isn't set yet (it should eventually
be set automatically)

(cherry picked from commit 6592316)
This enables the new auto-initialization of the
cluster_id to do its thing.

(cherry picked from commit d5075db)
This is partly a shortcut to get the cluster_id initialized
promptly, but also makes sense for metrics reports in general:
when a system starts up, it makes sense to get telemetry
from it right away, rather than waiting for a full tick
period.

(cherry picked from commit e12d1eb)
Tests that previously asserted a particular config version
need updating to account for the "extra" version that now
results from auto-populating cluster_id.

(cherry picked from commit 992b1ed)
Previously metrics reporter was only paying attention
to its url if switched on: now it runs all the time (although
only sending requests if it's switched on), so we need to
get this right.

(cherry picked from commit eff6561)
The exact == check is only correct if there are no
concurrent modifications to the cluster config.  Now that
we auto-set cluster_id in the background, there are such
background changes, so we use a >= instead.

(cherry picked from commit 94a4a9a)
@vbotbuildovich vbotbuildovich added this to the v22.1.4 milestone May 25, 2022
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label May 25, 2022
@jcsp jcsp marked this pull request as ready for review May 26, 2022 14:57
@jcsp jcsp requested a review from dotnwat as a code owner May 26, 2022 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/redpanda kind/backport PRs targeting a stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants