diff options
author | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-10-12 16:35:59 +0200 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-10-17 11:50:32 +0200 |
commit | 38af7c1613e75561b405b15d6b8db1724da59ef6 (patch) | |
tree | 34de73892347f108718e3f00dea878632a75ce69 /doc/administration | |
parent | 619021fd7a6ac68e2821f89f746fea3a72c25e3b (diff) | |
download | gitlab-ce-38af7c1613e75561b405b15d6b8db1724da59ef6.tar.gz |
Allow configuring the circuitbreaker through the API and UI
Diffstat (limited to 'doc/administration')
-rw-r--r-- | doc/administration/img/circuitbreaker_config.png | bin | 0 -> 213210 bytes | |||
-rw-r--r-- | doc/administration/repository_storage_paths.md | 38 |
2 files changed, 14 insertions, 24 deletions
diff --git a/doc/administration/img/circuitbreaker_config.png b/doc/administration/img/circuitbreaker_config.png Binary files differnew file mode 100644 index 00000000000..9250d38297c --- /dev/null +++ b/doc/administration/img/circuitbreaker_config.png diff --git a/doc/administration/repository_storage_paths.md b/doc/administration/repository_storage_paths.md index 86ce87b130d..efcabd69822 100644 --- a/doc/administration/repository_storage_paths.md +++ b/doc/administration/repository_storage_paths.md @@ -105,36 +105,26 @@ When GitLab detects access to the repositories storage fails repeatedly, it can gracefully prevent attempts to access the storage. This might be useful when the repositories are stored somewhere on the network. -The configuration could look as follows: +This can be configured from the admin interface: -**For Omnibus installations** - -1. Edit `/etc/gitlab/gitlab.rb`: - - ```ruby - git_data_dirs({ - "default" => { - "path" => "/mnt/nfs-01/git-data" - } - }) - ``` +![circuitbreaker configuration](img/circuitbreaker_config.png) -1. Save the file and [reconfigure GitLab][reconfigure-gitlab] for the changes to take effect. ---- - -**For installations from source** +**Maximum git storage failures:** The number of failures of after which GitLab will +completely prevent access to the storage. The number of failures can be reset in +the admin interface: `https://gitlab.example.com/admin/health_check` or using the +[api](../api/repository_storage_health.md) to allow access to the storage again. -1. Edit `config/gitlab.yml`: +**Seconds to wait after a storage failure:** When access to a storage fails. GitLab +will prevent access to the storage for the time specified here. This allows the +filesystem to recover. - ```yaml - repositories: - storages: # You must have at least a `default` storage path. - default: - path: /home/git/repositories/ - ``` +**Seconds before reseting failure information:** The time in seconds GitLab will +keep failure information. When no failures occur during this time, information about the +mount is reset. -1. Save the file and [restart GitLab][restart-gitlab] for the changes to take effect. +**Seconds to wait for a storage access attempt:** The time in seconds GitLab will +try to access storage. After this time a timeout error will be raised. When storage failures occur, this will be visible in the admin interface like this: |