Skip to content

static:warm performance issues  #8410

@JonKaric

Description

@JonKaric

Bug description

When running static:warm on my droplet, it seems to be maxing out the CPU. This is fine on smaller sites where it can build the cache in a swift time but causes issues when going into the 1000’s of entries. Due to maxing out the CPU, the command would start producing 504 timeouts.

Things tried but failed:

  • Using a 1cpu, 2cpu & 4cpu droplets. All have the same issue but gets better the higher performance you have.
  • I’ve tried offloading this onto a queue (mysql), and giving it a 1 second wait between jobs but you end up just getting a spike every second when it runs the job.
  • Using warm_concurrency set to 1 without a queue
  • Using the Cool Writings starter kit has the same issues
  • Deleting everything from my templates so I’ve got a totally blank site
  • stache:refresh is ran beforehand
  • Stache watcher is off

Extra context with conversation:
https://discord.com/channels/489818810157891584/842065697709490226/1125862143187759194

How to reproduce

  • Create a new starter kit and duplicate entries so there are more than 500 at least.
  • Push to a DO $6 droplet through Ploi
  • SSH into the server and htop to see real-time CPU usage.

Environment

- Digital Ocean Droplets
- Ploi
- Various envs

Antlers Parser

runtime (new)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions