You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
tiup: add the tiup cluster detach-grafana command reference - #22072
Add the reference page for the new tiup cluster detach-grafana command (pingcap/tiup#2750): description, syntax, options, directory-safety checks, and post-handover maintenance notes. The page is linked from the TiUP Cluster command overview, TOC.md, and TOC-pingkai.md.
Which TiDB version(s) do your changes apply to? (Required)
Document the new detach-grafana command (pingcap/tiup#2750): syntax,
options, directory-safety checks, and post-handover maintenance notes.
Link the page from the TiUP Cluster command overview and both TOCs.
This pull-request has been approved by: Once this PR has been reviewed and has the lgtm label, please assign qiancai for approval. For more information see the Code Review Process. Please ensure that each of them provides their approval before proceeding.
The full list of commands accepted by this bot can be found here.
Details
Needs approval from an approver in each of these files:
It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.
This PR adds a reference page for the new detach-grafana command and links it from the TiUP Cluster overview and the tables of contents. The earlier concern about the TiFlash cache directory check scope has been clarified in the page. No remaining merge-blocking risk is evident.
Reviewing files that changed from the base of the PR and between 64849b2 and 2068b3a.
Files selected for processing: 1
tiup/tiup-component-cluster-detach-grafana.md
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 0 remain after this review.
The link returns 403 to GitHub runners while serving 200 to browsers,
and it is pre-existing on master; the changed-file check surfaced it
because this PR touches TOC-pingkai.md.
Reviewing files that changed from the base of the PR and between 80c7843 and 36b55d0.
Files selected for processing: 4
TOC-pingkai.md
TOC.md
tiup/tiup-component-cluster-detach-grafana.md
tiup/tiup-component-cluster.md
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.
…tion
Per review: edit-config only changes the local topology, so ask readers
to confirm the remote paths first; the Grafana discovery record lives in
PD's etcd, not in the local metadata.
Reviewing files that changed from the base of the PR and between a83a562 and 6def98a.
Files selected for processing: 1
tiup/tiup-component-cluster-detach-grafana.md
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 1 remain after this review.
Per review: the check matches hosts by the recorded manage-host string,
so the same machine recorded as different addresses in different
clusters is not compared; and instance deploy/log/data values are
resolved against deploy_dir before the check, so only paths that stay
relative or contain shell syntax are rejected.
Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.
Reviewing files that changed from the base of the PR and between 6def98a and 64849b2.
Files selected for processing: 1
tiup/tiup-component-cluster-detach-grafana.md
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 0 remain after this review.
deploy_dir itself must be absolute while log_dir/data_dir resolve
against it; Grafana paths.* prefer the instance config with a
server_configs fallback, and only the instance-level TiFlash
storage.remote.cache.dir participates in the check.
Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.
- The directory check requires absolute recorded paths verbatim; there is
no deploy_dir-relative resolution step. Describe the actual rule.
- Explain why the directory conflict check exists: later scale-in,
destroy, or upgrade may clean up overlapping managed directories.
- Mention the confirmation step in the output section, and that a
pending two-phase scale-out blocks the command.
- Unify the detach wording and apply minor phrasing fixes.
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.
Cover the Grafana SQLite database file (database.url / database.path)
in the directory-overlap description and note that external database
URLs are out of scope; compare hosts recorded as IP addresses by
value so different IPv6 spellings of one machine count as one host.
Describe the discovery-record semantics introduced with
detached_grafanas: detach records the handed-over instance's address
in the metadata, refreshes preserve the entry while the record exists
and delete it otherwise (including the retry after a failed scale-in
cleanup), adding a managed Grafana replaces the entry and clears the
record, and older TiUP versions do not recognize the record.
State the new preservation rule as one exception plus the usual
maintenance: a topology refresh keeps the discovery record only while
it still points at the detached instance's address; everything else
follows the rules of a cluster that never detached. Aligns the page
with the matching tiup behavior change.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
missing-translation-statusThis PR does not have translation status info.size/MDenotes a PR that changes 30-99 lines, ignoring generated files.
2 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is changed, added, or deleted? (Required)
Add the reference page for the new
tiup cluster detach-grafanacommand (pingcap/tiup#2750): description, syntax, options, directory-safety checks, and post-handover maintenance notes. The page is linked from the TiUP Cluster command overview,TOC.md, andTOC-pingkai.md.Which TiDB version(s) do your changes apply to? (Required)
What is the related PR or file link(s)?
AI agent involvement
Do your changes match any of the following descriptions?
Summary by CodeRabbit
tiup cluster detach-grafana命令文档,并将该命令加入 TiUP Cluster 命令目录。