You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "freemankevin (via GitHub)" <gi...@apache.org> on 2023/03/16 06:29:07 UTC
[GitHub] [apisix] freemankevin opened a new issue, #9085: docs: plugin priority
freemankevin opened a new issue, #9085:
URL: https://github.com/apache/apisix/issues/9085
### Current State
https://apisix.apache.org/zh/docs/apisix/terminology/plugin/#%E8%87%AA%E5%AE%9A%E4%B9%89%E6%8F%92%E4%BB%B6%E4%BC%98%E5%85%88%E7%BA%A7
Custom plugin priority does not apply to the rewrite phase of some plugins configured on the consumer. The rewrite phase of plugins configured on the route will be executed first, and then the rewrite phase of plugins (exclude auth plugins) from the consumer will be executed.
### Desired State
Can you give an example to explain it, it feels a bit confusing, and I don't quite understand what is specifically said here?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] kayx23 commented on issue #9085: docs: plugin priority
Posted by "kayx23 (via GitHub)" <gi...@apache.org>.
kayx23 commented on issue #9085:
URL: https://github.com/apache/apisix/issues/9085#issuecomment-1554001718
There's a new doc here as well: https://docs.api7.ai/apisix/key-concepts/plugins#plugins-execution-order
If this answers your question, please update / close the issue. Thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] ro4i7 commented on issue #9085: docs: plugin priority
Posted by "ro4i7 (via GitHub)" <gi...@apache.org>.
ro4i7 commented on issue #9085:
URL: https://github.com/apache/apisix/issues/9085#issuecomment-1475634571
@freemankevin May be this can help:
let's say we have a route in Apisix that has the following plugins configured:
1. The `response-rewrite` plugin with a priority of 10
2. The `cors plugin` with a priority of 20
In this case, the `the response-rewrite` plugin will execute before the `cors` plugin because it has a lower priority value.
Now let's say we also have a consumer that has the following plugins configured:
1. The `request-rewrite` plugin with a priority of 15
2. The `rate-limiting` plugin with a priority of 25
In this case, the `request-rewrite` plugin will execute after the `response-rewrite` and `cors` plugins from the route have executed, because it has a higher priority value than the `response-rewrite` plugin but a lower priority value than the `rate-limiting` plugin.
Overall means, The custom plugin priority applies to the execution order of plugins within a single phase (e.g. all plugins within the rewrite phase of a route), but not across different phases or between plugins from different sources (e.g. plugins configured on a route vs. plugins configured on a consumer).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] freemankevin commented on issue #9085: docs: plugin priority
Posted by "freemankevin (via GitHub)" <gi...@apache.org>.
freemankevin commented on issue #9085:
URL: https://github.com/apache/apisix/issues/9085#issuecomment-1475679429
thanks.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] freemankevin closed issue #9085: docs: plugin priority
Posted by "freemankevin (via GitHub)" <gi...@apache.org>.
freemankevin closed issue #9085: docs: plugin priority
URL: https://github.com/apache/apisix/issues/9085
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org