Skip to content
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

feat: add send timeout if server is not available #184

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Grentry
Copy link

@Grentry Grentry commented Aug 6, 2024

If the elastic server ist not available every request blocks execution. Now if the server is not reachable the events get saved in a queue and sent with the next request but with a defined timeout. As long the timeout has not exeeded the target do not try to send the request to the server.

I added two new properties
MaxQueueItems: limits the max items in queue. Default 1000
SendTimeoutOnFailureInMilliseconds: sets the timeout . Default 10000

I had the problem described in
https://github.com/markmcdowell/NLog.Targets.ElasticSearch/issues/174

If the elastic server ist not available every request blocks execution.
Now if the server is not reachable the events get saved in a queue and sent with the next request but with a defined timeout. As long the timeout has not exeeded the target do not try to send the request to the server.
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

Successfully merging this pull request may close these issues.

1 participant