request help: add service_id as key to plugin limit-*
Issue description
i want to add key for limit-plugin;it can accomplish limit according to service_id;If i want to implement the function,you can give some suggestion.Thanks!
Environment
- apisix version (cmd:
apisix version): - OS:
- you need to use a better title.
- one issue for one thing: add
service_idas key to pluginlimit-*, do you mean this?
Sorry,my English not better;one issue : add service_id as key to plugin limit-*,i mean that.
- you need to use a better title.
- one issue for one thing: add
service_idas key to pluginlimit-*, do you mean this? now i set key in the following way,but service_id is nil.Why is that?

I think we can support service_id as key to plugin limit-count first.
so you can update the title of this issue.
after we resolve this issue, you can create more issues for other limit-* plugins.
2. now i set key in the following way,but service_id is nil.Why is that?
do you bind any service to route?
- now i set key in the following way,but service_id is nil.Why is that?
do you bind any service to route?
yes

- now i set key in the following way,but service_id is nil.Why is that?
do you bind any service to route?
we can use core.var.service_id to acquire value of service_id?
this old version dashboard, so it not support service_id as key.
this old version dashboard, so it not support
service_idas key.
new version supports service_id as key?my version is 1.5,Is there any other version
please make a try with the master branch ^_^
this old version dashboard, so it not support
service_idas key.new version supports service_id as key?my version is 1.5,Is there any other version
The new dashboard doesn't support the Service module currently.
tracking issue: https://github.com/apache/apisix-dashboard/issues/471
please make a try with the master branch ^_^
i still use the master branch
https://github.com/apache/apisix/blob/master/apisix/plugins/limit-count.lua#L39
plugin limit-count, it has supported using service_id as key in master branch.
which plugin you want to support service_id ?
please make a try with the master branch ^_^
I can require service_id from Eureka?
https://github.com/apache/apisix/blob/master/apisix/plugins/limit-count.lua#L39
plugin
limit-count, it has supported usingservice_idas key in master branch.which plugin you want to support
service_id?
plugin of limit-conn and limit-req
welcome to submit PR to support service_id for limit-conn or limit-req.
they were should be the same as limit-count.
welcome to submit PR to support
service_idforlimit-connorlimit-req.they were should be the same as
limit-count.
How can i require service_id through Euerka?
How can i require service_id through Euerka?
sorry I do not understand your question.
This issue has been marked as stale due to 350 days of inactivity. It will be closed in 2 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the [email protected] list. Thank you for your contributions.
This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.
