gpt4 book ai didi

kubernetes - 使用 Redis 处理程序在 Istio 中进行速率限制

转载 作者:行者123 更新时间:2023-12-02 12:04:08 24 4
gpt4 key购买 nike

我正在尝试使用 Redis Handler ISTIO 使用 Redis 处理程序应用 ISTIO 速率限制
但是混合器无法找到 redis 处理程序。以下来自混音器日志:

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?

最佳答案

redis 配额不支持 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

关于kubernetes - 使用 Redis 处理程序在 Istio 中进行速率限制,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56326044/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com