|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | 03-May-2022 | - |
| environments/ | H | 11-Jan-2022 | - | 216 | 83 |
| events/ | H | 11-Jan-2022 | - | 3,049 | 2,913 |
| feature_flags/ | H | 11-Jan-2022 | - | 3,272 | 2,910 |
| helpers/incremental_webpack_compiler/ | H | 03-May-2022 | - | | |
| initializers/ | H | 11-Jan-2022 | - | 5,295 | 3,073 |
| initializers_before_autoloader/ | H | 11-Jan-2022 | - | 246 | 161 |
| knative/ | H | 11-Jan-2022 | - | 11 | 9 |
| locales/ | H | 11-Jan-2022 | - | 1,053 | 1,037 |
| metrics/ | H | 11-Jan-2022 | - | 40,383 | 38,736 |
| plugins/ | H | 03-May-2022 | - | | |
| prometheus/ | H | 11-Jan-2022 | - | 504 | 485 |
| routes/ | H | 11-Jan-2022 | - | 1,989 | 1,511 |
| README.md | H A D | 11-Jan-2022 | 3.9 KiB | 90 | 70 |
| application.rb | H A D | 11-Jan-2022 | 22.1 KiB | 510 | 302 |
| boot.rb | H A D | 11-Jan-2022 | 255 | 7 | 3 |
| bullet.yml | H A D | 11-Jan-2022 | 1.3 KiB | 45 | 43 |
| bundler_setup.rb | H A D | 11-Jan-2022 | 925 | 25 | 12 |
| cable.yml.example | H A D | 11-Jan-2022 | 431 | 15 | 14 |
| database.yml.decomposed-postgresql | H A D | 11-Jan-2022 | 1.1 KiB | 48 | 46 |
| database.yml.env | H A D | 11-Jan-2022 | 873 | 18 | 16 |
| database.yml.postgresql | H A D | 11-Jan-2022 | 1.3 KiB | 62 | 58 |
| database_geo.yml.postgresql | H A D | 11-Jan-2022 | 859 | 44 | 40 |
| dependency_decisions.yml | H A D | 11-Jan-2022 | 10.3 KiB | 365 | 364 |
| environment.rb | H A D | 11-Jan-2022 | 159 | 8 | 2 |
| feature_categories.yml | H A D | 11-Jan-2022 | 2.6 KiB | 134 | 133 |
| gitlab.yml.example | H A D | 11-Jan-2022 | 62.5 KiB | 1,592 | 1,415 |
| known_invalid_graphql_queries.yml | H A D | 11-Jan-2022 | 128 | 3 | 3 |
| license_finder.yml | H A D | 11-Jan-2022 | 56 | 3 | 2 |
| mail_room.yml | H A D | 11-Jan-2022 | 1.9 KiB | 58 | 52 |
| no_todos_messages.yml | H A D | 11-Jan-2022 | 471 | 12 | 11 |
| object_store_settings.rb | H A D | 11-Jan-2022 | 7.3 KiB | 208 | 74 |
| pseudonymizer.yml | H A D | 11-Jan-2022 | 9 KiB | 473 | 471 |
| puma.example.development.rb | H A D | 11-Jan-2022 | 3.2 KiB | 95 | 29 |
| puma.rb.example | H A D | 11-Jan-2022 | 3 KiB | 94 | 73 |
| resque.yml.example | H A D | 11-Jan-2022 | 1 KiB | 35 | 34 |
| routes.rb | H A D | 11-Jan-2022 | 9.6 KiB | 328 | 233 |
| secrets.yml.example | H A D | 11-Jan-2022 | 404 | 13 | 10 |
| settings.rb | H A D | 11-Jan-2022 | 6.2 KiB | 206 | 142 |
| sidekiq.yml.example | H A D | 11-Jan-2022 | 19 | 2 | 2 |
| sidekiq_queues.yml | H A D | 11-Jan-2022 | 7.9 KiB | 448 | 447 |
| smime_signature_settings.rb | H A D | 11-Jan-2022 | 451 | 15 | 10 |
| spring.rb | H A D | 11-Jan-2022 | 400 | 19 | 14 |
| storage.yml | H A D | 11-Jan-2022 | 149 | 3 | 2 |
README.md
1# Configuration files Documentation
2
3Note that most configuration files (`config/*.*`) committed into
4[gitlab-foss](https://gitlab.com/gitlab-org/gitlab-foss) **will not be used** for
5[omnibus-gitlab](https://gitlab.com/gitlab-org/omnibus-gitlab). Configuration
6files committed into gitlab-foss are only used for development.
7
8## gitlab.yml
9
10You can find most of the GitLab configuration settings here.
11
12## mail_room.yml
13
14This file is actually an YML wrapped inside an ERB file to enable templated
15values to be specified from `gitlab.yml`. mail_room loads this file first as
16an ERB file and then loads the resulting YML as its configuration.
17
18## resque.yml
19
20This file is called `resque.yml` for historical reasons. We are **NOT**
21using Resque at the moment. It is used to specify Redis configuration
22values when a single database instance of Redis is desired.
23
24## Advanced Redis configuration files
25
26In more advanced configurations of Redis key-value storage, it is desirable
27to separate the keys by lifecycle and intended use to ease provisioning and
28management of scalable Redis clusters.
29
30These settings provide routing and other configuration data (such as sentinel,
31persistence policies, and other Redis customization) for connections
32to Redis single instances, Redis sentinel, and Redis clusters.
33
34If desired, the routing URL provided by these settings can be used with:
351. Unix Socket
36 1. named socket for each Redis instance desired.
37 2. `database number` for each Redis instance desired.
382. TCP Socket
39 1. `host name` or IP for each Redis instance desired
40 2. TCP port number for each Redis instance desired
41 3. `database number` for each Redis instance desired
42
43### Example URL attribute formats for GitLab Redis `.yml` configuration files
44* Unix Socket, default Redis database (0)
45 * `url: unix:/path/to/redis.sock`
46 * `url: unix:/path/to/redis.sock?db=`
47* Unix Socket, Redis database 44
48 * `url: unix:/path/to/redis.sock?db=44`
49 * `url: unix:/path/to/redis.sock?extra=foo&db=44`
50* TCP Socket for Redis on localhost, port 6379, database 33
51 * `url: redis://:mynewpassword@localhost:6379/33`
52* TCP Socket for Redis on remote host `myserver`, port 6379, database 33
53 * `url: redis://:mynewpassword@myserver:6379/33`
54
55## Available configuration files
56
57The Redis instances that can be configured are described in the table below. The
58order of precedence for configuration is described below, where `$NAME` and
59`$FALLBACK_NAME` are the upper-cased instance names from the table, and `$name`
60and `$fallback_name` are the lower-cased versions:
61
621. The configuration file pointed to by the `GITLAB_REDIS_$NAME_CONFIG_FILE`
63 environment variable.
641. The configuration file `redis.$name.yml`.
651. **If a fallback instance is available**, the configuration file
66 `redis.$fallback_name.yml`.
671. The configuration file pointed to by the `GITLAB_REDIS_CONFIG_FILE`
68environment variable.
691. The configuration file `resque.yml`.
70
71An example configuration file for Redis is in this directory under the name
72`resque.yml.example`.
73
74| Name | Fallback instance | Purpose |
75| --- | --- | --- |
76| `cache` | | Volatile non-persistent data |
77| `queues` | | Background job processing queues |
78| `shared_state` | | Persistent application state |
79| `trace_chunks` | `shared_state` | [CI trace chunks](https://docs.gitlab.com/ee/administration/job_logs.html#incremental-logging-architecture) |
80| `rate_limiting` | `cache` | [Rate limiting](https://docs.gitlab.com/ee/user/admin_area/settings/user_and_ip_rate_limits.html) state |
81| `sessions` | `shared_state` | [Sessions](https://docs.gitlab.com/ee/development/session.html#redis)|
82
83If no configuration is found, or no URL is found in the configuration
84file, the default URL used is:
85
861. `redis://localhost:6380` for `cache`.
871. `redis://localhost:6381` for `queues`.
881. `redis://localhost:6382` for `shared_state`.
891. The URL from the fallback instance for all other instances.
90