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

Update debug/dump cmd with Cluster-Environment-Name header #2672

Merged
merged 8 commits into from
Sep 29, 2020
8 changes: 7 additions & 1 deletion docs/troubleshooting/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,14 @@ This endpoint can be used on both the db nodes as well as the coordinator/query

To use this, simply run the following on either the M3DB debug listen port or the regular port on M3Coordinator.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you add something along the lines of "if the placement you are interested in is under a separate env than the service you are downloading the dump from, you may need to set the Cluster-Environment-Name header"

Copy link
Collaborator

Choose a reason for hiding this comment

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

Never mind! The fallback behavior isn't consistent.


You may need to include the following headers:

--8<--
Copy link
Collaborator

Choose a reason for hiding this comment

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

What's this mean? Renders weirdly when I click the markdown view.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

docs/common/headers_placement_namespace.md
--8<--

```
curl <m3db_or_m3coordinator_ip>:<port>/debug/dump > <tmp_zip_file.zip>
curl -H "Cluster-Environment-Name: [set if not default]" <m3db_or_m3coordinator_ip>:<port>/debug/dump > <tmp_zip_file.zip>

# unzip the file
unzip <tmp_zip_file.zip>
Expand Down