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

Update redis client #1353

Merged
merged 7 commits into from
Apr 12, 2016
Merged

Update redis client #1353

merged 7 commits into from
Apr 12, 2016

Conversation

urso
Copy link

@urso urso commented Apr 7, 2016

Rewrite redis client based on outputs.mode package

  • support for TLS
  • support for SOCKS5
  • error handling and retry logic + support for 'Guaranteed' output
  • support for failover and loadbalancing if multiple hosts are configured
  • support for multiple workers (loadbalancing mode) per redis host
  • backoff strategy is redis is unresponsive
  • split topology handling from outputer (dedicated config options in redis module)
  • Fix response handling draining complete response buffer after sending batch

Rewrite redis client based on outputs.mode package

- support for TLS
- support for SOCKS5
- error handling and retry logic + support for 'Guaranteed' output
- support for failover and loadbalancing if multiple hosts are configured
- support for multiple workers (loadbalancing mode) per redis host
- backoff strategy is redis is unresponsive
- split topology handling from outputer (dedicated config options in redis module)
- Fix response handling draining complete response buffer after sending batch
@urso urso added enhancement in progress Pull request is currently in progress. libbeat labels Apr 7, 2016
@urso urso added review and removed in progress Pull request is currently in progress. labels Apr 9, 2016

===== port

The port of the Redis server.
Redis default port if hosts do not contain port number. The default is 6379.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

... do not contain the port number ...

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not, it's default redis port

@ruflin
Copy link
Contributor

ruflin commented Apr 11, 2016

@dedemorton Can you have a look at the doc changes?

return nil, err
}

multiValue := major > 2 || (major == 2 && minor >= 4)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A note would be nice why this differentiation is needed.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@ruflin
Copy link
Contributor

ruflin commented Apr 11, 2016

LGTM. Would be good if perhaps @andrewkroh also could have a look.

@ruflin
Copy link
Contributor

ruflin commented Apr 12, 2016

@urso Can you squash the commits?

@ruflin ruflin merged commit 7ce23cc into elastic:master Apr 12, 2016
@andrewkroh
Copy link
Member

Nice job. The code LGTM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants