Skip to content

log message be dropped and socket:setkeepalive error #52

Description

@lukerliu

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions