You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/06/16 04:17:40 UTC
[GitHub] [apisix] spacewander opened a new pull request #4429: docs: fix category and add category check
spacewander opened a new pull request #4429:
URL: https://github.com/apache/apisix/pull/4429
Signed-off-by: spacewander <sp...@gmail.com>
### What this PR does / why we need it:
<!--- Why is this change required? What problem does it solve? -->
<!--- If it fixes an open issue, please link to the issue here. -->
### Pre-submission checklist:
* [ ] Did you explain what problem does this PR solve? Or what new features have been added?
* [ ] Have you added corresponding test cases?
* [x] Have you modified the corresponding document?
* [ ] Is this PR backward compatible? **If it is not backward compatible, please discuss on the [mailing list](https://github.com/apache/apisix/tree/master#community) first**
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] juzhiyuan commented on a change in pull request #4429: docs: fix category and add category check
Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on a change in pull request #4429:
URL: https://github.com/apache/apisix/pull/4429#discussion_r652520689
##########
File path: docs/en/latest/architecture-design/plugin.md
##########
@@ -63,3 +63,20 @@ The plugin configuration is submitted as part of Route or Service and placed und
Not all plugins have specific configuration items. For example, there is no specific configuration item under `prometheus`. In this case, an empty object identifier can be used.
If a request is rejected by a plugin, there will be warn level log like `ip-restriction exits with http status code 403`.
+
+## Hot reload
+
+APISIX plugins are hot-loaded. No matter you add, delete or modify plugins, and **update codes of plugins in disk**, you don't need to restart the service.
+
+If your APISIX node has the Admin API turned on, just send an HTTP request through admin API:
+
+```shell
+curl http://127.0.0.1:9080/apisix/admin/plugins/reload -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT
+```
+
+Note: if you disable a plugin which has been configured as part of your rule (in the `plugins` field of `route`, etc.),
+the its execution will be skipped.
Review comment:
```suggestion
then its execution will be skipped.
```
##########
File path: docs/en/latest/architecture-design/plugin.md
##########
@@ -63,3 +63,20 @@ The plugin configuration is submitted as part of Route or Service and placed und
Not all plugins have specific configuration items. For example, there is no specific configuration item under `prometheus`. In this case, an empty object identifier can be used.
If a request is rejected by a plugin, there will be warn level log like `ip-restriction exits with http status code 403`.
+
+## Hot reload
+
+APISIX plugins are hot-loaded. No matter you add, delete or modify plugins, and **update codes of plugins in disk**, you don't need to restart the service.
+
+If your APISIX node has the Admin API turned on, just send an HTTP request through admin API:
+
+```shell
+curl http://127.0.0.1:9080/apisix/admin/plugins/reload -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT
+```
+
+Note: if you disable a plugin which has been configured as part of your rule (in the `plugins` field of `route`, etc.),
Review comment:
```suggestion
Note: if you disable a plugin that has been configured as part of your rule (in the `plugins` field of `route`, etc.),
```
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org