-
Notifications
You must be signed in to change notification settings - Fork 579
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
ai-quota 插件加载失败 #1830
Comments
插件没加载成功是会有error日志的,能否看下 curl localhost:15000/config_dump 里面搜一下 ai-quota 有没有相关配置 |
看起来是有的,但是为啥查询会返回 404 呢?
|
好的 我本地复现下 |
我本地还是 404,我理解主要问题在于这个请求没到 ai-quota 插件而是直接到了 ai-proxy, 所以 100% 会 404 :
|
cc @2456868764 一起帮忙看看 |
这个可能性很大是 redis 没有连上,初始化就失败 |
要看 redis.dns cluster 下发到 Envoy? |
明白,我是参考这里去建了一套 redis 集群然后配置了 mcp redis.dns ,我的问题是,如果 redis 有问题的话,quota 插件应该会报一个 redis 连接错误之类的报错?但是目前没看到啥日志。
这块不太熟悉,请教下应该如何排查呢 |
redis 连接不上,插件初始化就失败,会报错 “Unable to create Wasm HTTP filter” |
是有看到这个报错: |
gateway 容器里,你看一下 curl http://localhost:15000/clusters 看看有没有名字里带 redis.dns cluster。 |
|
有 redis.default.svc.cluster.local cluster 下发吗?按照 #1826 (comment) 这个配置 有 redis.default.svc.cluster.local 下发?,插件 service_name 配置成 “redis.default.svc.cluster.local“ 测试一下 |
@johnlanni @CH3CHO 看一下 redis.dns 指向 redis.default.svc.cluster.local 直接用dns 连接好像是有问题的,稍后我本地复现一下 |
@2456868764 应该不是redis的问题,如果是redis的问题,会有error日志的 |
我试了下重启 gateway 组件,发现 model mapper 加载也失败?
你们本地能复现这个问题吗 |
是arm架构吗 |
我理解还是 redis 问题?但是我换到一台 EC2 linux 机器,然后连一个 elasticache 的 redis 也是报错的:
我看能不能本地再调试下这个 plugin |
嗯 这个是redis服务发现不了,可以 curl localhost:15000/clusters |grep redis 看下吗 |
结果:
但是我理解不需要吧,我现在都换成云上 redis 了:
|
要用 mcp bridge 配置一下,
另外这里redis 访问有用户名和密码?如何有,要配置username和 password |
使用云上 redis 加上配置 mcp 以后可以了... 有两个疑问,方便的话可以帮忙解答下哈: 1、为什么需要走一层 mcp bridge + ingress ,而不能直接配置 redis 域名,这个背景知识如果运维不知道的话很容易就忘记了; |
|
本地 redis 和云上 redis 都是没有账号密码的
本地参考文档配置了下 redis 不生效,这是我比较困惑的点 另外,目前 ai quota 插件我已经通过云上 redis + mcpbridge 跑通逻辑了,但是 ai-token-limit 试了下还是不起作用 |
线下可能是mac的问题?刚刚查出arm下插件启动不了的问题了,目前已经修复,重启就会拉到修复后的插件了 |
这个有具体 debug 的过程吗,对于投产这块,我们比较担心的就是插件功能出问题然后不好排查定位。目前我只能看到比如 |
If you are reporting any crash or any potential security issue, do not
open an issue in this repo. Please report the issue via ASRC(Alibaba Security Response Center) where the issue will be triaged appropriately.
Ⅰ. Issue Description
本地 kind 安装后希望能使用 ai-quota 来给特定 consumer 配置限额,但是发现不生效,gateway 日志里发现 ai-quota 插件可能加载失败:
Ⅱ. Describe what happened
在 console 页面上配置了路由需要认证请求,并且开启了 ai-quota 插件:
但是请求返回 404:
除了上面提到的 ai-quota 插件未加载的报错以外,这次 quota 查询请求也看到实际走到了 ai-proxy 插件这里:
那报错我理解就是 ai-quota 没加载成功导致的?
Ⅲ. Describe what you expected to happen
希望能够看到 quota 并进行后续的 quota 验证
Ⅳ. How to reproduce it (as minimally and precisely as possible)
Ⅴ. Anything else we need to know?
Ⅵ. Environment:
The text was updated successfully, but these errors were encountered: