You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 68b6a2a
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: apps/docs/content/docs/platform/self-hosting/environment-variables.mdx
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -274,6 +274,16 @@ A malformed entry in either allowlist stops the app at startup with a message na
274
274
275
275
Most `/api` routes also pass through Next.js Proxy, which buffers only the first 10 MiB with the current app configuration. Raising these variables or an external proxy limit does not raise that buffer. See [Request size limits](/platform/self-hosting/networking#request-size-limits) for the layers to configure.
276
276
277
+
## Outbound request limits
278
+
279
+
`OUTBOUND_REQUEST_LIMITS` optionally paces guarded HTTP requests by canonical organization and HTTPS origin. Entries share a Redis budget across application processes, sources and credentials. Configure the same policy on every app and worker process; Redis is required and an unavailable admission store prevents requests to the configured destination.
280
+
281
+
For example: `OUTBOUND_REQUEST_LIMITS='[{"organizationId":"org_example","origin":"https://gitlab.example.com","requestsPerMinute":480}]'`.
282
+
283
+
The origin must have no path, trailing slash, query or credentials. Up to 100 unique organization/origin pairs are supported, with integer ceilings from 1 to 60,000 requests/minute. Requests are paced without a startup burst; waits remain bounded by the operation's cancellation and a one-minute admission timeout. Existing installations are unchanged when this variable is unset.
284
+
285
+
This is an operating budget, not a provider quota or a firewall rule. It covers requests through Sim's guarded HTTP transport, including GitLab Search, discovery and retries. External CI jobs, direct SDK transports and personal/platform operations are outside this organization budget. A request to a configured origin without an established ownership scope fails closed. Keep provider-specific endpoint limits and operation timeouts in mind when choosing a ceiling.
286
+
277
287
## Limits
278
288
279
289
With `BILLING_ENABLED` disabled, hosted-plan execution rates/timeouts and table/storage quotas are not enforced unless you set their free-tier variables. Independent protocol, body-size, concurrency, and security rate limits still apply. Billing-enabled deployments enforce their plan limits.
Copy file name to clipboardExpand all lines: apps/docs/content/docs/search/gitlab.mdx
+13-3Lines changed: 13 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -109,7 +109,7 @@ The exporter makes only these GitLab API requests:
109
109
| --- | --- |
110
110
|`GET /api/v4/groups/:id`| Resolve a group identity when using `--group`. |
111
111
|`GET /api/v4/groups/:id/projects`| Page through group projects, excluding shared projects; include subgroups only when requested. |
112
-
|`GET /api/v4/projects/:id`| Resolve the numeric ID and full project path. |
112
+
|`GET /api/v4/projects/:id`| Resolve a single-project export. Group exports reuse identities from the group listing. |
113
113
|`GET /api/v4/projects/:id/members/all`| Page through visible direct, inherited, and invited-group members, 100 at a time. |
114
114
|`GET /api/v4/users/:id`| Read each eligible member's account state, email confirmation, and primary email. |
115
115
@@ -130,9 +130,19 @@ This creates `gitlab-permissions/users.csv` and `gitlab-permissions/project-perm
130
130
131
131
The export includes active, unlocked human members with Reporter access or higher. It excludes Guests, Planners, bots, and memberships expiring today or earlier in UTC. It does not infer access from public/internal visibility, administrator or Auditor privileges, or custom permissions below Reporter. GitLab policies such as SSO or external authorization are not represented by these CSVs. Review the grants against your organization's access requirements before uploading them.
132
132
133
-
Requests run serially, paced at 60 per minute by default. Set `--requests-per-minute` to change this export-job ceiling; it does not configure live Search traffic. Each run reads each project's identity and membership pages, plus one profile request per distinct candidate reader. Group exports also read the group identity and project listing. The request ceiling applies across the entire export. API errors, hidden emails, identity conflicts, inconsistent pagination totals (when GitLab provides them), and oversized exports stop the job without publishing either file. Run exports after bulk membership updates finish; paginated API reads are not a point-in-time snapshot.
133
+
Requests run serially, paced at 60 per minute by default. Set `--requests-per-minute` to change this export-job ceiling; it does not configure live Search traffic. Group exports reuse project identities from the listing, read each project's membership pages, and fetch each distinct candidate reader's profile once. A second group listing checks for added, removed, moved or renamed projects before publishing. Every attempt, including retries, uses the same request ceiling. Transient connection failures, `429`, and retryable server errors get up to three retries, honoring `Retry-After` up to five minutes. Permanent errors, hidden emails, identity conflicts, inconsistent pagination, and oversized exports stop the job without publishing either file. Run exports after bulk membership updates finish; paginated API reads are not a point-in-time snapshot.
134
134
135
-
Large exports can take hours. For example, 50,000 projects require at least 100,000 project and membership requests, before listing and profile requests: over 27 hours at the default ceiling. Set the CI job timeout and schedule accordingly, or use smaller groups. Agree any higher request rate with your GitLab administrator. CSV files are written incrementally and published only when the complete export succeeds.
135
+
For 50,000 projects with one membership page each, budget approximately 51,000 requests plus one profile lookup per distinct candidate reader. That is at least 14 hours at 60 requests/minute, or seven hours at 120, before extra membership pages, latency and retries. Use a separate source and CI job per top-level group, stagger jobs off-peak, and agree higher rates with your GitLab administrator. Each job has its own ceiling; simultaneous jobs add together. CSV files are written incrementally and published only when the complete export succeeds. Upload complete snapshots; changed-only CSVs would remove omitted grants.
136
+
137
+
## Plan Search capacity
138
+
139
+
Repository count is not the request count for a search. In CSV group mode, Sim uses group-level search where GitLab supports it, then verifies the projects of readable results. For example, one group-search page with results from ten projects needs about 13 GitLab requests. Opening a code or wiki result adds about five calls; an issue with a short discussion adds about seven. Broader queries, more groups, pagination and project-search fallbacks increase these counts. These are planning examples, not measured latency or fixed per-question limits.
140
+
141
+
These live Search sources do not periodically crawl projects. A 50,000-project catalog needs approximately 500 listing calls per discovery, plus identity checks. Saving group settings and replacing CSVs trigger discovery; a staged import validates at both creation and completion. Discovery must finish within five minutes. At low request ceilings, split the scope into smaller groups rather than assuming the maximum project count fits that deadline.
142
+
143
+
Sim can configure an organization-wide outbound ceiling for a GitLab host, shared by its Search sources and application processes. The CI exporter runs in your infrastructure and has a separate ceiling. Agree both budgets and GitLab's endpoint-specific limits before rollout. Self-hosted operators can use [`OUTBOUND_REQUEST_LIMITS`](/platform/self-hosting/environment-variables#outbound-request-limits).
144
+
145
+
One Search call covers at most 20 connected accounts. Skipped accounts are reported explicitly; API and MCP callers can repeat the query with `nativeQueries[].accountId`, targeting up to nine accounts per follow-up. The Search UI does not automatically traverse all remaining accounts. The group search candidate window described above also remains in effect.
0 commit comments