Undertow listeners start before application deployments and start up is complete on EAP 7
Environment
- Red Hat JBoss Enterprise Application Platform (EAP) 7.x
Issue
- Undertow listeners fully start and accept requests long before the server starts and applications fully deploy. This leads to unneeded 404s as JBoss starts accepting the incoming traffic before completing deployments.
Resolution
EAP 7.1+ has the feature of starting in suspended mode see: How to start JBoss EAP 7.1 and above in suspended mode ?, which queues all requests till the server is fully started. It is possible to disable this request queuing during start up with EAP 7.2+ per Disabling Undertow's request queuing during on EAP 7.2+
- It should be possible to start the server in suspended mode. In addition to this as part of normal startup the server should be suspended until the MSC service container hits stability.
- You can refer to Starting Suspended.
Root Cause
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments