-
Notifications
You must be signed in to change notification settings - Fork 663
优化redis client,支持在识别到 NOAUTH 响应的时候,重新初始化 #2000
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
你修改了端口后,有修改插件配置吗?如果不修改插件配置,连的还是老的服务地址。按道理应该都不会连通,因为端口变了 |
我是在不动插件配置的情况下, 将McpBridge 端口从 6379改成80再改回6379就会导致连接redis报错,我感觉这样报错不太合理,相当于只要McpBridge有变化,都需要重新开关一下所有redis相关的插件。 |
嗯,现在只在cluster连接初始化的时候做AUTH,这个确实可以优化下sdk,在判断出Auth失败的时候,重新做一下Auth |
https://github.com/alibaba/higress/blob/main/plugins/wasm-go/pkg/wrapper/redis_wrapper.go 代码在这里,重新初始化只需要调用proxywasm.RedisInit即可,欢迎有兴趣的同学认领此任务 |
可以指派给我 |
修改McpBridge后会导致token限流插件的redis认证为空
此时限流插件是能正常运行的,并且每次发送请求,能看到higress->redis的数据包是有auth命令的
此时再去发送客户端请求,会发现higress->redis包命令已经不带auth参数了,并且网关也会报相关错误
4. 但是将ai-token-ratelimit插件关闭再打开后恢复正常
想确认下这个算不算bug
Ⅵ. Environment:
The text was updated successfully, but these errors were encountered: