Skip to content

bug: GetDeploymentWorkspaceAgentStats creates lots of DB load with many workspace connections #1009

@ethanndickson

Description

@ethanndickson

Over a three hour connection scaletest, with 6k workspaces, this query generated the most load on the DB in terms of total time, and by CPU utilization - according to CloudSQL query insights.

Times called: 3460
Avg execution time (ms): 674.66

P95 execution timing (seconds):
Image
(Each of the four 'blocks' of spikes on the graph correlates with workspace traffic being simulated. i.e. when clients are connected to agents)

CloudSQL Query Insights:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions