I'm pretty happy to say this daemons setup is working beautifully on three production rails apps (10 workers each). It is really nice to have one pid/master process for the entire app, to know unicorn master restarts the daemons if they crash (which sometimes happens with delayed_job), and to restart the app and daemons all by once (with USR2 signal), and fast!
Thanks Eric and other unicorn developers! cheers, bráulio On Sat, Oct 11, 2014 at 12:35 AM, Bráulio Bhavamitra <[email protected]> wrote: > On Thu, Oct 9, 2014 at 3:15 PM, Eric Wong <[email protected]> wrote: >> Bráulio Bhavamitra <[email protected]> wrote: >>> Eric, how with a simple monkey patch will allow a worker to not >>> connect with the kernel request queue? >> >> The listen socket is inherited by default. Closing it works. You can >> also keep the socket open and avoid calling any accept() wrappers, that >> is like a "pop" operation on the queue: >> >> kgio_tryaccept in unicorn, accept/accept_nonblock/sysaccept in stdlib > Done. If you have free time, please take a look at > https://gist.github.com/brauliobo/11298486#file-unicorn-conf-rb-L139 > >> >> Also, please don't top-post (or send giant sigs). Thanks. > Sorry for that (again)
