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

GraylogHost can support multiple addresses? #11

Closed
mrdear opened this issue Jan 12, 2018 · 5 comments
Closed

GraylogHost can support multiple addresses? #11

mrdear opened this issue Jan 12, 2018 · 5 comments

Comments

@mrdear
Copy link

mrdear commented Jan 12, 2018

Graylog master-slave mode, when a service a large number of anomalies for a short time, then crazy hit a node, here want to do load balancing, then you can configure multiple addresses on the client?

@osiegmar
Copy link
Owner

No. Currently this library doesn't support client side load balancing.

@osiegmar
Copy link
Owner

I have introduced a simple connection pool in branch connection-pool. This does not allow to configure several addresses but if a dns record points to several addresses, round robin would be used. Just take a look...

@mrdear
Copy link
Author

mrdear commented Jan 19, 2018

I'm not sure if udp mode uses connection pool to send to different graylog server for missing log.

My current solution uses the logback variable, which configures multiple hosts in the application and randomly selects a binding when the project starts up.

@osiegmar
Copy link
Owner

The udp mode doesn't need to use connection pooling, but it uses the AddressResolver now as well to ensure client side load balancing.

@osiegmar
Copy link
Owner

fixed in 1.1.0 which has just been released

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

No branches or pull requests

2 participants