As far I know, rsyslog doesn't do "load balancing".
If you really want to do load balancing, you can do it manually by using
configuration management tools like puppet to ease "manual" load balancing
(by mapping log producers to log collectors).
You can also use rsyslog failover (Action.ExecOnlyWhenPreviousIsSuspended)
to ensure log producers never lose messages when a log collector is down.
For example :
action(Name="collector1"
Type="omrelp"
Target="collector1"
Port="10514"
Action.ResumeInterval="5"
Timeout="5")
action(Name="collector2"
Type="omrelp"
Target="collector2"
Port="10514"
Action.ExecOnlyWhenPreviousIsSuspended="on"
Action.ResumeInterval="5"
Timeout="5")
That configuration makes rsyslog sends its messages to "collector2" if it
can't establish a RELP session with "collector1".
You can add more "backup" collectors.
Sure its not true load balancing. But with proper planning of collectors
ressources (mainly cpu/ram/queue sizes) and proper mapping of producers to
collectors, it does the job.
Philippe Muller
On Mon, May 13, 2013 at 1:16 PM, Mark Olliver <
[email protected]> wrote:
> Hi All,
>
> We are currently using rsyslog to transfer messages over tcp between two
> boxes, we have this setup using haproxy as we have two central servers
> which then process these messages into useful data for us. I am currently
> reviewing this and considering switching rsyslog to use RELP, can this
> still go via haproxy if not what would be the best way to balance the
> traffic?
>
> Thanks
>
> Mark
>
>
> --
> Mark Olliver
> _______________________________________________
> rsyslog mailing list
> http://lists.adiscon.net/mailman/listinfo/rsyslog
> http://www.rsyslog.com/professional-services/
> What's up with rsyslog? Follow https://twitter.com/rgerhards
> NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad
> of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you
> DON'T LIKE THAT.
>
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE
THAT.