davidwhf commented on issue #6175:
URL: https://github.com/apache/apisix/issues/6175#issuecomment-1019791484


   > Hi, @davidwhf. I think you should config the upstream (even if a bad 
upstream) so that it can work well.
   > 
   > You can try this:
   > 
   > ```
   > {
   >     "plugins": {
   >         "api-breaker": {
   >             "break_response_code": 502,
   >             "unhealthy": {
   >                 "http_statuses": [503],
   >                 "failures": 2
   >             },
   >             "healthy": {
   >                 "http_statuses": [200],
   >                 "successes": 1
   >             }
   >         }
   >     },
   >     "upstream": {
   >         "type": "roundrobin",
   >         "nodes": {
   >             "127.0.0.1:3333": 1
   >         }
   >     },
   >     "uri": "/test/*"
   > }
   > ```
   
   In fact, I refer to the example of official documents.
   see as https://apisix.apache.org/zh/docs/apisix/plugins/api-breaker/
   503 is an http error code that the resource cannot be found. Therefore, 
although upstream is not configured, the http request return 503.


-- 
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]


Reply via email to