Workhorse needs a config-file
In https://gitlab.com/gitlab-org/gitlab-workhorse/merge_requests/112 we're introducing Redis, this requires a config-file that needs to be generated.
Workhorse also requires a new argument to be passed: -config path/to/workhorse-config.toml
The config-file has different options for sentinel / non-sentinel
Format generic redis:
[redis]
URL = "tcp://127.0.0.1:1337" ( OR "unix://path/to/redis.sock")
Password = "some_good_password"
Format sentinel:
[redis]
Sentinel = [ "tcp://10.0.0.1:1337", "tcp://10.0.0.2:1337" ]
SentinelMaster = "name_of_sentinel_master"
Password = "some_good_password"
All variables but ReadTimeout
are configurable (same as gitlab-rails)
Aaaand redis needs this config set: notify-keyspace-events K$s
(see https://redis.io/topics/notifications#configuration )
- No keyspace events in Redis, no Redis configuration changes, no potential Redis overhead etc
- On-prem and GitLab.com to work in the same way (which is the standard Redis configuration)
For now (as before), this feature will be behind a feature flag for quick toggling