Has anybody thought about adding Gearman support to the fpm sapi?
Managing Gearman workers is pretty much identical to managing fastcgi
workers, so it doesn't seem like much of a stretch.
-Rasmus
Rasmus,
I can work on it if no one has it already.
Warm Regards,
Patrick
Has anybody thought about adding Gearman support to the fpm sapi?
Managing Gearman workers is pretty much identical to managing fastcgi
workers, so it doesn't seem like much of a stretch.-Rasmus
The big difference is that different processes do different jobs in
Gearman. All PHP workers in fpm just run what ever code is handed to
them. How do you handle that?
Brian.
Has anybody thought about adding Gearman support to the fpm sapi?
Managing Gearman workers is pretty much identical to managing fastcgi
workers, so it doesn't seem like much of a stretch.-Rasmus
All "fpm" workers would be called using the same function name (e.g.
"runphp"). This allows you to reuse a gearmand instance for other
workers too.
The advantages of fpm vs gearman would be mostly performance (it uses
ping and requires an underlying layer on top of tcp/ip), followed by
dynamic spawning and "crash recovery". Think there are more but I
can't access the website from over here ;)
The big difference is that different processes do different jobs in
Gearman. All PHP workers in fpm just run what ever code is handed to
them. How do you handle that?Brian.
Has anybody thought about adding Gearman support to the fpm sapi?
Managing Gearman workers is pretty much identical to managing fastcgi
workers, so it doesn't seem like much of a stretch.-Rasmus
--
--
Tjerk
All "fpm" workers would be called using the same function name (e.g.
"runphp"). This allows you to reuse a gearmand instance for other
workers too.
I don't think we would need to require that. Obviously you could build
your Gearman worker such that it registers "runphp" and has a big switch
in it to run various types of jobs and fpm would just need to manage a
single pool of workers. But, assuming fpm could manage multiple pools,
I don't see the problem with having different types of workers.
-Rasmus