wfgydbu commented on issue #2520:
URL: https://github.com/apache/apisix/issues/2520#issuecomment-717058930


   > > > > After setup everythig, simply run `make reload` will reproduce these 
errors.
   > > > 
   > > > 
   > > > Have you confirmed where these errors are exposed? The old bunch of 
worker processes or these new?
   > > 
   > > 
   > > Hmm, Not sure yet. For now, only observation, they just occur in 
`logs/error.log` in seconds after running `make run`.
   > 
   > Could you check it out? Just compare the pid number in each line of 
error.log, with this information, we can know whether this problem is due to 
the worker shutting down.
   
   Sure. 
   
   It should be newer worker processsers that produce these errors, check this 
out:
   
   `error.log`:
   ```
   2020/10/27 15:53:46 [notice] 1180809#1180809: signal process started
   2020/10/27 15:53:51 [error] 1180840#1180840: *2740601 [lua] 
config_etcd.lua:192: failed to check item data of [/apisix/routes] err:failed 
to acquire the lock: timeout ,val: 
{"priority":0,"methods":["PUT","GET","POST","DELETE","PATCH","HEAD","OPTIONS","CONNECT","TRACE"],"upstream":{"nodes":{"127.0.0.1:8000":10},"hash_on":"vars","type":"roundrobin"},"id":"1","uri":"\/*"},
 context: ngx.timer
   2020/10/27 15:53:51 [error] 1180837#1180837: *2740605 [lua] 
config_etcd.lua:192: failed to check item data of [/apisix/routes] err:failed 
to acquire the lock: timeout ,val: 
{"priority":0,"methods":["PUT","GET","POST","DELETE","PATCH","HEAD","OPTIONS","CONNECT","TRACE"],"upstream":{"nodes":{"127.0.0.1:8000":10},"hash_on":"vars","type":"roundrobin"},"id":"1","uri":"\/*"},
 context: ngx.timer
   ```
   
   compared with 
   ```
   [root@node10 testfile]# ps -ef | grep nginx
   root     1157187       1  0 13:57 ?        00:00:00 nginx: master process 
/usr/bin/openresty -p /kvm-hyt/apisix/ -c /kvm-hyt/apisix/conf/nginx.conf
   nobody   1162507 1157187  0 14:10 ?        00:00:04 nginx: worker process is 
shutting down
   nobody   1162508 1157187  0 14:10 ?        00:00:04 nginx: worker process is 
shutting down
   nobody   1162509 1157187  0 14:10 ?        00:00:04 nginx: worker process is 
shutting down
   nobody   1162510 1157187  0 14:10 ?        00:00:04 nginx: worker process is 
shutting down
   nobody   1162511 1157187  0 14:10 ?        00:00:04 nginx: worker process is 
shutting down
   nobody   1162512 1157187  0 14:10 ?        00:00:04 nginx: worker process is 
shutting down
   nobody   1162513 1157187  0 14:10 ?        00:00:04 nginx: worker process is 
shutting down
   nobody   1162514 1157187  0 14:10 ?        00:00:04 nginx: worker process is 
shutting down
   nobody   1162515 1157187  0 14:10 ?        00:00:04 nginx: worker process is 
shutting down
   nobody   1162516 1157187  0 14:10 ?        00:00:04 nginx: worker process is 
shutting down
   nobody   1162517 1157187  0 14:10 ?        00:00:04 nginx: worker process is 
shutting down
   nobody   1162518 1157187  0 14:10 ?        00:00:04 nginx: worker process is 
shutting down
   nobody   1162519 1157187  0 14:10 ?        00:00:04 nginx: worker process is 
shutting down
   nobody   1162520 1157187  0 14:10 ?        00:00:04 nginx: worker process is 
shutting down
   nobody   1162521 1157187  0 14:10 ?        00:00:04 nginx: worker process is 
shutting down
   nobody   1162522 1157187  0 14:10 ?        00:00:04 nginx: worker process is 
shutting down
   nobody   1162523 1157187  0 14:10 ?        00:00:04 nginx: worker process is 
shutting down
   nobody   1162524 1157187  0 14:10 ?        00:00:04 nginx: worker process is 
shutting down
   nobody   1162525 1157187  0 14:10 ?        00:00:04 nginx: worker process is 
shutting down
   nobody   1162526 1157187  0 14:10 ?        00:00:04 nginx: worker process is 
shutting down
   nobody   1162527 1157187  0 14:10 ?        00:00:04 nginx: worker process is 
shutting down
   nobody   1162528 1157187  0 14:10 ?        00:00:04 nginx: worker process is 
shutting down
   nobody   1162529 1157187  0 14:10 ?        00:00:04 nginx: worker process is 
shutting down
   nobody   1162530 1157187  0 14:10 ?        00:00:04 nginx: worker process is 
shutting down
   nobody   1162531 1157187  0 14:10 ?        00:00:04 nginx: worker process is 
shutting down
   nobody   1162532 1157187  0 14:10 ?        00:00:04 nginx: worker process is 
shutting down
   nobody   1162533 1157187  0 14:10 ?        00:00:04 nginx: worker process is 
shutting down
   nobody   1162534 1157187  0 14:10 ?        00:00:04 nginx: worker process is 
shutting down
   nobody   1162535 1157187  0 14:10 ?        00:00:04 nginx: worker process is 
shutting down
   nobody   1162536 1157187  0 14:10 ?        00:00:04 nginx: worker process is 
shutting down
   nobody   1162537 1157187  0 14:10 ?        00:00:04 nginx: worker process is 
shutting down
   nobody   1162538 1157187  0 14:10 ?        00:00:04 nginx: worker process is 
shutting down
   nobody   1180811 1157187  0 15:53 ?        00:00:00 nginx: worker process
   nobody   1180812 1157187  0 15:53 ?        00:00:00 nginx: worker process
   nobody   1180813 1157187  0 15:53 ?        00:00:00 nginx: worker process
   nobody   1180814 1157187  0 15:53 ?        00:00:00 nginx: worker process
   nobody   1180815 1157187  0 15:53 ?        00:00:00 nginx: worker process
   nobody   1180816 1157187  0 15:53 ?        00:00:00 nginx: worker process
   nobody   1180817 1157187  0 15:53 ?        00:00:00 nginx: worker process
   nobody   1180818 1157187  0 15:53 ?        00:00:00 nginx: worker process
   nobody   1180819 1157187  0 15:53 ?        00:00:00 nginx: worker process
   nobody   1180820 1157187  0 15:53 ?        00:00:00 nginx: worker process
   nobody   1180821 1157187  0 15:53 ?        00:00:00 nginx: worker process
   nobody   1180822 1157187  0 15:53 ?        00:00:00 nginx: worker process
   nobody   1180823 1157187  0 15:53 ?        00:00:00 nginx: worker process
   nobody   1180824 1157187  0 15:53 ?        00:00:00 nginx: worker process
   nobody   1180825 1157187  0 15:53 ?        00:00:00 nginx: worker process
   nobody   1180826 1157187  0 15:53 ?        00:00:00 nginx: worker process
   nobody   1180827 1157187  0 15:53 ?        00:00:00 nginx: worker process
   nobody   1180828 1157187  0 15:53 ?        00:00:00 nginx: worker process
   nobody   1180829 1157187  0 15:53 ?        00:00:00 nginx: worker process
   nobody   1180830 1157187  0 15:53 ?        00:00:00 nginx: worker process
   nobody   1180831 1157187  0 15:53 ?        00:00:00 nginx: worker process
   nobody   1180832 1157187  0 15:53 ?        00:00:00 nginx: worker process
   nobody   1180833 1157187  0 15:53 ?        00:00:00 nginx: worker process
   nobody   1180834 1157187  0 15:53 ?        00:00:00 nginx: worker process
   nobody   1180835 1157187  0 15:53 ?        00:00:00 nginx: worker process
   nobody   1180836 1157187  0 15:53 ?        00:00:00 nginx: worker process
   nobody   1180837 1157187  0 15:53 ?        00:00:00 nginx: worker process
   nobody   1180838 1157187  0 15:53 ?        00:00:00 nginx: worker process
   nobody   1180839 1157187  0 15:53 ?        00:00:00 nginx: worker process
   nobody   1180840 1157187  0 15:53 ?        00:00:00 nginx: worker process
   nobody   1180841 1157187  0 15:53 ?        00:00:00 nginx: worker process
   nobody   1180842 1157187  0 15:53 ?        00:00:00 nginx: worker process
   nobody   1180843 1157187  0 15:53 ?        00:00:00 nginx: cache manager 
process
   root     1180857 1163567  0 15:53 pts/12   00:00:00 grep --color=auto nginx
   ```
   


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


Reply via email to