-
Notifications
You must be signed in to change notification settings - Fork 464
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
Update the spread-minimizing token migration documentation #8411
Conversation
Signed-off-by: Yuri Nikolic <durica.nikolic@grafana.com>
6337659
to
3090e1e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
docs/sources/mimir/configure/configure-spread-minimizing-tokens/index.md
Outdated
Show resolved
Hide resolved
{{% /admonition %}} | ||
|
||
{{% admonition type="note" %}}In order to prevent incorrect query results, [shuffle-sharding](https://grafana.com/docs/mimir/latest/configure/configure-shuffle-sharding/#ingesters-shuffle-sharding) on the [read path](https://grafana.com/docs/mimir/latest/configure/configure-shuffle-sharding/#ingesters-read-path) of your ingesters **must** be disabled before migrating ingesters to the spread-minimizing tokens. Shuffle-sharding on ingester's read path can be re-enabled at least `-querier.query-store-after` time after the last ingester zone was migrated to the spread-minimizing tokens. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unbold "must". We use bold text only for UI elements, not for emphasis.
docs/sources/mimir/configure/configure-spread-minimizing-tokens/index.md
Show resolved
Hide resolved
{{% admonition type="note" %}}In order to prevent incorrect query results, [shuffle-sharding](https://grafana.com/docs/mimir/latest/configure/configure-shuffle-sharding/#ingesters-shuffle-sharding) on the [read path](https://grafana.com/docs/mimir/latest/configure/configure-shuffle-sharding/#ingesters-read-path) of your ingesters **must** be disabled before migrating ingesters to the spread-minimizing tokens. Shuffle-sharding on ingester's read path can be re-enabled at least `-querier.query-store-after` time after the last ingester zone was migrated to the spread-minimizing tokens. | ||
{{% /admonition %}} | ||
|
||
If ingesters are configured with a non-empty value of `-ingester.ring.tokens-file-path`, the latter represents the file where ingesters store the tokens at shutdown and restore them at startup. Keep track of this value, because it will be needed in the last step. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to "Keep track of this value, because you need it in the last step". This change avoids using "will" and also moves away from passive voice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. I've applied your suggestions.
If before the migration ingesters were configured to store their tokens under `-ingester.ring.tokens-file-path`, these files must be deleted once all ingester zones are migrated to the spread-minimizing tokens. | ||
|
||
For example, assuming that an ingester pod `ingester-zone-a` from a namespace `mimir-prod` used to store its tokens in a file `/data/tokens`, the latter can be deleted by executing: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We might want to rephrase this step to avoid passive tense. For example:
If, before the migration, you configured ingesters to store their tokens under -ingester.ring.tokens-file-path
, you must delete these files after migrating all ingester zones to spread-minimizing tokens.
For example, if an ingester pod called ingester-zone-a
from a namespace called mimir-prod
used to store its tokens in a file called /data/tokens
, you can run the following command to delete the /data/tokens
file:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you
…s/index.md Co-authored-by: Nick Pillitteri <56quarters@users.noreply.github.com>
Signed-off-by: Yuri Nikolic <durica.nikolic@grafana.com>
* Update the spread-minimizing token migration documentation Signed-off-by: Yuri Nikolic <durica.nikolic@grafana.com> * Update docs/sources/mimir/configure/configure-spread-minimizing-tokens/index.md Co-authored-by: Nick Pillitteri <56quarters@users.noreply.github.com> * Fixing review findings Signed-off-by: Yuri Nikolic <durica.nikolic@grafana.com> --------- Signed-off-by: Yuri Nikolic <durica.nikolic@grafana.com> Co-authored-by: Nick Pillitteri <56quarters@users.noreply.github.com> (cherry picked from commit 2ee427e)
…8473) * Update the spread-minimizing token migration documentation Signed-off-by: Yuri Nikolic <durica.nikolic@grafana.com> * Update docs/sources/mimir/configure/configure-spread-minimizing-tokens/index.md Co-authored-by: Nick Pillitteri <56quarters@users.noreply.github.com> * Fixing review findings Signed-off-by: Yuri Nikolic <durica.nikolic@grafana.com> --------- Signed-off-by: Yuri Nikolic <durica.nikolic@grafana.com> Co-authored-by: Nick Pillitteri <56quarters@users.noreply.github.com> (cherry picked from commit 2ee427e) Co-authored-by: Đurica Yuri Nikolić <durica.nikolic@grafana.com>
What this PR does
This PR enriches the existing "Migrate ingesters to spread-minimizing tokens" documentation with some missing parts. In particular:
Which issue(s) this PR fixes or relates to
Fixes #
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]
.about-versioning.md
updated with experimental features.