redis-tester
creates two redis clients, a publisher that continuouosly publishes to two channels on a 1s interval and a subscriber which subscribes to both those channels.
The environment variable REDIS_SENTINEL_HOST
must be set in deployment.yaml
to target a sentinel cluster.
Other configurable environment variables are REDIS_SENTINEL_MASTER
which defaults to mymaster
and REDIS_SENTINEL_PORT
which defaults to 26379
.
There are supplied values files for the redis
and redis-ha
helm charts which can be used to deploy redis sentinel clusters.
Run the following command in this directory.
$ gcloud builds submit . --config=cloudbuild.yaml