Skip to content

Cap BEAM schedulers to the pod CPU request - #63

Merged
lolgab merged 1 commit into
masterfrom
cap-credo-schedulers
Dec 3, 2026
Merged

lolgab merged 1 commit into
masterfrom
cap-credo-schedulers

Conversation

@lolgab

@lolgab lolgab commented Dec 3, 2026 •

Copy link
Copy Markdown

php-cs-fixer pods have no CPU limit, so the CPU count php-cs-fixer sees is the whole node's (16–64 cores), not the pod's 1-core request. Since v3.94, new Config() always turns on parallel mode sized from that count, so a 100-file chunk runs up to ~10 php-cs-fixer worker processes, each with its own PHP heap, against a 1.5Gi memory limit.

  • The wrapper now passes --sequential to php-cs-fixer check: one process, matching the 1-core CPU request.
  • --sequential wins over any parallel config, including one set in a repo's own .php-cs-fixer.php (ConfigurationResolver::getParallelConfig at v3.95.26).

Same fix as codacy/codacy-opengrep#50.

  • Build the image and run the multiple-tests suite (CircleCI plugins_test)
  • After deploy, 7 days: php-cs-fixer ToolOutOfMemory count vs before
  • After deploy, 7 days: p99 run time and timeouts vs before (one process can be slower on idle nodes)

@lolgab
lolgab marked this pull request as ready for review December 3, 2026 10:24
@lolgab
lolgab enabled auto-merge (squash) December 3, 2026 10:24
@lolgab
lolgab merged commit 6aad6e8 into master Dec 3, 2026
4 checks passed
@lolgab
lolgab deleted the cap-credo-schedulers branch December 3, 2026 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants