Fly Proxy. Booting internal machine with cache proxy behind it without sleep

I have a wordpress application (connected to a planetscale database) and a varnish caching proxy behind it. I only have 1 machine per app and I want them to always be online without going to sleep. How can I do this correctly for a wordpress app (which is not exposed to the external internet)?


app = "my-app"
primary_region = "lhr"
kill_signal = "SIGINT"
kill_timeout = "5s"

  auto_rollback = true


  source = "my_app_data"
  destination = "/var/www/html/web/app/uploads"


app = "proxy-my-app"
primary_region = "lhr"

  internal_port = 80
  force_https = true
  auto_stop_machines = true
  auto_start_machines = true
  min_machines_running = 1

    type = "requests"
    soft_limit = 200
    hard_limit = 250

Also, what is the average wakeup time (cold start) for the php runtime?

Hi @predaytor

The WordPress app shouldn’t be going to sleep as it has no services of http_service section.

Are you seeing it being put to sleep by the fly infrastructure?

1 Like

I’m not sure. Is there a way to check when the app was last in sleep mode? Maybe it’s a regular cold start because my app doesn’t have consistent user activity right now.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.