Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Worker with 50 domains - memory leak? one horizon to many clients? #107

Open
raulamoretti opened this issue Jan 9, 2024 · 1 comment
Open

Comments

@raulamoretti
Copy link

Hey Giacomo!

Some time ago I opened a issue to config horizon.

Now I have a problem with memory / queues.

We run 70 domains, with huge queues, 4 queues in small clients e 18 queues in higher clients.

With this we spend 30 Gigabits of memory and CPU.

I think in a special method to decrease PHP footprint in worker memory or a common queue to many clients.

image image
@gecche
Copy link
Owner

gecche commented Jan 16, 2024

Hi, sorry for the delay... I don't think there is a memory leak in the package as the worker is the Laravel worker itself. Maybe Horizon? But I don't know. I believe that If you want "a special method to decrease PHP footprint in worker memory", I think that you should think it for the standard Laravel worker.
However, the 30 GB of memory usage is uniformely distributed across the worker processes?
Have you tried memory usage, by using N Laravel installations, one for each domain?

For the second idea "a common queue to many clients", I think that you can't do this forking my package, but you could consider to rethink your application by building a "central" module which process the jobs of all your domains. But generally is not that simple :)

Anyway, I leave the issue open for quite bit: let's see if someone has some idea to improve the situation.

Thanks

Giacomo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants