On Tue, May 14, 2013 at 12:47 PM, Rainer Gerhards <[email protected]>wrote:
> > On Mon, May 13, 2013 at 9:03 PM, David Lang <[email protected]> wrote: > >> On Mon, 13 May 2013, Gary Foster wrote: >> >> I believe that you are correct across the board. It should not be that >> difficult a task to get this feature added to RELP, but with Rainer's crash >> project he's not going to get a chance to do anything until June. >> >> This should be pretty close to a cut-n-paste of the code from omtcp to >> omrelp, count the messages and close/reopen the connection >> >> the more complex the network protocol the more work there is to set it >> up, setting this to give the load balancer a chance to redirect the traffic >> every second or two is a good timing to aim for. >> > > I am not sure if it is such a good idea to do this for RELP. While of > course it is possible to do (and probably not so much work), the > performance profile is quite different. There is much more overhead in > creating and shutting down these sessions and I wouldn't do it too > frequently. Anyhow, I am touching RELP currently as well, so I could see if > I add support for this (depending on effort required, obviously not a > priority at the moment). But I am still a bit skeptic... > As I wrote, I co-incidently was at that body of code today. I did a quick hack to implement it: http://git.adiscon.com/?p=rsyslog.git;a=commitdiff;h=24372200d1ff9a70c0474e99fe03e0faca6cc17f It's more or less untested (other than a 5-minute "seems to work" test). Usage is simple: action(type="omrelp" target="127.0.0.1" port="20514" timeout="90" rebindInterval="4") If the patch does not apply to current master, you need the (temporary, aka "will go away these days" master-rtls branch plus librelp master branch to build. Rainer _______________________________________________ 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.

