-
Notifications
You must be signed in to change notification settings - Fork 0
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
Troubleshooting: Provide concise troubleshooting guidelines #55
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
2ddbe16
Troubleshooting: Start reworking the main page, and general guidance
amotl a60921b
Troubleshooting: Rework section, add dedicated pages for jcmd, JFR, CFR
amotl 706dd58
Troubleshooting: Don't mention number of system tables
hammerhead 4b9fc77
Troubleshooting: Fix SQL statements on page about "System Tables"
amotl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
(cfr)= | ||
# CrateDB Flight Recorder (CFR) | ||
|
||
:::{rubric} About | ||
::: | ||
In a similar spirit like the [](#jfr), CFR helps to collect information about | ||
CrateDB clusters for support requests and self-service debugging. | ||
|
||
CFR is a utility application to acquire and export diagnostic information from | ||
CrateDB's [system tables](#systables) into an archive file. You can transmit | ||
this file to support engineers, in order to optimally convey relevant | ||
information about your cluster, mostly for debugging and troubleshooting | ||
purposes. | ||
|
||
:::{rubric} Details | ||
::: | ||
The CrateDB Flight Recorder (CFR) is an ETL application dumping all database | ||
tables in the `sys` schema into a timestamped tarball archive file. | ||
On the receiving end, the recording can be imported into another CrateDB | ||
instance, in order to inspect and analyze it. | ||
|
||
Flight recordings can be started against any running CrateDB cluster at runtime. | ||
The utility connects to CrateDB like a regular client, talking SQL. | ||
CFR is part of the CrateDB Toolkit (`ctk cfr`), and is also available as a | ||
standalone application `cratedb-cfr(.exe)`. | ||
|
||
|
||
## Synopsis | ||
|
||
:Export: | ||
|
||
`cratedb-cfr sys-export` invokes the export operation. | ||
|
||
:Import: | ||
|
||
`cratedb-cfr sys-import` invokes the import operation. | ||
|
||
|
||
## Install | ||
|
||
Select one of the standalone application bundles, matching the platform | ||
and architecture of the corresponding system where you intend to run CFR. | ||
|
||
::::{grid} 1 2 2 2 | ||
|
||
:::{grid-item-card} {material-outlined}`download_for_offline;1.4em` Linux x64 | ||
:link: https://github.com/crate-workbench/cratedb-toolkit/actions/runs/9826830191/artifacts/1674929097 | ||
:link-alt: CFR for Linux x64 | ||
:padding: 0 | ||
:class-title: sd-fs-5 | ||
+++ | ||
cratedb-cfr-linux-x64.zip | ||
::: | ||
|
||
:::{grid-item-card} {material-outlined}`download_for_offline;1.4em` macOS x64 | ||
:link: https://github.com/crate-workbench/cratedb-toolkit/actions/runs/9826830191/artifacts/1674929134 | ||
:link-alt: CFR for macOS x64 | ||
:padding: 0 | ||
:class-title: sd-fs-5 | ||
+++ | ||
cratedb-cfr-macos-x64.zip | ||
::: | ||
|
||
:::{grid-item-card} {material-outlined}`download_for_offline;1.4em` Windows x64 | ||
:link: https://github.com/crate-workbench/cratedb-toolkit/actions/runs/9826830191/artifacts/1674930132 | ||
:link-alt: CFR for Windows x64 | ||
:padding: 0 | ||
:class-title: sd-fs-5 | ||
+++ | ||
cratedb-cfr-windows-x64.zip | ||
::: | ||
|
||
:::{grid-item-card} {material-outlined}`download_for_offline;1.4em` macOS ARM64 | ||
:link: https://github.com/crate-workbench/cratedb-toolkit/actions/runs/9826830191/artifacts/1674927962 | ||
:link-alt: CFR for macOS ARM64 | ||
:padding: 0 | ||
:class-title: sd-fs-5 | ||
+++ | ||
cratedb-cfr-macos-arm64.zip | ||
::: | ||
|
||
:::: | ||
|
||
|
||
|
||
## Learn | ||
|
||
:::{card} {material-outlined}`library_books;1.6em` CrateDB Cluster Flight Recorder (CFR) | ||
:link: ctk:cfr | ||
:link-type: ref | ||
Learn about the concepts of CFR, and how to use it. | ||
::: | ||
|
||
|
||
[Java Flight Recorder]: https://en.wikipedia.org/wiki/JDK_Flight_Recorder | ||
[jcmd]: https://docs.oracle.com/en/java/javase/17/docs/specs/man/jcmd.html |
This file contains 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
Oops, something went wrong.
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.
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.
What is the approach to keep these links to release bundles up-to-date? I noticed it currently links to a specific GitHub Action run. Is there a possibility to have the artifacts as part of the regular release assets (https://github.com/crate-workbench/cratedb-toolkit/releases), so updating it here is just a matter of keeping it in sync with the latest cratedb-toolkit version number?
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.
Thanks, this is right on the spot. Currently, there is no solid approach yet, we just did the minimum things to establish a build matrix through a corresponding GitHub Actions workflow.
I've provided a relevant response citing you on the corresponding tracking ticket, so it will not get lost when merging this patch.
We will need to improve the situation with subsequent iterations.