action #5922
closedEnable OpenQA preforking
0%
Description
Now here is one wild idea. OpenQA is currently build upon Mojolicious::Commands server (single process, single thread Mojo::Server::Daemon), but Mojolicious has also a build-in preforking server (Mojo::Server::Prefork through Hypnotoad). What about to fix our sometimes blocking code by using more processes?
This will require (at least) to move WebSocket service to standalone server (now I understand why The Internet do that) since I currently lazily use global variable for workerid-connection mapping. But this should not be a biggie apart creating new IPC between OpenQA and OpenQA-WSServer.
Updated by oholecek over 9 years ago
- Status changed from New to Resolved
- Assignee set to oholecek
https://github.com/os-autoinst/openQA/pull/381
Some improvements to be made are custom dbus session and morbo support. Also, currently the whole stack is started by lib/OpenQA.pm, it may come handy to delegate this responsibility to someone more responsible (i.e. systemd), and maybe enable autostart (for scheduler by DBus service, for websockets by dbus service and incomming ws request, for webapi by incomming http request).