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

allow ingester and distributor to run on same instance #4348

Merged
merged 3 commits into from
Sep 17, 2021

Conversation

trevorwhitney
Copy link
Collaborator

@trevorwhitney trevorwhitney commented Sep 17, 2021

Signed-off-by: Trevor Whitney [email protected]

What this PR does / why we need it:

When running loki with target --target=distributor,ingester it fails with the error FATAL: 2021/09/17 18:48:10 [core] grpc: Server.RegisterService found duplicate service registration for "logproto.Pusher". This is because the guard against registering the Pusher service in the initDistributor code is currently only guarding against the All target. With our work on the "single scalable deployment", we plan on having a write path where both the distributor and ingester are enabled. This PR allows both targets to be enabled.

Checklist

  • Documentation added
  • Tests updated

@trevorwhitney trevorwhitney requested a review from a team as a code owner September 17, 2021 18:56
Copy link
Collaborator

@slim-bean slim-bean left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@slim-bean slim-bean enabled auto-merge (squash) September 17, 2021 19:43
@slim-bean slim-bean merged commit 12253ec into main Sep 17, 2021
@slim-bean slim-bean deleted the run-distributor-with-ingester branch September 17, 2021 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants