tech-microworld / ws-cloud-gateway

基于 openresty + etcd 实现的轻量级网关服务
https://tech-microworld.github.io/ws-cloud/gateway/
Apache License 2.0
82 stars 26 forks source link

[error] lua tcp socket read timed out, context: ngx.timer #45

Open 21bigticket opened 2 years ago

21bigticket commented 2 years ago
2022/03/27 11:47:55 [error] 7473#79229: *41 lua tcp socket read timed out, context: ngx.timer
2022/03/27 11:47:55 [error] 7472#79228: *45 lua tcp socket read timed out, context: ngx.timer
2022/03/27 11:47:55 [info] 7473#79229: *41 [lua] timer.lua:97: worker[1] - timer[discovery.watcher.timer] run finish, take 60.00s, context: ngx.timer
2022/03/27 11:47:55 [info] 7472#79228: *45 [lua] timer.lua:97: worker[0] - timer[route.watch.timer] run finish, take 60.00s, context: ngx.timer
2022/03/27 11:47:55 [error] 7473#79229: *46 lua tcp socket read timed out, context: ngx.timer
2022/03/27 11:47:55 [info] 7473#79229: *46 [lua] timer.lua:97: worker[1] - timer[route.watch.timer] run finish, take 60.00s, context: ngx.timer
2022/03/27 11:47:55 [error] 7472#79228: *42 lua tcp socket read timed out, context: ngx.timer
2022/03/27 11:47:55 [info] 7472#79228: *42 [lua] timer.lua:97: worker[0] - timer[discovery.watcher.timer] run finish, take 60.00s, context: ngx.timer
2022/03/27 11:47:55 [info] 7473#79229: *49 [lua] timer.lua:85: worker[1] - timer[discovery.watcher.timer] start, context: ngx.timer
2022/03/27 11:47:55 [info] 7472#79228: *50 [lua] timer.lua:85: worker[0] - timer[route.watch.timer] start, context: ngx.timer
2022/03/27 11:47:55 [info] 7473#79229: *49 [lua] discovery_stroe.lua:224: worker[1] - watch services start_revision: 143, context: ngx.timer
2022/03/27 11:47:55 [info] 7472#79228: *50 [lua] route_store.lua:99: worker[0] - watch routes start_revision: 143, context: ngx.timer
2022/03/27 11:47:55 [info] 7473#79229: *53 [lua] timer.lua:85: worker[1] - timer[route.watch.timer] start, context: ngx.timer
2022/03/27 11:47:55 [info] 7473#79229: *53 [lua] route_store.lua:99: worker[1] - watch routes start_revision: 143, context: ngx.timer
2022/03/27 11:47:55 [info] 7472#79228: *54 [lua] timer.lua:85: worker[0] - timer[discovery.watcher.timer] start, context: ngx.timer
2022/03/27 11:47:55 [info] 7472#79228: *54 [lua] discovery_stroe.lua:224: worker[0] - watch services start_revision: 143, context: ngx.timer
2022/03/27 11:47:55 [info] 7473#79229: *49 [lua] v3.lua:504: request_chunk(): http request method: POST path: /v3/watch body: {"create_request":{"key":"L215L2Nsb3VkL2Rpc2NvdmVyeS8=","start_revision":143,"range_end":"L215L2Nsb3VkL2Rpc2NvdmVyeTA=","prev_kv":true}} query: nil, context: ngx.timer
2022/03/27 11:47:55 [info] 7472#79228: *50 [lua] v3.lua:504: request_chunk(): http request method: POST path: /v3/watch body: {"create_request":{"key":"L215L2Nsb3VkL3JvdXRlcy8=","start_revision":143,"range_end":"L215L2Nsb3VkL3JvdXRlczA=","prev_kv":true}} query: nil, context: ngx.timer
2022/03/27 11:47:55 [info] 7473#79229: *49 [lua] discovery_stroe.lua:245: worker[1] - services watch result: {"created":true,"header":{"cluster_id":"14841639068965178418","raft_term":"9","member_id":"10276657743932975437","revision":"142"}}, context: ngx.timer
2022/03/27 11:47:55 [info] 7472#79228: *50 [lua] route_store.lua:120: worker[0] - routes watch result: {"created":true,"header":{"cluster_id":"14841639068965178418","raft_term":"9","member_id":"10276657743932975437","revision":"142"}}, context: ngx.timer
2022/03/27 11:47:55 [info] 7473#79229: *53 [lua] v3.lua:504: request_chunk(): http request method: POST path: /v3/watch body: {"create_request":{"key":"L215L2Nsb3VkL3JvdXRlcy8=","start_revision":143,"range_end":"L215L2Nsb3VkL3JvdXRlczA=","prev_kv":true}} query: nil, context: ngx.timer
2022/03/27 11:47:55 [info] 7472#79228: *54 [lua] v3.lua:504: request_chunk(): http request method: POST path: /v3/watch body: {"create_request":{"key":"L215L2Nsb3VkL2Rpc2NvdmVyeS8=","start_revision":143,"range_end":"L215L2Nsb3VkL2Rpc2NvdmVyeTA=","prev_kv":true}} query: nil, context: ngx.timer
2022/03/27 11:47:55 [info] 7473#79229: *53 [lua] route_store.lua:120: worker[1] - routes watch result: {"created":true,"header":{"cluster_id":"14841639068965178418","raft_term":"9","member_id":"10276657743932975437","revision":"142"}}, context: ngx.timer
2022/03/27 11:47:55 [info] 7472#79228: *54 [lua] discovery_stroe.lua:245: worker[0] - services watch result: {"created":true,"header":{"cluster_id":"14841639068965178418","raft_term":"9","member_id":"10276657743932975437","revision":"142"}}, context: ngx.timer
fengjx commented 2 years ago

看下 etcd 配置是否正确,etcd 访问是否正常

21bigticket commented 2 years ago

etcd正常的,可以访问和压测服务,猜测是健康检查定时检测的报错