juzhiyuan commented on code in PR #7812:
URL: https://github.com/apache/apisix/pull/7812#discussion_r957967143
##########
docs/en/latest/FAQ.md:
##########
@@ -594,6 +594,36 @@ The differences between the two are described in the table
below:
| Used when there are property changes that needs to be propagated across all
configuration instances of a Plugin. | Used when you need to reuse a common set
of configuration instances so that it can be extracted to a `plugin-config` and
bound to different Routes. |
| Takes effect on all the entities bound to the configuration instances of the
Plugin. | Takes effect on Routes bound to the
`plugin-config`.
|
+## After deploying Apache APISIX, how to detect the survival of the APISIX
data plane?
Review Comment:
👋 I just did a quick search, but I'm still unsure how to express the meaning
of whether API Gateway is running or in trouble. Any ideas? @moonming
##########
docs/en/latest/FAQ.md:
##########
@@ -594,6 +594,36 @@ The differences between the two are described in the table
below:
| Used when there are property changes that needs to be propagated across all
configuration instances of a Plugin. | Used when you need to reuse a common set
of configuration instances so that it can be extracted to a `plugin-config` and
bound to different Routes. |
| Takes effect on all the entities bound to the configuration instances of the
Plugin. | Takes effect on Routes bound to the
`plugin-config`.
|
+## After deploying Apache APISIX, how to detect the survival of the APISIX
data plane?
+
+You can create a route named `health-info` and enable the
[fault-injection](https://github.com/apache/apisix/blob/master/docs/en/latest/plugins/fault-injection.md)
plugin (where YOUR-TOKEN is the user's token; 127.0.0.1 is the IP address of
the control plane, which can be modified by yourself):
Review Comment:
Please use the Website's URL instead of GitHub relative links for better SEO
(internal links building)
##########
docs/en/latest/FAQ.md:
##########
@@ -594,6 +594,36 @@ The differences between the two are described in the table
below:
| Used when there are property changes that needs to be propagated across all
configuration instances of a Plugin. | Used when you need to reuse a common set
of configuration instances so that it can be extracted to a `plugin-config` and
bound to different Routes. |
| Takes effect on all the entities bound to the configuration instances of the
Plugin. | Takes effect on Routes bound to the
`plugin-config`.
|
+## After deploying Apache APISIX, how to detect the survival of the APISIX
data plane?
+
+You can create a route named `health-info` and enable the
[fault-injection](https://github.com/apache/apisix/blob/master/docs/en/latest/plugins/fault-injection.md)
plugin (where YOUR-TOKEN is the user's token; 127.0.0.1 is the IP address of
the control plane, which can be modified by yourself):
+
+```shell
+curl http://127.0.0.1:9180/apisix/admin/routes/health-info \
+-H 'X-API-KEY: YOUR-TOKEN' -X PUT -d '
+{
+ "plugins": {
+ "fault-injection": {
+ "abort": {
+ "http_status": 200,
+ "body": "fine"
+ }
+ }
+ },
+ "uri": "/status"
+}'
+````
+
+Ways of identifying:
Review Comment:
```suggestion
Verification
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]