Skip to content

Memorystore Redis TraceChunks Service

This is a Memorystore for Redis instance managed by GCP.

Connecting to Memorystore for Redis instance

Section titled “Connecting to Memorystore for Redis instance”

Redis instance can be connected via redis-cli to run commands during debugging e.g. info command.

Production can be connected from a redis-cli in console servers e.g.

Terminal window
# Get AUTH_STRING from gcloud console
gcloud redis instances get-auth-string tracechunks-redis --region=us-east1 --project=gitlab-production
# SSH into console node
ssh console-01-sv-gprd.c.gitlab-production.internal
# Use AUTH_STRING obtained above to add REDISCLI_AUTH env
export REDISCLI_AUTH=<AUTH_STRING>
# Use redis-cli to connect to the instance with AUTH_STRING obtained above
/opt/gitlab/embedded/bin/redis-cli -h 10.239.0.4

Simlarly for staging:

Terminal window
# Get AUTH_STRING from gcloud console
gcloud redis instances get-auth-string tracechunks-redis --region=us-east1 --project=gitlab-staging-1
# SSH into console node
ssh console-01-sv-gstg.c.gitlab-staging-1.internal
# Use AUTH_STRING obtained above to add REDISCLI_AUTH env
export REDISCLI_AUTH=<AUTH_STRING>
# Use redis-cli to connect to the instance with AUTH_STRING obtained above
/opt/gitlab/embedded/bin/redis-cli -h 10.214.0.4