summaryrefslogtreecommitdiff
path: root/doc/administration/troubleshooting/defcon.md
blob: a7cc47f85479d3a9606c429c6b86009674d45e80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
stage: Enablement
group: Distribution
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments
type: reference
---

# Disaster recovery **(FREE SELF)**

This document describes a feature that allows you to disable some important but computationally
expensive parts of the application to relieve stress on the database during an ongoing downtime.

## `ci_queueing_disaster_recovery_disable_fair_scheduling`

This feature flag, if temporarily enabled, disables fair scheduling on shared runners.
This can help to reduce system resource usage on the `jobs/request` endpoint
by significantly reducing the computations being performed.

Side effects:

- In case of a large backlog of jobs, the jobs are processed in the order
  they were put in the system, instead of balancing the jobs across many projects.

## `ci_queueing_disaster_recovery_disable_quota`

This feature flag, if temporarily enabled, disables enforcing CI/CD minutes quota
on shared runners. This can help to reduce system resource usage on the
`jobs/request` endpoint by significantly reducing the computations being
performed.

Side effects:

- Projects which are out of quota will be run. This affects
  only jobs created during the last hour, as prior jobs are canceled
  by a periodic background worker (`StuckCiJobsWorker`).