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

Fluentd forward Output Plugin: active/standby issue. #1772

Closed
sergeyarl opened this issue Dec 4, 2017 · 2 comments
Closed

Fluentd forward Output Plugin: active/standby issue. #1772

sergeyarl opened this issue Dec 4, 2017 · 2 comments
Assignees

Comments

@sergeyarl
Copy link

Hi!

We'd like to have an Active-Standby log servers pair.

configuration of our forwarder hosts is the following:

...

<match **>
  @type forward

  heartbeat_type tcp
  send_timeout 60s
  recover_wait 10s
  heartbeat_interval 1s
  phi_threshold 16
  hard_timeout 60s

  <server>
    name logs1
    host logs1
    port 8889
    weight 60
  </server>

  <server>
    name logs2
    host logs2
    port 8889
    weight 60
    standby
  </server>

...
</match>

Fluentd documentation says

standby

Marks a node as the standby node for an Active-Standby model between Fluentd nodes. When an active node goes down, the standby node is promoted to an active node. The standby node is not used by the out_forward plugin until then.

That works perfectly. When I switch off logs1 node, Fluentd starts to send logs to logs2 node. However when I switch logs1 node back on, Fluentd starts to distribute logs among both logs1 and logs2 nodes. It looks like both of them become active. And no standby nodes are present.

Is it a normal behaviour?

Thank you!

Regards,
Sergey

@repeatedly
Copy link
Member

repeatedly commented Dec 5, 2017

That's weird.
I will check it after KubeCon.

@repeatedly repeatedly self-assigned this Dec 5, 2017
@repeatedly
Copy link
Member

I found a bug of heartbeat handling for TCP and send a patch: #1784

repeatedly added a commit that referenced this issue Dec 10, 2017
out_forward: Rebuild weight array to apply server setting properly. fix #1772
repeatedly added a commit that referenced this issue Dec 13, 2017
out_forward: Rebuild weight array to apply server setting properly. fix #1772
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

No branches or pull requests

2 participants