Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Workspace Agent Metadata creates lots of db load and locking at scale #21358

@spikecurtis

Description

@spikecurtis

With 1200 workspaces and a 4-core database, just keeping the workspaces connected consumes 80% of the CPU on the database.

Image

The most load comes from UpdateWorkspaceAgentMetadata

Image

Some customers have also noticed high levels of lock-waits on the pg_notify we send after updating workspace agent metadata.

Metadata

Metadata

Assignees

No one assigned

    Labels

    scaletestIssues related to scale testing.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions