debian-mirror-gitlab/doc/administration/geo/replication/tuning.md

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
1.5 KiB
Markdown
Raw Normal View History

2020-06-23 00:09:42 +05:30
---
2022-07-23 23:45:48 +05:30
stage: Systems
2020-06-23 00:09:42 +05:30
group: Geo
2022-11-25 23:54:43 +05:30
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/product/ux/technical-writing/#assignments
2020-06-23 00:09:42 +05:30
type: howto
---
2021-03-11 19:13:27 +05:30
# Tuning Geo **(PREMIUM SELF)**
2019-07-31 22:56:46 +05:30
2022-07-23 23:45:48 +05:30
You can limit the number of concurrent operations the sites can run
2021-09-04 01:27:46 +05:30
in the background.
2019-07-31 22:56:46 +05:30
2021-09-04 01:27:46 +05:30
## Changing the sync/verification concurrency values
2019-07-31 22:56:46 +05:30
2021-09-04 01:27:46 +05:30
On the **primary** site:
2019-07-31 22:56:46 +05:30
2022-10-11 01:57:18 +05:30
1. On the top bar, select **Main menu > Admin**.
2022-07-23 23:45:48 +05:30
1. On the left sidebar, select **Geo > Sites**.
1. Select **Edit** of the secondary site you want to tune.
2021-09-04 01:27:46 +05:30
1. Under **Tuning settings**, there are several variables that can be tuned to
improve the performance of Geo:
- Repository synchronization concurrency limit
- File synchronization concurrency limit
- Container repositories synchronization concurrency limit
- Verification concurrency limit
2022-07-23 23:45:48 +05:30
Increasing the concurrency values increases the number of jobs that are scheduled.
2019-07-31 22:56:46 +05:30
However, this may not lead to more downloads in parallel unless the number of
2021-09-04 01:27:46 +05:30
available Sidekiq threads is also increased. For example, if repository synchronization
concurrency is increased from 25 to 50, you may also want to increase the number
2019-07-31 22:56:46 +05:30
of Sidekiq threads from 25 to 50. See the
2022-08-27 11:52:29 +05:30
[Sidekiq concurrency documentation](../../sidekiq/extra_sidekiq_processes.md#number-of-threads)
2019-07-31 22:56:46 +05:30
for more details.
2020-10-24 23:57:45 +05:30
## Repository re-verification
See
[Automatic background verification](../disaster_recovery/background_verification.md).