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

debug command archive content changes #8462

Merged
merged 15 commits into from
Aug 11, 2020
Merged

debug command archive content changes #8462

merged 15 commits into from
Aug 11, 2020

Conversation

langmartin
Copy link
Contributor

@langmartin langmartin commented Jul 20, 2020

A set of usability improvements to nomad debug:

  • include the timestamped path in the paths in the archive
  • print the duration & interval so the user knows it's working
  • use timestamps to label interval state snapshots
  • use extended consul environment to contact consul
  • use consul and vault environment addresses if present
  • include operator endpoints
  • stale flag allows membership to be queried in stuck clusters

Intervals are still numbered sequentially rather than by timestamp, with the rationale that timestamp precision gets a little awkward: either we use millisecond timestamps that are large, or second timestamps that duration settings can cause to be used more than once, or minimum durations. Open to suggestion!

@langmartin langmartin requested a review from notnoop July 26, 2020 14:42
@langmartin langmartin marked this pull request as ready for review August 6, 2020 19:06
@langmartin langmartin added this to the 0.12.2 milestone Aug 6, 2020
Copy link
Contributor

@notnoop notnoop left a comment

Choose a reason for hiding this comment

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

lgtm with minor tweaks.

command/debug.go Outdated Show resolved Hide resolved
command/debug.go Outdated Show resolved Hide resolved
command/debug.go Outdated Show resolved Hide resolved
api/api.go Outdated Show resolved Hide resolved
@langmartin langmartin merged commit 9e7d044 into master Aug 11, 2020
@langmartin langmartin deleted the f-nomad-debug-bits branch August 11, 2020 17:14
@@ -55,34 +59,83 @@ General Options:

Debug Options:

-duration=2m
The duration of the log monitor command. Defaults to 2m.
-duration=<interval>
Copy link
Contributor

Choose a reason for hiding this comment

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

should this be -duration=<duration> instead of interval

Copy link
Contributor Author

@langmartin langmartin Aug 11, 2020

Choose a reason for hiding this comment

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

yes! ugh. I'll include that change in the rename pr which I've just rebased on top of this. #8602

@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants