Comments (3)
This seems to be an issue for https://github.com/kong/kong: I have my plugin automatically compiled and trigger a kong reload afterwards. So on every reload there is one nginx worker stuck with
❯ ps ax| rg nginx
1363083 ? Ss 0:00 nginx: master process /usr/local/openresty/nginx/sbin/nginx -p /usr/local/kong -c nginx.conf
1363298 ? S 0:00 nginx: worker process is shutting down
1363780 ? S 0:00 nginx: worker process
1363781 ? S 0:00 nginx: worker process
1363782 ? S 0:00 nginx: worker process
1363783 ? S 0:00 nginx: worker process
1363784 ? S 0:00 nginx: worker process
1363785 ? S 0:00 nginx: worker process
1363786 ? S 0:00 nginx: worker process
1363787 ? S 0:00 nginx: worker process
1366486 pts/3 S+ 0:00 rg nginx
~
❯ sudo strace -p 1363298
strace: Process 1363298 attached
write(4, "2021/03/09 08:13:47 [info] 30#0:"..., 82) = 82
epoll_pwait(11, [], 512, 234, NULL, 8) = 0
read(22, 0x56041d03b380, 4096) = -1 EAGAIN (Resource temporarily unavailable)
mprotect(0x7f4cbde30000, 65536, PROT_READ|PROT_WRITE) = 0
mprotect(0x7f4cbde30000, 65536, PROT_READ|PROT_EXEC) = 0
epoll_pwait(11, [], 512, 10000, NULL, 8) = 0
read(22, 0x56041d03b380, 4096) = -1 EAGAIN (Resource temporarily unavailable)
epoll_pwait(11, [], 512, 10000, NULL, 8) = 0
read(22, 0x56041d03b380, 4096) = -1 EAGAIN (Resource temporarily unavailable)
epoll_pwait(11, ^Cstrace: Process 1363298 detached
<detached ...>
from go-pdk.
I run kong==2.3.3 in a docker container
from go-pdk.
FYA: Kong/kong#6904
from go-pdk.
Related Issues (20)
- graceful reload: kong reload on a machine with reasonable traffic and a go plugin leads to DOS
- Feature Request: Provide a `Close()` callback to clean up plugin's own resources
- kong.ServiceResponse.GetRawBody() return error string field contains invalid UTF-8 HOT 3
- SetUpstream fail with error "bad argument #2 to 'encode' (table expected, got boolean)"
- panic: `kong.Request.GetQueryArg` using test module
- Impossible to access kong.Router.GetService() from Log phase. HOT 1
- Test package errors when using kong.Response.ExitStatus
- Possible error loss in the pbserver.servePb HOT 1
- Support for `kong.log.set_serialize_value` HOT 1
- Test package only supports `GET` requests HOT 5
- ExitArgs.Body should be `[]byte` instead of `string` HOT 2
- Kong version support HOT 1
- rewrite ngx.var HOT 1
- Can we handle tls termination during certificate phase using kong golang pdk HOT 2
- How can I print log to log_file? HOT 11
- Unable to set path in access phase using kong.service.request.set_path HOT 1
- `kong.Request.GetHeaders` returns headers uppercased in test module HOT 2
- kong.ServiceResponse.GetRawBody() return empty string HOT 2
- feature-request: Support Tracing PDK APIs HOT 3
- go PDK is supposed to use pb_rpc.lua but it use mp_rpc.lua HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-pdk.