Actually, I think it should be part of the wiki, and have opened an issue to that effect. https://github.com/basho/riak_wiki/issues/106
Sean Cribbs <s...@basho.com> Developer Advocate Basho Technologies, Inc. http://basho.com/ On May 31, 2011, at 12:05 PM, Mark Phillips wrote: > Hey Bob, > > Any objections if I clean this up and add it to the "Other" section of > Riak Function Contrib? It's clearly not a function, but I think others > would find this useful (as Scott did) as a point of reference. > > http://contrib.basho.com/other-functions.html > > Let me know and I'll throw together a pull request for your review. > > Mark > > On Mon, May 30, 2011 at 4:55 PM, Bob Feldbauer <b...@completefusion.com> > wrote: >> Your haproxy.cfg looks fine, but since you asked, here's the my haproxy.cfg >> for Riak use: >> >> global >> user haproxy >> group haproxy >> daemon >> maxconn 100000 >> >> defaults >> log global >> mode tcp >> option tcplog >> option dontlognull >> balance leastconn >> clitimeout 60000 >> srvtimeout 60000 >> contimeout 5000 >> retries 3 >> option redispatch >> option contstats >> stats enable >> >> listen riak 192.168.1.1:8087 >> server riak1 riak1:8087 weight 1 maxconn 1000 >> server riak2 riak2:8087 weight 1 maxconn 1000 >> server riak3 riak3:8087 weight 1 maxconn 1000 >> >> >> Good luck! >> >> - Bob Feldbauer >> >> On 5/30/2011 7:11 PM, Scott M. Likens wrote: >>> >>> Hey, >>> >>> So I thought I had a working haproxy configuration with protobuffers (It >>> worked once upon a time, but no longer) so I was wondering if anyone had any >>> working examples? >>> >>> <quote> >>> irb(main):001:0> client = Riak::Client.new(:protocol => "pbc") >>> => #<Riak::Client pbc://127.0.0.1:8087> >>> irb(main):002:0> client.ping >>> Riak::ProtobuffsFailedRequest: Expected success from Riak but received >>> server_error. Unexpected EOF on PBC socket >>> </quote> >>> >>> <quote> >>> irb(main):008:0> client2=Riak::Client.new(:protocol => "pbc", :host => >>> "10.170.121.116") >>> => #<Riak::Client pbc://10.170.121.116:8087> >>> irb(main):009:0> client2.ping >>> => true >>> </quote> >>> >>> If I remove all the servers except for 1 connects but still doesn't really >>> work, below is my haproxy configuration I hope it helps. >>> >>> listen riak_pbc :8087 >>> mode tcp >>> server app-0 ip-10-170-121-116.us-west-1.compute.internal:8087 check >>> inter 5000 fastinter 1000 fall 1 weight 50 >>> server app-1 ip-10-171-43-226.us-west-1.compute.internal:8087 check >>> inter 5000 fastinter 1000 fall 1 weight 50 >>> server app-2 ip-10-170-142-202.us-west-1.compute.internal:8087 check >>> inter 5000 fastinter 1000 fall 1 weight 50 >>> >>> Actual full haproxy erb chef template can be found here >>> https://github.com/damm/ey-riak/blob/master/templates/default/haproxy.cfg.erb >>> (if you see anything I should turn off for http please let me know and be >>> gentle) >> >> _______________________________________________ >> riak-users mailing list >> riak-users@lists.basho.com >> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com >> > > _______________________________________________ > riak-users mailing list > riak-users@lists.basho.com > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com _______________________________________________ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com