Skip to content

zstd compression is using a ton of CPU while we are creating workspaces #1300

@spikecurtis

Description

@spikecurtis

During scale tests, when we create new workspaces, CPU utilization spikes up to our limit:

Image

From Pyroscope:

Image

In Coderd, zstd compression is used for the site handler:

	// Static file handler must be wrapped with HSTS handler if the
	// StrictTransportSecurityAge is set. We only need to set this header on
	// static files since it only affects browsers.
	r.NotFound(cspMW(compressHandler(httpmw.HSTS(api.SiteHandler, options.StrictTransportSecurityCfg))).ServeHTTP)

Annoyingly, whatever HTTP requests are being made, we are not recording the path in the coderd_api_requests_processed_total metric

Image

Metadata

Metadata

Assignees

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