Skip to content

log message be dropped and socket:setkeepalive error #52

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
lukerliu opened this issue May 22, 2019 · 1 comment
Open

log message be dropped and socket:setkeepalive error #52

lukerliu opened this issue May 22, 2019 · 1 comment

Comments

@lukerliu
Copy link

lukerliu commented May 22, 2019

Hello! When I use openresty and syslog-ng to log message, I had two problems . My server parameters: sock_type=tcp,flush_limit=2048,periodic_flush=10,pool_size=100.

First, drop message problem, if request rate is fast,ngx.timer pending count increase. My understanding is that the scheduled task is waiting to be executed and flush data is too slow(milliseconds), resulting the buffer_size is not zero, so msg_len + buffer_size > drop_limit.Right?

Second, socket:setkeepalive error, i get the error message: "resend log messages to the log server: connection in dubious state". I think this error send data multiple times. how to resolve it?

Thanks

@lochv
Copy link

lochv commented Jul 6, 2021

@lukerliu

i solved by set periodic to lower

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants