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

Temporarily make VM logging opt-in only #6385

Merged
merged 1 commit into from
Apr 17, 2024
Merged

Temporarily make VM logging opt-in only #6385

merged 1 commit into from
Apr 17, 2024

Conversation

bduffany
Copy link
Member

@bduffany bduffany commented Apr 16, 2024

Logging within the VM (log.Infof etc.) occasionally seems to cause hanging after the VM is resumed from snapshot. Make logging opt-in for now, including dockerd logs, until we find a solution. Keep kernel logs around since these seem fine.

Related issues: #6385

@bduffany bduffany marked this pull request as ready for review April 17, 2024 13:55
@@ -449,6 +449,7 @@ func (p *Provider) New(ctx context.Context, props *platform.Properties, task *re
NumCpus: numCPUs,
MemSizeMb: int64(math.Max(1.0, float64(sizeEstimate.GetEstimatedMemoryBytes())/1e6)),
ScratchDiskSizeMb: int64(float64(sizeEstimate.GetEstimatedFreeDiskBytes()) / 1e6),
EnableLogging: platform.IsTrue(platform.FindEffectiveValue(task.GetExecutionTask(), "debug-enable-vm-logs")),
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: I'm okay with you merging this now so it makes it into the release, but it would be nice if we pulled this from props so there's a more standardized way of propagating platform data

@bduffany bduffany merged commit 9a317ff into master Apr 17, 2024
16 of 18 checks passed
@bduffany bduffany deleted the fc-logging-fix branch April 17, 2024 15:15
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.

None yet

2 participants