Version: Next
node-status
Summary#
Name#
node-status is a plugin which we could get request status information through it's API.
Attributes#
None
API#
This plugin will add /apisix/status to get status information.
You may need to use interceptors to protect it.
How To Enable#
- Configure
node-statusin the plugin list of the configuration fileconf/config.yaml, then you can add this plugin in any route.
After starting APISIX, you can get status information through the API /apisix/status.
- Create a route object, and enable plugin
node-status.
You have to configure node-status in the configuration file apisix/conf/config.yaml before creating a route like this.
And this plugin will not make any difference in future requests, so usually we don't set this plugin when creating routes.
Test Plugin#
- Request with uri
/apisix/status
- Parameter Description
| Parameter | Description |
|---|---|
| status | status information |
| total | the total number of client requests |
| waiting | the current number of idle client connections waiting for a request |
| accepted | the total number of accepted client connections |
| writing | the current number of connections where APISIX is writing the response back to the client |
| handled | the total number of handled connections. Generally, the parameter value is the same as accepted unless some resource limits have been reached |
| active | the current number of active client connections including waiting connections |
| reading | the current number of connections where APISIX is reading the request header |
| id | APISIX's uid which is saved in apisix/conf/apisix.uid |
Disable Plugin#
- You can delete
node-statusin the plugin list of the configuration fileapisix/conf/config.yaml, then you can not add this plugin in any route.
- When you want to disable the
node-statusplugin in the route, it is very simple, you can delete the corresponding json configuration in the plugin configuration, no need to restart the service, it will take effect immediately.