Repository navigation
ENT-15000: Hub web server and php-fpm changes for Mission Portal performance - #3254
Draft
aleksandrychev wants to merge 6 commits into
Draft
aleksandrychev wants to merge 6 commits into
aleksandrychev wants to merge 6 commits into
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
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
aleksandrychev
force-pushed
the
ENT-15000
branch
from
November 20, 2026 16:15
569ce24 to
9dcebf3
Compare
|
Thanks for submitting a PR! Maybe @nickanderson can review this? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Merge together: