Logging message Redis connection status
search cancel

Logging message Redis connection status

book

Article ID: 391045

calendar_today

Updated On: 03-17-2025

Products

CA API Gateway

Issue/Introduction

Setup alerts for Redis, please let us know what is logged in the SSG log for connectivity issues

Environment

Gateway 11.1.1

Resolution

Gateway connected to Redis, logging messages when Redis goes DOWN

2025-03-17T10:58:59.856-0700 WARNING 236  io.lettuce.core.protocol.ConnectionWatchdog: Cannot reconnect to [<redishostname>/<unresolved>:6379]: Connection refused: <redishostname>/xxx.xxx.xxx.xxx:6379

2025-03-17T10:59:08.059-0700 WARNING 253  com.l7tech.external.assertions.throughputquota.server.ServerThroughputQuotaAssertion: 4: Unexpected error while updating counter: Redis command timed out; nested exception is io.lettuce.core.RedisCommandTimeoutException: Command timed out after 5 second(s).  Exception caught! 

Gateway restarted with Redis down fails to start if testOnStart = true

/opt/SecureSpan/Gateway/node/default/etc/bootstrap/providers/sharedstate_client.yaml

redis:

  default:

    testOnStart: true

Gateway fails to start message

2025-03-17T11:18:00.885-0700 WARNING 1  com.l7tech.server.boot.GatewayMain: Error starting server : Lifecycle error: Failed to initialize Redis instance. 

2025-03-17T11:18:00.886-0700 WARNING 1  STDERR: com.l7tech.server.LifecycleException: Lifecycle error: Failed to initialize Redis instance. 

**** Unable to start the server: Error starting server : Lifecycle error: Failed to initialize Redis instance. 

 

TestOnStart = false

/opt/SecureSpan/Gateway/node/default/etc/bootstrap/providers/sharedstate_client.yaml

redis:

  default:

    testOnStart: false

 

Gateway starts, nothing logged on Redis not available

Request portal API failed 

 

Turn on redis - requests successful

Nothing logged for recconnect