Add refresh_interval to gitlab:elastic:info
What does this MR do and why?
This MR adds refresh_interval
to the gitlab:elastic:info
rake task output
Screenshots or screen recordings
Click to expand
$ bin/rails gitlab:elastic:info
Advanced Search
Server version: 8.6.2
Server distribution: elasticsearch
Indexing enabled: yes
Search enabled: yes
Requeue Indexing workers: yes
Pause indexing: no
Indexing restrictions enabled: no
File size limit: 1024 KiB
Indexing number of shards: 16
Indexing Queues
Initial queue: 0
Incremental queue: 0
Indices
- gitlab-development-20230927-0920:
number_of_shards: 1
number_of_replicas: 0
refresh_interval: 2s
- gitlab-development-commits-20230927-0920:
number_of_shards: 1
number_of_replicas: 0
- gitlab-development-epics-20230927-0920:
number_of_shards: 1
number_of_replicas: 0
- gitlab-development-issues-20230927-0920:
number_of_shards: 1
number_of_replicas: 0
- gitlab-development-merge_requests-20230927-0920:
number_of_shards: 1
number_of_replicas: 0
- gitlab-development-notes-20230927-0920:
number_of_shards: 1
number_of_replicas: 0
- gitlab-development-projects-20230927-0920:
number_of_shards: 1
number_of_replicas: 0
- gitlab-development-users-20230927-0920:
number_of_shards: 1
number_of_replicas: 0
- gitlab-development-wikis-20230927-0920:
number_of_shards: 1
number_of_replicas: 0
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Execute
curl -H 'Content-type: application/json' -XPUT 'http://localhost:9200/gitlab-development/_settings' -d '{
"index": {
"refresh_interval": "2s"
}
}'
- Run
bin/rails gitlab:elastic:info
- Verify that it shows
refresh_interval: 2s
forgitlab-development
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Dmitry Gruzd