Rate limiting in Istio using Redis Handler

5/27/2019

I am trying to apply ISTIO rate limiting using Redis Handler using Redis Handler ISTIO

But mixer is not able to find the redis handler. Below from mixer log:

2019-05-27T11:59:23.910183Z warn Unable to find a handler for action. rule[action]='quota.rule.istio-system[0]', handler='redishandler.istio-system'

  • redisquota: could not create a connection to redis server: NOAUTH Authentication required.''. Also, how to provide Redis credential for the template?
-- Forkmohit
istio
kubernetes

1 Answer

5/29/2019

redis quota does not support Authentication

    // test redis connection
    option := redis.Options{
        Addr: b.adapterConfig.RedisServerUrl,
    }

    if b.adapterConfig.ConnectionPoolSize > 0 {
        option.PoolSize = int(b.adapterConfig.ConnectionPoolSize)
    }

https://github.com/istio/istio/redisquota.go

-- codelover
Source: StackOverflow