Skip to content

CODER_PROC_PRIO_MGMT puts noise in logs when processes exit before renicing #14651

@aaronlehmann

Description

@aaronlehmann

CODER_PROC_PRIO_MGMT seems to have a race when processes exit before the agent has a chance to renice it. This leads to a lot of noise in workspace logs:

2024-09-11 22:28:12.826 [warn]  unable to get proc niceness  cmd=""  pid=7899 ...
2024-09-11 22:28:12.827 [info]  error= get priority for "":
2024-09-11 22:28:12.827 [info]  github.com/coder/coder/v2/agent/agentproc.(*Process).Niceness
2024-09-11 22:28:12.827 [info]  /go/pkg/mod/github.com/coder/coder/v2@v2.14.3/agent/agentproc/proc_unix.go:107
2024-09-11 22:28:12.827 [info]  - get priority:
2024-09-11 22:28:12.827 [info]  github.com/coder/coder/v2/agent/agentproc.UnixSyscaller.GetPriority
2024-09-11 22:28:12.827 [info]  /go/pkg/mod/github.com/coder/coder/v2@v2.14.3/agent/agentproc/syscaller_unix.go:30
2024-09-11 22:28:12.827 [info]  - no such process

Metadata

Metadata

Assignees

Labels

observabilityIssues related to observability (metrics, dashboards, alerts, opentelemetry)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy