superfly / fly-autoscaler

A metrics-based autoscaler for Fly.io
Apache License 2.0
28 stars 2 forks source link

Laravel Queues #27

Open plunkettscott opened 5 months ago

plunkettscott commented 5 months ago

This seems like a tool that could potentially auto scale Laravel Queue workers. Fly.io, more specifically @fideloper, has written about auto-scaling Laravel queues on Fly.io and has done some work to make this possible, but it would be neat to be able to use this for scaling and take the work off of the Laravel job scheduler itself.

I don't have any answers yet on how to determine the current queue length, but I wanted to create the issue and see if it was something that you'd be interested in including?

plunkettscott commented 5 months ago

I think this may actually be possible already by adding a Prometheus metric with the current queue size. Perhaps all that's needed in this project is to document how to set that up. I'll play around with this and report back if I manage to get it working as-is!