Title: improvement(trigger): downsize connector sync and document processing machines by waleedlatif1 · Pull Request #8699 · simstudioai/sim · GitHub
Open Graph Title: improvement(trigger): downsize connector sync and document processing machines by waleedlatif1 · Pull Request #8699 · simstudioai/sim
X Title: improvement(trigger): downsize connector sync and document processing machines by waleedlatif1 · Pull Request #8699 · simstudioai/sim
Description: Summary knowledge-connector-sync: large-1x → medium-2x. Runs are I/O-bound (source APIs + rate-limit backoff, near-zero CPU) and p99.9 RSS is ~650 MB; 4 GB still clears the 2.6 GB worst case. Not medium-1x because the task intentionally has no outOfMemory escalation (an OOM strands the sync lock until the reaper), so the preset has to hold the peak on its own knowledge-process-document: medium-2x → medium-1x. p99.9 RSS ~740 MB, peak just under 2 GB; the existing outOfMemory: large-2x escalation catches the rare document past 2 GB Trigger.dev bills wall-clock per preset, so this halves the per-second rate on both, and these two tasks are the largest share of background compute spend Checked the last 30 days for OOM kills: none on either task at their current presets, and no dispatch site overrides machine at trigger time Type of Change Improvement Testing bun run --cwd apps/sim test background/knowledge-processing.test.ts background/knowledge-connector-sync.test.ts (42 passed) Root bun run test, bun run lint, bun run check:audits, bun run type-check, bun run docs-manifest:check, block-registry check — all green Sizing taken from Trigger.dev per-run peak process.memory.usage and CPU metrics over 30 days; will watch for TASK_PROCESS_OOM_KILLED after deploy Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing (new tests pass the test-audit authoring gate) No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)
Open Graph Description: Summary knowledge-connector-sync: large-1x → medium-2x. Runs are I/O-bound (source APIs + rate-limit backoff, near-zero CPU) and p99.9 RSS is ~650 MB; 4 GB still clears the 2.6 GB worst case. Not ...
X Description: Summary knowledge-connector-sync: large-1x → medium-2x. Runs are I/O-bound (source APIs + rate-limit backoff, near-zero CPU) and p99.9 RSS is ~650 MB; 4 GB still clears the 2.6 GB worst case. Not ...
Opengraph URL: https://github.com/simstudioai/sim/pull/8699
X: @github
Domain: github.com
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:c9757823-9c22-2906-6c5b-9a60fce85478 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 919E:72699:23916C:322FB7:6AFB512C |
| html-safe-nonce | 6aaf1a23da73be77706fa1ff625fb53df6804e196e22a7afe3726149600b51d4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTlFOjcyNjk5OjIzOTE2QzozMjJGQjc6NkFGQjUxMkMiLCJ2aXNpdG9yX2lkIjoiMzA5NzQ5NDkxMzQ3MDM4NjQ3NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d214be9df8073df4dd73ea873a513297d3eb782e26a3673457ee18079d11887a |
| hovercard-subject-tag | pull_request:4765385386 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/8699/files |
| twitter:image | https://avatars.githubusercontent.com/u/40672544?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/40672544?s=400&v=4 |
| og:image:alt | Summary knowledge-connector-sync: large-1x → medium-2x. Runs are I/O-bound (source APIs + rate-limit backoff, near-zero CPU) and p99.9 RSS is ~650 MB; 4 GB still clears the 2.6 GB worst case. Not ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7122bb414b542dba14d71a3f0b9f6fd2abce715b9f5912d082800563e6c806d1 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/simstudioai/sim git https://github.com/simstudioai/sim.git |
| octolytics-dimension-user_id | 199344406 |
| octolytics-dimension-user_login | simstudioai |
| octolytics-dimension-repository_id | 912559512 |
| octolytics-dimension-repository_nwo | simstudioai/sim |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 912559512 |
| octolytics-dimension-repository_network_root_nwo | simstudioai/sim |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cbf66c024bb6d10e6955baa7413c54cf13a201bb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width