Files
git.stella-ops.org/docs/doctor/articles/servicegraph/servicegraph-valkey.md
2026-03-31 23:26:24 +03:00

1.7 KiB

checkId, plugin, severity, tags
checkId plugin severity tags
check.servicegraph.valkey stellaops.doctor.servicegraph warn
servicegraph
valkey
redis
cache

Valkey/Redis Connectivity

What It Checks

Reads Valkey:ConnectionString, Redis:ConnectionString, ConnectionStrings:Valkey, or ConnectionStrings:Redis, parses the host and port, and opens a TCP connection.

The check skips when no cache connection string is configured and fails when parsing fails or the target cannot be reached.

Why It Matters

Cache unavailability affects queue coordination, state caching, and latency-sensitive platform features. A malformed connection string is also an early warning that the environment is not wired correctly.

Common Causes

  • The cache connection string is missing, malformed, or still points to a previous environment
  • The Valkey/Redis service is not running
  • Container networking or DNS is broken

How to Fix

Docker Compose

services:
  doctor-web:
    environment:
      Valkey__ConnectionString: valkey:6379,password=${STELLAOPS_VALKEY_PASSWORD}
docker compose -f devops/compose/docker-compose.stella-ops.yml ps valkey
docker compose -f devops/compose/docker-compose.stella-ops.yml exec doctor-web sh -lc "nc -zv valkey 6379"

Bare Metal / systemd

redis-cli -h <valkey-host> -p 6379 ping

Kubernetes / Helm

Use a cluster-local service name in the connection string and verify the port exposed by the StatefulSet or Service.

Verification

stella doctor --check check.servicegraph.valkey
  • check.servicegraph.mq - both checks validate internal service-network connectivity
  • check.servicegraph.endpoints - broad service discovery issues usually affect cache endpoints too