diff options
| author | Nick Thomas <nick@gitlab.com> | 2019-02-20 15:35:57 +0000 |
|---|---|---|
| committer | Nick Thomas <nick@gitlab.com> | 2019-03-27 16:51:33 +0000 |
| commit | 0e831b0b692f2988d3c84fc01a463b08afec05ad (patch) | |
| tree | 3fdcb423db62141b2db2d2cc3f39986fb929c8af /config/gitlab.yml.example | |
| parent | 98824f3e97e24a5d6cb0688167bc8411a74739fc (diff) | |
| download | gitlab-ce-0e831b0b692f2988d3c84fc01a463b08afec05ad.tar.gz | |
Allow external diffs to be used conditionally
Since external diffs are likely to be a bit slower than in-database
ones, add a mode that makes diffs external after they've been obsoleted
by events. This should strike a balance between performance and disk
space.
A background cron drives the majority of migrations, since diffs become
outdated through user actions.
Diffstat (limited to 'config/gitlab.yml.example')
| -rw-r--r-- | config/gitlab.yml.example | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/config/gitlab.yml.example b/config/gitlab.yml.example index eba7d2b9fb7..8d9b6624995 100644 --- a/config/gitlab.yml.example +++ b/config/gitlab.yml.example @@ -301,6 +301,10 @@ production: &base pages_domain_verification_cron_worker: cron: "*/15 * * * *" + # Periodically migrate diffs from the database to external storage + schedule_migrate_external_diffs_worker: + cron: "15 * * * *" + registry: # enabled: true # host: registry.example.com @@ -787,6 +791,10 @@ test: enabled: true external_diffs: enabled: false + # Diffs may be `always` external (the default), or they can be made external + # after they have become `outdated` (i.e., the MR is closed or a new version + # has been pushed). + # when: always # The location where external diffs are stored (default: shared/external-diffs). # storage_path: shared/external-diffs object_store: |
