envoyproxy / ratelimit

Go/gRPC service designed to enable generic rate limit scenarios from different types of applications.
Apache License 2.0
2.25k stars 440 forks source link

Connecting redis sentinel #651

Closed darlangagliotto closed 2 weeks ago

darlangagliotto commented 1 month ago
environment = {
    #REDIS_URL            = local.is_redis_sentinel ? "redis://:${module.redis.credentials.password}@${module.redis.credentials.hostname},serviceName=${module.redis.credentials.master_name}" : "redis://:${module.redis.credentials.password}@${module.redis.credentials.hostname}:${module.redis.credentials.port}"
    #REDIS_AUTH                  = module.redis.credentials.password
    REDIS_URL                   = "${module.redis.credentials.master_name},${module.redis.credentials.hostname}:${module.redis.credentials.sentinel_port}"
    LOG_LEVEL                   = "debug"
    USE_STATSD                  = false
    REDIS_SOCKET_TYPE           = "tcp"
    RUNTIME_ROOT                ="/data"
    RUNTIME_SUBDIRECTORY        ="ratelimit"
    REDIS_TYPE                  = "sentinel"
    REDIS_PASSWORD               = module.redis.credentials.password
    # REDIS_PERSECOND_URL         = "${module.redis.credentials.master_name},${module.redis.credentials.password}@${module.redis.credentials.hostname}:${module.redis.credentials.sentinel_port}"
    # REDIS_PERSECOND             = true
    # REDIS_PERSECOND_TYPE        = "sentinel"
    # REDIS_PERSECOND_SOCKET_TYPE = "tcp"    
    #REDIS_PERSECOND_AUTH        = module.redis.credentials.password
  }

using these environments I tried to connect to redis using sentinels and didn't work, but using redis standalone it works. error message: ERR panic: NOAUTH Authentication required.

Redis 6.0.x Sentinel HA Development 4GB Memory Multi-AZ

perhaps I'm using the wrong variables, could you help me?

github-actions[bot] commented 3 weeks ago

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.

github-actions[bot] commented 2 weeks ago

This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted" or "no stalebot". Thank you for your contributions.