使用Redis Handler在Istio中进行速率限制 [英] Rate limiting in Istio using Redis Handler

查看:177
本文介绍了使用Redis Handler在Istio中进行速率限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Redis Handler通过

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

但是混合器无法找到redis处理程序.下面来自混音器日志:

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

2019-05-27T11:59:23.910183Z警告无法找到要处理的处理程序. rule [action] ='quota.rule.istio-system [0]',handler ='redishandler.istio-system'

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'

  • 重新分配:无法创建与Redis服务器的连接:NOAUTH需要身份验证.''. 另外,如何为模板提供Redis凭据?
  • redisquota: could not create a connection to redis server: NOAUTH Authentication required.''. Also, how to provide Redis credential for the template?

推荐答案

redis配额不支持身份验证

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

这篇关于使用Redis Handler在Istio中进行速率限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆