Skip to content

Document the ingester hand-over process #1560

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

Merged
merged 2 commits into from
Aug 16, 2019
Merged

Document the ingester hand-over process #1560

merged 2 commits into from
Aug 16, 2019

Conversation

bboreham
Copy link
Contributor

@bboreham bboreham commented Aug 6, 2019

Suggested at #1553 (comment)

Copy link
Contributor

@csmarchbanks csmarchbanks left a comment

Choose a reason for hiding this comment

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

One comment, or we could deprecate the mentioned flag now and then not mention the two behaviors?

short time, if nothing happens, it adds itself to the ring and goes
into state ACTIVE.

A running ingester is notified to shut down by Unix signal
Copy link
Contributor

Choose a reason for hiding this comment

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

This paragraph should mention the -ingester.claim-on-rollout flag.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

#1566 to remove it

`ACTIVE`, taking over ownership of the leaver's
[ring tokens](architecture.md#hashing).

If a leaving ingester does not find a pending ingester, it will flush
Copy link
Contributor

@tomwilkie tomwilkie Aug 6, 2019

Choose a reason for hiding this comment

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

-ingester.search-pending-for I believe?

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah no, its ingester.max-transfer-retries - it will try, backoff for 5 secs (max).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah if you win the lottery. See #1307


On start-up, an ingester first goes into state `PENDING`. After a
short time, if nothing happens, it adds itself to the ring and goes
into state ACTIVE.
Copy link
Contributor

Choose a reason for hiding this comment

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

Tuneable with -ingester.join-after

Copy link
Contributor

Choose a reason for hiding this comment

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

If you add that property can you tell under which circumstances you may want to tune it?
Why wouldn't I like to have a new ingester to immediately join the ring (i. e. setting -ingester.join-after to 0). Would that introduce the risk the ingester is considered as additional ingester (rather than the new ingester which is supposed to receive the data from the terminating ingester?) or why does that property even exist?

I am missing some more context to understand what is happening there.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The leaving ingester probes periodically for a joining one - need to allow time for this to happen. I guess it's tuneable because we don't trust our initial guesses.

Personally I don't want to litter the main narrative with all the tuning options - maybe add a pointer to their description in arguments.md ?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think linking to arguments.md makes a lot of sense for the detailed parameters.

@tomwilkie
Copy link
Contributor

LGTM with a few nits.

@bboreham
Copy link
Contributor Author

bboreham commented Aug 8, 2019

I added the two args.

@bboreham bboreham merged commit c09d6ee into master Aug 16, 2019
@bboreham bboreham deleted the hand-over-doc branch August 16, 2019 07:47
ingester goes into state `JOINING` and the leaver transfers all its
in-memory data over to the joiner. On successful transfer the leaver
removes itself from the ring and exits and the joiner changes to
`ACTIVE`, taking over ownership of the leaver's
Copy link
Contributor

@achilles42 achilles42 Aug 17, 2019

Choose a reason for hiding this comment

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

Should we also mention about unhealthy ingester state?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants