Skip to content

Avoid duplicate retry when ES connect failed - #224

Open
mobiusy wants to merge 1 commit into
vanthome:masterfrom
mobiusy:master
Open

Avoid duplicate retry when ES connect failed#224
mobiusy wants to merge 1 commit into
vanthome:masterfrom
mobiusy:master

Conversation

@mobiusy

@mobiusy mobiusy commented Sep 29, 2022

Copy link
Copy Markdown

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.

1 participant