Skip to content

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.

1 participant