Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

create dedicated query for bumping workspace activity #8064

Closed
Assignees
johnstcn
Labels
scaletestIssues related to scale testing.
Milestone
@johnstcn

Description

@johnstcn

Each running workspace agent reports stats every 30 seconds by default via POST to /api/v2/workspaceagents/me/report-stats. A side-effect of this operation is that we perform anactivity bump which updates thedeadline field of the active workspace build.

This curerntly kicks off up to 4 database queries in a transaction:

  • GetLatestWorkspaceBuildByWorkspaceID
  • GetProvisionerJobByID
  • GetWorkspaceByID
  • UpdateWorkspaceBuildByID (conditional)

With N active workspaces with active connections phoning home every 30 seconds, this adds potentially N/10 database queries per second.

We can potentially improve this by combining the first three queries into one.

Metadata

Metadata

Assignees

Labels

scaletestIssues related to scale testing.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp