agoo: fails to launch in clustered mode
Trying to compare performance in our app with puma So far 1 agoo process is slightly slower than our clustered 4 puma processes 3692 req/s vs 4424 req/s
However agoo doesn’t seem to launch in clustered mode.
./bin/agoo -p 8080 -w 4 -t 32
the above doesn’t output any errors, just never gets to the line: listening on http://:8080.
however ./bin/agoo -p 8080 -t 32 does work
We run the app in a docker container: https://github.com/PlaceOS/auth/blob/agoo-server/Dockerfile
Any ideas?
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 17 (10 by maintainers)
Both sound like good ideas. Look for those additions in the near future.
Hi there! I came across from the web page benchmark page (congrats with being the fastest in ruby). Running the Rails app in clustered mode would require to have at least
before_forkhook as normally this is the place to close any connections that would be corrupted in the parent on child process exit. Like thatAlso it would be nice to have some kind of an
after_worker_forkcallback to have the opportunity to do some work in the context of new spawned workerI’ll look into it this weekend. My unit tests worked last time I check so with any luck there is some configuration addition that is needed.