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/09/17 03:07:05 UTC

[GitHub] [apisix] jagerzhang opened a new issue #5082: bug: Active check is turned on, but Health check status no data

jagerzhang opened a new issue #5082:
URL: https://github.com/apache/apisix/issues/5082


   ### Issue description
   
   We configured active checking, but no data output where curl  `127.1:9090/v1/healthcheck`
   ![image](https://user-images.githubusercontent.com/9711651/133710624-37977107-ab1a-4f99-8d0e-78f143b356cb.png)
   
   ![image](https://user-images.githubusercontent.com/9711651/133710765-9c4bdf57-4d17-4ac5-9c5f-ceafe313dc40.png)
   
   There is no relevant error output from the K8S console, Plz take a look.
   
   ### Environment
   
   - apisix version (cmd: `apisix version`): 2.9
   - OS (cmd: `uname -a`): centos-docker
   - etcd version, if have (cmd: run `curl http://127.0.0.1:9090/v1/server_info` to get the info from server-info API): 3.x
   - apisix-dashboard version, if have: 2.8
   
   
   ### Steps to reproduce
   
   1. add upstream
   ```
   PUT /apisix/admin/upstreams/demo_test
   {
     "nodes": [
       {
         "host": "127.0.0.1",
         "port": 9090,
         "weight": 100
       }
     ],
     "timeout": {
       "connect": 6,
       "send": 60,
       "read": 60
     },
     "type": "roundrobin",
     "checks": {
       "active": {
         "concurrency": 10,
         "healthy": {
           "http_statuses": [
             200,
             302,
             404,
             403,
             405,
             401
           ],
           "interval": 2,
           "successes": 2
         },
         "http_path": "/",
         "https_verify_certificate": true,
         "port": 9090,
         "timeout": 2,
         "type": "http",
         "unhealthy": {
           "http_failures": 3,
           "http_statuses": [
             429,
             500,
             501,
             502,
             503,
             504,
             505
           ],
           "interval": 1,
           "tcp_Failures": 2,
           "tcp_failures": 2,
           "timeouts": 2
         }
       },
       "passive": {
         "healthy": {
           "http_statuses": [
             200,
             201,
             202,
             203,
             204,
             205,
             206,
             207,
             208,
             226,
             300,
             301,
             302,
             303,
             304,
             305,
             306,
             307,
             308
           ],
           "successes": 3
         },
         "type": "http",
         "unhealthy": {
           "http_failures": 2,
           "http_statuses": [
             429,
             500,
             503
           ],
           "tcp_failures": 2,
           "timeouts": 3
         }
       }
     },
     "hash_on": "vars",
     "scheme": "http",
     "pass_host": "pass",
     "name": "demo_test"
   }
   ```
   2. curl -X GET 127.1:9090/v1/healthcheck
   
   ### Actual result
   
   GET 127.1:9090/v1/healthcheck
   ```
   {}
   ```
   
   ### Error log
   
   nothing
   
   ### Expected result
   
   GET 127.1:9090/v1/healthcheck
   ```
   [
       {
           "healthy_nodes": [
               {
                   "host": "127.0.0.1",
                   "port": 9090,
                   "priority": 0,
                   "weight": 100
               }
           ],
           "name": "upstream#/apisix/upstreams/demo_test",
           "nodes": [
               {
                   "host": "127.0.0.1",
                   "port": 9090,
                   "priority": 0,
                   "weight": 100
               }
           ],
           "src_id": "demo_test",
           "src_type": "upstreams"
       }
   ]
   ```


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] jagerzhang edited a comment on issue #5082: bug: Active check is turned on, but Health check status no data

Posted by GitBox <gi...@apache.org>.
jagerzhang edited a comment on issue #5082:
URL: https://github.com/apache/apisix/issues/5082#issuecomment-922159415


   @tokers I have another question. When a new request activates the health check, how long will the route revoke the health check if there is no new request? Is there any guidance document for this?


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] jagerzhang closed issue #5082: bug: Active check is turned on, but Health check status no data

Posted by GitBox <gi...@apache.org>.
jagerzhang closed issue #5082:
URL: https://github.com/apache/apisix/issues/5082


   


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] jagerzhang commented on issue #5082: bug: Active check is turned on, but Health check status no data

Posted by GitBox <gi...@apache.org>.
jagerzhang commented on issue #5082:
URL: https://github.com/apache/apisix/issues/5082#issuecomment-921641056


   > Trigger of health checker is lazy, so you should send some requests before you check the health check data.
   
   i see...


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] tokers commented on issue #5082: bug: Active check is turned on, but Health check status no data

Posted by GitBox <gi...@apache.org>.
tokers commented on issue #5082:
URL: https://github.com/apache/apisix/issues/5082#issuecomment-924500606


   > > > how long will the route revoke the health check if there is no new request
   > > 
   > > 
   > > I don't understand this. Do you mean the expiry time of the health check data in the shared dict?
   > 
   > I mean, will it become lazy again after activation?
   > Is there any guidance document about this feature?
   
   It won't. You can see https://kong.github.io/lua-resty-healthcheck/topics/readme.md.html for more details.


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] tzssangglass commented on issue #5082: bug: Active check is turned on, but Health check status no data

Posted by GitBox <gi...@apache.org>.
tzssangglass commented on issue #5082:
URL: https://github.com/apache/apisix/issues/5082#issuecomment-922484271


   > how long will the route revoke the health check if there is no new request
   
   I don't understand this. Do you mean the expiry time of the health check data in the shared dict?


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] jagerzhang commented on issue #5082: bug: Active check is turned on, but Health check status no data

Posted by GitBox <gi...@apache.org>.
jagerzhang commented on issue #5082:
URL: https://github.com/apache/apisix/issues/5082#issuecomment-922159415


   I have another question. When a new request activates the health check, how long will the route revoke the health check if there is no new request?


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] jagerzhang commented on issue #5082: bug: Active check is turned on, but Health check status no data

Posted by GitBox <gi...@apache.org>.
jagerzhang commented on issue #5082:
URL: https://github.com/apache/apisix/issues/5082#issuecomment-924499287


   > > how long will the route revoke the health check if there is no new request
   > 
   > I don't understand this. Do you mean the expiry time of the health check data in the shared dict?
   
   I mean, will it become lazy again after activation? 
   Is there any guidance document about this feature?


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] tokers commented on issue #5082: bug: Active check is turned on, but Health check status no data

Posted by GitBox <gi...@apache.org>.
tokers commented on issue #5082:
URL: https://github.com/apache/apisix/issues/5082#issuecomment-923788707


   > @tokers I have another question. When a new request activates the health check, how long will the route revoke the health check if there is no new request? Is there any guidance document for this?
   
   The active health check will send probes to the endpoints (for both the healthy set and the unhealthy set) periodically. So status will be updated in time.


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] tokers commented on issue #5082: bug: Active check is turned on, but Health check status no data

Posted by GitBox <gi...@apache.org>.
tokers commented on issue #5082:
URL: https://github.com/apache/apisix/issues/5082#issuecomment-921634824


   Trigger of health checker is lazy, so you should send some requests before you check the health check data.


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] jagerzhang closed issue #5082: bug: Active check is turned on, but Health check status no data

Posted by GitBox <gi...@apache.org>.
jagerzhang closed issue #5082:
URL: https://github.com/apache/apisix/issues/5082


   


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] jagerzhang commented on issue #5082: bug: Active check is turned on, but Health check status no data

Posted by GitBox <gi...@apache.org>.
jagerzhang commented on issue #5082:
URL: https://github.com/apache/apisix/issues/5082#issuecomment-924500848


   > > > > how long will the route revoke the health check if there is no new request
   > > > 
   > > > 
   > > > I don't understand this. Do you mean the expiry time of the health check data in the shared dict?
   > > 
   > > 
   > > I mean, will it become lazy again after activation?
   > > Is there any guidance document about this feature?
   > 
   > It won't. You can see https://kong.github.io/lua-resty-healthcheck/topics/readme.md.html for more details.
   
   ok, tks


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org