gy09535 edited a comment on issue #2899: URL: https://github.com/apache/apisix/issues/2899#issuecomment-736940923
> Some interesting results: > > 1. every auth request is terminated after 5 seconds. It is because 5 is hardcoded as timeout value: > https://github.com/api7/lua-resty-etcd/blob/c45cfab8d4186c931ebfc3ea87ebcea5624b7122/lib/resty/etcd/v3.lua#L215 > 2. requests are in batch. We can add some random number to smooth the auth requests. > > Some strange results: > > 1. the number of requests is bigger than what 4 workers can create (about 2.5x I guess). I can't reproduce it at my side. Need to log the backtrack when the request is fired. > 2. Even under high pressure, there should be a few requests which can be achieved. However, all requests were failed. I doubt if the etcd has been hanged on for a while. Do you find the caller, who is frequently call the request? Any way we should control the auth fail hander , we can not allow request to auth again and again , we must protected the etcd not recevie too many request. Some special condition can cause it ,not every time ,When it happened I restart the gateway the auth is normal, and the etcd request become normal. ---------------------------------------------------------------- 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]
