Skip to content

ENT-15000: Hub web server and php-fpm changes for Mission Portal performance - #3254

Draft
aleksandrychev wants to merge 6 commits into
cfengine:masterfrom
aleksandrychev:ENT-15000
Draft

aleksandrychev wants to merge 6 commits into
cfengine:masterfrom
aleksandrychev:ENT-15000

Conversation

JavaScript, CSS and JSON were sent uncompressed. Mission Portal loads
several megabytes of JavaScript per page.

Ticket: ENT-15000
Changelog: None
Combined bundles in tmp/ are renamed when their content changes, so
they can be cached permanently. Fonts and images are cached for a week.

Ticket: ENT-15000
Changelog: None
@aleksandrychev
aleksandrychev marked this pull request as draft November 20, 2026 16:02
A socket file cannot clash with another service on the port, and only
Apache's user can connect to it.

Ticket: ENT-15000
Changelog: None
Mission Portal requests wait on loopback requests to the API. With one
shared pool, all workers could end up waiting for API requests that had
no free worker left, and the hub stopped responding until the proxy
timeout. Requests under /api now go to a separate pool.

Ticket: ENT-15000
Changelog: None
pm.max_children was derived from memory only, e.g. 190 workers on a
2-core hub with 8 GB RAM. Under load that overloaded the CPU and held
up to 250 PostgreSQL connections without more throughput. The pool is
now limited to 12 workers per core as well, def.php_fpm_www_pool_*
still overrides it.

Ticket: ENT-15000
Changelog: None
Mission Portal calls the local API on every request. Outside the HTTPS
virtual host, /api is now served only to localhost and marked as HTTPS,
since those requests are made on behalf of HTTPS clients. Other clients
are still refused.

Ticket: ENT-15000
Changelog: None
@cf-bottom

Copy link
Copy Markdown

Thanks for submitting a PR! Maybe @nickanderson can review this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants