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:
[email protected]


Reply via email to