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

fix: suppress noisy log spam when scaling runners #537

Merged
merged 1 commit into from
Nov 2, 2023

Conversation

alecthomas
Copy link
Collaborator

@alecthomas alecthomas commented Nov 2, 2023

Also added --recreate flag to ftl serve.

Fixes #534

Before:

info:reconcileRunners: Removing runner: R00000000000000000000002000
warn:runner0: Stream handler failed, retrying in 100ms: context canceled
warn:runner0: Stream handler failed, retrying in 100ms: context canceled
error:reconcileRunners: Error starting runner: context canceled: context canceled
error:controller0: Streaming RPC failed: invalid_argument: protocol error: incomplete envelope: stream error: stream ID 3; CANCEL: /xyz.block.ftl.v1.ControllerService/RegisterRunner

After:

info:reconcileRunners: Removing runner: R00000000000000000000002000
error:controller0: Streaming RPC failed: invalid_argument: protocol error: incomplete envelope: stream error: stream ID 9; CANCEL: /xyz.block.ftl.v1.ControllerService/StreamDeploymentLogs

There's still one error, but it seems more difficult to fix this one, and it seems more intermittent too.

@alecthomas alecthomas changed the title fix: suppress irrelevant log spam when scaling runners fix: suppress noisy log spam when scaling runners Nov 2, 2023
@alecthomas alecthomas merged commit 6584788 into main Nov 2, 2023
8 checks passed
@alecthomas alecthomas deleted the aat/quieter-scaling branch November 2, 2023 04:21
} else {
err = exec.Command(ctx, logger.GetLevel(), ".", "ftl-initdb", dsnFlag).Run()
}
_, err = databasetesting.CreateForDevel(ctx, dsn, recreate)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Thank you! :)

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.

When we terminate a runner don't spam cancel errors.
2 participants