Bug 1375328

Summary: Allow us to configure the rails 5 web server
Product: Red Hat CloudForms Management Engine Reporter: John Prause <jprause>
Component: UI - OPSAssignee: Dan Clarizio <dclarizi>
Status: CLOSED DUPLICATE QA Contact: Dave Johnson <dajohnso>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.6.0CC: hkataria, jhardy, mpovolny, obarenbo, simaishi
Target Milestone: GA   
Target Release: 5.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-12 18:53:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description John Prause 2016-09-12 17:43:10 UTC
Purpose or Intent

Puma handles each request in a new thread, leading to possible thread issues
with the database connection pool, ActiveSupport::Dependencies interlock and our
locks, or thread unsafe code in our application.

Thin, while it may be run in threads via --threaded, does not use threads by default.
See here

This patch allows for thin 1.7.0+ and gives us an option to use either puma or
thin. Note, earlier versions are not compatible with rack 2.

We still default to puma.
Steps for Testing/QA

Note: Testers/users, the proctitle for UI/Webservice and web socket workers will
look different in ps, top, etc. if you use thin instead of puma. Puma configures
it's own proctitle and we configure the parts that we can. Thin does not, so it
will look like all the other workers.

For example:

thin:
43177 ttys002 0:08.20 MIQ: MiqUiWorker id: 158, uri: http://0.0.0.0:3000

puma:
43871 ttys004 0:00.68 puma 3.3.0 (tcp://0.0.0.0:3000) [MIQ: Web Server Worker]

Comment 2 John Prause 2016-09-12 17:43:44 UTC
https://github.com/ManageIQ/manageiq/pull/10447

Comment 3 Satoe Imaishi 2016-09-12 18:53:44 UTC

*** This bug has been marked as a duplicate of bug 1372439 ***