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

On Nitro-based instances, access serial logs directly #23

Merged
merged 1 commit into from
Jan 16, 2024

Conversation

clf-cklf
Copy link
Contributor

@clf-cklf clf-cklf commented Jan 15, 2024

Accessing console logs by the default method is slow, as it can take up to 15 minutes for the output to appear.

Nitro-based instances have a feature that allows querying the serial log directly, which updates much more quickly. https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/troubleshoot-unreachable-instance.html#instance-console-console-output

This has been tested by causing all instances in dev to be replaced, and re-querying their host keys. All hosts responded within two queries.

It is not clear what the fallback behaviour of this switch is when applied to a non-Nitro instance, as we have no such instances to test with. Ideally it would revert to the old behaviour, if not we may need to add a command-line flag to support older instances, or clarify that this feature only works on Nitro hosts.

If possible, please merge preserving the commit ID, or update the PR here to reflect the correct HEAD commit: https://github.com/bitnomial/bitnomial/pull/6253

@clf-cklf clf-cklf self-assigned this Jan 15, 2024
@clf-cklf clf-cklf merged commit 71fbf64 into master Jan 16, 2024
1 check passed
@clf-cklf clf-cklf deleted the clf-use-faster-console-output-fetch branch January 16, 2024 09:12
@wraithm
Copy link
Member

wraithm commented Jan 16, 2024

The correct thing might be to detect if they're nitro?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants