Skip to content

Added toggle for workhorse keywatcher

What does this MR do?

Adds a toggle to enable or disable [redis] block in the workhorse-config.toml file.

Why?

Workhorse has a "keywatcher" component that subscribes to a redis key in order to get notifications on certain changes. It uses this to serve long-polling requests.

This mechanism is putting a lot of load onto redis (5% of user cycles on the redis-persistent primary).

We discovered that all of our workhorse processes are subscribed to the redis key, and thus we are delivering messages to many workhorses that may not need them.

The only workhorse fleet that needs these messages is api. The proposal is to remove keywatcher from all other workhorse fleets: git, web, websockets.

Related issues

Infrastructure#12812 - Only enable workhorse keywatcher on API

Checklist

See Definition of done.

For anything in this list which will not be completed, please provide a reason in the MR discussion

Required

  • Merge Request Title, and Description are up to date, accurate, and descriptive
  • MR targeting the appropriate branch
  • MR has a green pipeline on GitLab.com
  • Pipeline is green on dev.gitlab.org if the change is touching anything besides documentation or internal cookbooks
  • trigger-package has a green pipeline running against latest commit

Expected (please provide an explanation if not completing)

  • Test plan indicating conditions for success has been posted and passes
  • Documentation created/updated
  • Tests added
  • Integration tests added to GitLab QA
  • Equivalent MR/issue for the GitLab Chart opened
Edited by Natan Hoppe

Merge request reports