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

Avoid duplicate retry when ES connect failed #224

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

Conversation

mobiusy
Copy link

@mobiusy mobiusy commented Sep 29, 2022

Considering two conditions:

  1. ES connect failed at initializing
  2. ES connection lost after connected

When log append to ElasticsearchTransport, all buffered log(buffering=true)/current log(buffering=false) will try write to ES, then failed, meanwile an retry connect to ES triggered. When lots of logs continuously append, this is an inefficient way to reconnect to ES.
So add inConnecting flag to efficiency ES connecting mechanism.

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.

None yet

1 participant