diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-01-20 12:16:11 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-01-20 12:16:11 +0300 |
commit | edaa33dee2ff2f7ea3fac488d41558eb5f86d68c (patch) | |
tree | 11f143effbfeba52329fb7afbd05e6e2a3790241 /doc/administration/sidekiq.md | |
parent | d8a5691316400a0f7ec4f83832698f1988eb27c1 (diff) |
Add latest changes from gitlab-org/gitlab@14-7-stable-eev14.7.0-rc42
Diffstat (limited to 'doc/administration/sidekiq.md')
-rw-r--r-- | doc/administration/sidekiq.md | 40 |
1 files changed, 36 insertions, 4 deletions
diff --git a/doc/administration/sidekiq.md b/doc/administration/sidekiq.md index 8f1119f6868..989a024d6ab 100644 --- a/doc/administration/sidekiq.md +++ b/doc/administration/sidekiq.md @@ -2,7 +2,6 @@ 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 --- # Configuring Sidekiq **(FREE SELF)** @@ -21,8 +20,6 @@ you want using steps 1 and 2 from the GitLab downloads page. 1. Generate the Sidekiq configuration: ```ruby - sidekiq['listen_address'] = "10.10.1.48" - ## Optional: Enable extra Sidekiq processes sidekiq_cluster['enable'] = true sidekiq['queue_groups'] = [ @@ -128,6 +125,34 @@ you want using steps 1 and 2 from the GitLab downloads page. external_url 'https://gitlab.example.com' ``` +1. (Optional) If you want to collect Sidekiq metrics, enable the Sidekiq metrics server. + To make metrics available from `localhost:8082/metrics`, set the following values: + + ```ruby + sidekiq['metrics_enabled'] = true + sidekiq['listen_address'] = "localhost" + sidekiq['listen_port'] = "8082" + + # Optionally log all the metrics server logs to log/sidekiq_exporter.log + sidekiq['exporter_log_enabled'] = true + ``` + +1. (Optional) If you use health check probes to observe Sidekiq, + set a separate port for health checks. + Configuring health checks is only necessary if there is something that actually probes them. + For more information about health checks, see the [Sidekiq health check page](sidekiq_health_check.md). + Enable health checks for Sidekiq: + + ```ruby + sidekiq['health_checks_enabled'] = true + sidekiq['health_checks_listen_address'] = "localhost" + sidekiq['health_checks_listen_port'] = "8092" + ``` + + NOTE: + If health check settings are not set, they will default to the metrics exporter settings. + This default is deprecated and is set to be removed in [GitLab 15.0](https://gitlab.com/gitlab-org/gitlab/-/issues/347509). + 1. Run `gitlab-ctl reconfigure`. You will need to restart the Sidekiq nodes after an update has occurred and database @@ -196,7 +221,13 @@ gitlab_rails['auto_migrate'] = false ####################################### ### Sidekiq configuration ### ####################################### -sidekiq['listen_address'] = "10.10.1.48" +sidekiq['metrics_enabled'] = true +sidekiq['exporter_log_enabled'] = false +sidekiq['listen_port'] = "8082" + +sidekiq['health_checks_enabled'] = true +sidekiq['health_checks_listen_address'] = "localhost" +sidekiq['health_checks_listen_port'] = "8092" ####################################### ### Monitoring configuration ### @@ -230,3 +261,4 @@ Related Sidekiq configuration: 1. [Extra Sidekiq processes](operations/extra_sidekiq_processes.md) 1. [Extra Sidekiq routing](operations/extra_sidekiq_routing.md) 1. [Using the GitLab-Sidekiq chart](https://docs.gitlab.com/charts/charts/gitlab/sidekiq/) +1. [Sidekiq health checks](sidekiq_health_check.md) |