A few CI jobs run unpredictably, but the hosted usage bill is becoming harder to forecast.
Fastest answer: Estimate hosted compute usage from recent eligible job records, then compare that amount with server rent, options, idle time, and the team's maintenance effort. Self-hosting is worth evaluating when jobs are frequent, resource needs are steady, and the team can maintain the Runner environment. Keep hosted Runner capacity for sparse or highly variable workloads.
This is for: Independent developers deciding whether their growing CI workload justifies a machine of their own.
Small engineering leads preparing a budget for recurring builds.
DevOps owners who need to turn job history into a reviewable cost estimate.
First, separate Runner execution from the rest of your bill
This comparison is about the environment that executes CI jobs. It does not estimate repository hosting, the full GitLab subscription, or other services included in a plan. Keep those costs outside the Runner comparison unless a proposed change would actually alter them.
The cost question has two sides:
- Hosted Runner: What eligible compute usage will your jobs generate, and what does the current plan or additional usage cost?
- Self-hosted Runner: What does the machine cost, including options, the time spent operating it, and capacity that sits idle?
A low rental price does not automatically make self-hosting cheaper. A machine can remain underused between releases, while a hosted option can be more economical for jobs that run only occasionally. Conversely, steady builds may make a fixed machine cost easier to budget than usage that varies with the team's workload.
GitLab's compute usage documentation describes how compute usage is calculated, including the applicable factors. Those rules and any included allowances can depend on the current plan and usage terms. Use the official documentation and current GitLab pricing information when building the estimate; don't carry forward a factor or allowance from an old spreadsheet.
Is self-hosting GitLab Runner cheaper than using hosted Runners?
It can be, but only when the comparison includes the same workload and the full cost of operating the machine. Comparing a monthly rental charge with a plan's headline allowance leaves out usage eligibility, idle capacity, maintenance, and any server options the workload requires.
A hosted Runner is often the simpler starting point when jobs are sporadic, their duration varies widely, or the team does not want to manage build infrastructure. GitLab describes the scope and billing considerations for hosted Runners; review that guidance alongside the current subscription terms rather than assuming every job type is billed in the same way.
A self-hosted Runner becomes a stronger candidate when CI runs consistently, the build environment needs customization, or the team has a clear plan for maintaining the host. The machine's cost is usually fixed for its rental period, so quiet days still matter. If the build schedule has a large gap between routine use and release peaks, one fixed machine may be both idle at ordinary times and a bottleneck at busy times.
For the comparison, put all estimates on the same time basis. If the server is rented monthly, compare it with a monthly hosted-usage estimate. For longer budget periods, include every rental period in that span and keep any hosted plan fees or included allowances visible rather than hiding them inside a blended total. XFP Cloud's billing-period overview can help clarify how to line up a rental charge with the period used in the budget.
How do you estimate hosted compute usage from GitLab Runner job records?
Start with a representative period of job history, not a guess based on the busiest day. Use the GitLab Jobs API to collect the fields needed for the estimate. Its documentation identifies job fields including duration and queued_duration; the Jobs API reference explains what those fields represent.
The distinction matters. duration records execution time, while queued_duration measures time waiting before execution. Queue time can help reveal that a team is waiting for capacity, but it is not a substitute for execution time in a compute-usage estimate. Treating both as build runtime overstates the work performed by the Runner.
A useful calculation process is:
- Select a representative set of projects and pipelines, including routine work and release periods.
- Export job records with their status, duration, and queued duration.
- Apply a consistent inclusion rule to successful, failed, and retried jobs. Check the current GitLab compute rules to determine which executions count; don't assume that every record is treated identically.
- Convert the eligible execution durations into the unit used by the current compute-usage rules. The API reports
durationin seconds, so the basic seconds-to-minutes conversion is 60 seconds per minute. - Apply the current cost factor to each eligible job as described in GitLab's compute usage formula, then total the result for the chosen budget period.
- Compare the result with the plan allowance and any applicable additional-usage terms. Verify those details against the current additional compute usage documentation.
Write the estimate as a formula rather than hard-coding a factor that may change:
Estimated hosted compute usage = total eligible job duration × the applicable current factor
That formula is a working model, not a guarantee of an invoice amount. The plan, namespace, job eligibility, and current rules can affect how usage is counted. Keep the raw job totals and the factor source in the budget sheet so another reviewer can reproduce the estimate.
A practical boundary that is easy to miss: reducing queue time does not necessarily reduce compute usage. If jobs run for the same duration but start sooner, the team may experience a more responsive pipeline without changing the execution-time total. Track both fields, but use each to answer its own question.
Is self-hosting worth it when CI jobs are irregular?
For an individual project with infrequent builds or a release schedule that changes often, hosted execution can be the safer budget choice. It avoids paying for a machine that is mostly waiting for work and avoids assigning someone to keep the Runner host updated.
For a team with recurring builds, compare normal workload and peak workload separately. First total job execution for a typical budget period. Then identify periods when several pipelines arrive together. Cumulative minutes alone cannot tell you whether one self-hosted machine will keep the team's queue acceptable. A short burst of parallel jobs can compete for CPU, memory, disk access, or available executor capacity even when the month's total runtime looks modest.
Do not convert the number of job records into an assumed concurrency guarantee. Test with the team's own builds, executor choice, cache behavior, and resource limits. Record how long jobs wait as well as how long they execute, and decide in advance what level of waiting is acceptable. GitLab documents the available Runner executors; the executor affects how jobs are launched and isolated, so include it in a test plan rather than treating it as a detail to choose after purchase.
What costs belong in a self-hosted Runner budget?
Include direct and operational costs in the same estimate. A useful comparison is not “hosted usage versus rent”; it is hosted usage versus the cost of running a suitable environment for the same period.
| Budget line | Hosted Runner estimate | Self-hosted Runner estimate |
|---|---|---|
| Compute execution | Eligible job usage under the current plan rules and applicable charges | No hosted compute estimate for jobs assigned to the self-hosted Runner; include machine rent |
| Included allowance or plan | Current plan terms and any applicable allowance | Keep unchanged plan or repository costs separate unless the deployment changes them |
| Machine and options | Not a machine-rental line item | Rental charge plus any selected options required by the workload |
| Idle capacity | Usually reflected through actual eligible usage and plan terms | Include periods when the rented machine has little or no CI work |
| Team operations | Less host administration, though teams still own pipeline configuration | Setup, updates, troubleshooting, access control, monitoring, and recovery work |
| Peak capacity | Check current hosted availability and terms | Test whether the chosen Runner setup handles the team's actual peak without unacceptable waiting |
For maintenance, estimate the team's time explicitly. Include installing and updating Runner software, maintaining the operating system, reviewing access, diagnosing failed jobs, and restoring the environment when something breaks. Assign an internal hourly value if the team uses labor costs in other budget decisions. If the team does not assign a monetary value to that work, show the estimated hours separately instead of treating maintenance as free.
For a self-hosted estimate, fill in the current rental amount and every relevant option from the live product information. Do not copy old prices or assume an option is included. XFP Cloud's available server plans are the appropriate reference for current offerings; use the actual product table when completing the comparison, not a placeholder price from an example.
Decide with one reviewable budget and a short validation checklist
Keep the working sheet simple enough for another team member to audit. Use the same workload period for both alternatives, show the sources for rules and prices, and separate measured values from assumptions.
- [ ] Choose a representative period that includes routine CI activity and the team's meaningful release peaks.
- [ ] Export job records and retain
duration,queued_duration, status, and retry information. - [ ] Check the current GitLab rules for eligible jobs, cost factors, plan allowances, and additional usage.
- [ ] Convert execution time using the unit expected by those rules; do not add queue time to runtime.
- [ ] Enter the current self-hosted machine rent and only the options the team actually needs.
- [ ] Add expected maintenance work, update responsibility, and any idle periods to the self-hosted estimate.
- [ ] Test the proposed Runner environment with representative builds before relying on an assumed peak capacity.
- [ ] Recalculate when the plan terms, usage rules, rental options, or CI workload changes.
The decision follows from the results. If jobs are rare or highly uneven, retain hosted Runners until the measured workload supports a fixed machine cost. If jobs recur steadily, the environment needs customization, and the team can own updates and isolation, evaluate self-hosting against the full budget rather than the rental charge alone. If peaks are the main problem, test a mixed approach before moving every job to one machine.
Self-hosted execution also changes responsibility. The Runner security guidance explains security considerations for managing Runner environments. A dedicated machine gives the team control over its execution host, but it does not automatically satisfy regulatory, access-control, or data-handling requirements. The team still needs to manage credentials, restrict who can run jobs, review executor isolation, patch the host, and define how job artifacts and caches are handled.
Installation and upgrades are also part of the operating plan. Follow the official Runner installation documentation for the selected environment, then document who owns updates and what the recovery process is. If nobody is assigned to those tasks, the apparent budget saving may conceal an operational gap.
Compare your current setup with a dedicated server before committing
Hosted Runners can leave less control over the execution environment, may be subject to plan usage rules, and can make costs harder to forecast when job volume varies. Self-hosting replaces some of that uncertainty with a fixed rental commitment, but it adds idle-capacity risk and puts updates, access control, and job isolation on the team. Neither option is automatically cheaper or safer.
If the records show a steady workload and the team is ready to operate its own Runner environment, compare the budget sheet with the current configurations and rental periods available from XFP Cloud. If jobs remain sparse or unpredictable, keep the hosted option and revisit the calculation when the records show a sustained change.
Build Your Self-Hosted Runner on XFP Cloud
Deploy an AMD EPYC 7543P physical server with 32 cores and 64 threads for your CI workloads.
From $455 / month