Using apache as a reverse proxy

Luke Bakken lbakken at basho.com
Thu Jan 15 17:06:08 EST 2015


Most reverse proxies have a timeout for data being sent from the
server. If this query takes a long time to run when not using the
proxy, I suggest investigating increasing timeout values.
--
Luke Bakken
Engineer
lbakken at basho.com


On Thu, Jan 15, 2015 at 12:01 PM, Fred Grim <fgrim at vmware.com> wrote:
> The more I look at this the more I am thinking there is something busted
> in riak or webmachine (I am using riak 1.4.10). The issue seems to be
> impervious to apache settings or haproxy settings and going through the
> source there doesn¹t seem to be many knobs to turn to adjust chunked
> responses. Googling for issues in web machine also turned up nothing.
> Maybe a pause in the return of map responses is doing it? Can riak be
> configured to send keepalives?
>
> F
>
> On 1/14/15, 10:31 PM, "Toby Corkindale" <toby at dryft.net> wrote:
>
>>Just a thought, but have you tried to replicate the problem when using
>>haproxy (with the example configs provided on basho's site)?
>>That might let you discover if the problem really IS with Apache, or
>>if it's something to do with your Riak config instead.
>>
>>On 15 January 2015 at 11:05, Fred Grim <fgrim at vmware.com> wrote:
>>> Hello List,
>>>
>>> So I am using apache on ubuntu as a reverse proxy to a riak cluster.
>>>Everything seems to work fine except for largish streaming map reduce
>>>queries.  The config is:
>>> <VirtualHost *:8098>
>>>     ServerAdmin aperson at acompany.com
>>>     <Proxy balancer://riak_cluster>
>>>         BalancerMember
>>>https://urldefense.proofpoint.com/v2/url?u=http-3A__&d=AwICAg&c=Sqcl0Ez6M
>>>0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=SlFhcqa96v6kZtniOwCKZQ&m=ZJFOfauLKn7
>>>PMnXQSchCb1a36y_3o9wCTLFVK8KJSs0&s=KekvofgBdK_OC9kN2fd0pOMp3lPUDQsQwu4fRr
>>>kc9WU&e= <ip1>:8098
>>>         BalancerMember
>>>https://urldefense.proofpoint.com/v2/url?u=http-3A__&d=AwICAg&c=Sqcl0Ez6M
>>>0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=SlFhcqa96v6kZtniOwCKZQ&m=ZJFOfauLKn7
>>>PMnXQSchCb1a36y_3o9wCTLFVK8KJSs0&s=KekvofgBdK_OC9kN2fd0pOMp3lPUDQsQwu4fRr
>>>kc9WU&e= <ip2>:8098
>>>         BalancerMember
>>>https://urldefense.proofpoint.com/v2/url?u=http-3A__&d=AwICAg&c=Sqcl0Ez6M
>>>0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=SlFhcqa96v6kZtniOwCKZQ&m=ZJFOfauLKn7
>>>PMnXQSchCb1a36y_3o9wCTLFVK8KJSs0&s=KekvofgBdK_OC9kN2fd0pOMp3lPUDQsQwu4fRr
>>>kc9WU&e= <ip3>:8098
>>>         BalancerMember
>>>https://urldefense.proofpoint.com/v2/url?u=http-3A__&d=AwICAg&c=Sqcl0Ez6M
>>>0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=SlFhcqa96v6kZtniOwCKZQ&m=ZJFOfauLKn7
>>>PMnXQSchCb1a36y_3o9wCTLFVK8KJSs0&s=KekvofgBdK_OC9kN2fd0pOMp3lPUDQsQwu4fRr
>>>kc9WU&e= <ip4>:8098
>>>         BalancerMember
>>>https://urldefense.proofpoint.com/v2/url?u=http-3A__&d=AwICAg&c=Sqcl0Ez6M
>>>0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=SlFhcqa96v6kZtniOwCKZQ&m=ZJFOfauLKn7
>>>PMnXQSchCb1a36y_3o9wCTLFVK8KJSs0&s=KekvofgBdK_OC9kN2fd0pOMp3lPUDQsQwu4fRr
>>>kc9WU&e= <ip5>:8098
>>>         BalancerMember
>>>https://urldefense.proofpoint.com/v2/url?u=http-3A__&d=AwICAg&c=Sqcl0Ez6M
>>>0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=SlFhcqa96v6kZtniOwCKZQ&m=ZJFOfauLKn7
>>>PMnXQSchCb1a36y_3o9wCTLFVK8KJSs0&s=KekvofgBdK_OC9kN2fd0pOMp3lPUDQsQwu4fRr
>>>kc9WU&e= <ip6>:8098
>>>         BalancerMember
>>>https://urldefense.proofpoint.com/v2/url?u=http-3A__&d=AwICAg&c=Sqcl0Ez6M
>>>0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=SlFhcqa96v6kZtniOwCKZQ&m=ZJFOfauLKn7
>>>PMnXQSchCb1a36y_3o9wCTLFVK8KJSs0&s=KekvofgBdK_OC9kN2fd0pOMp3lPUDQsQwu4fRr
>>>kc9WU&e= <ip7>:8098
>>>     </Proxy>
>>>     <Location />
>>>         ProxyPass balancer://riak_cluster/
>>>         ProxyPassReverse balancer://riak_cluster/
>>>     </Location>
>>> </VirtualHost>
>>>
>>> What happens is that my streamed queries seem to partially come in
>>>which makes me think that the load balancer is switching them or
>>>something. I know I am missing some config value in here but I cannot,
>>>for the life of me, figure out what it is. Does anyone have an example
>>>config they could through up?
>>>
>>> F
>>> _______________________________________________
>>> riak-users mailing list
>>> riak-users at lists.basho.com
>>>
>>>https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.basho.com_mailm
>>>an_listinfo_riak-2Dusers-5Flists.basho.com&d=AwICAg&c=Sqcl0Ez6M0X8aeM67LK
>>>IiDJAXVeAw-YihVMNtXt-uEs&r=SlFhcqa96v6kZtniOwCKZQ&m=ZJFOfauLKn7PMnXQSchCb
>>>1a36y_3o9wCTLFVK8KJSs0&s=MsEIDP9hnsHgV-B_0DwIZR4xJbEmFwP3M1b3ULbDXiU&e=
>>
>>
>>
>>--
>>Turning and turning in the widening gyre
>>The falcon cannot hear the falconer
>>Things fall apart; the center cannot hold
>>Mere anarchy is loosed upon the world
>>
>>_______________________________________________
>>riak-users mailing list
>>riak-users at lists.basho.com
>>https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.basho.com_mailma
>>n_listinfo_riak-2Dusers-5Flists.basho.com&d=AwICAg&c=Sqcl0Ez6M0X8aeM67LKIi
>>DJAXVeAw-YihVMNtXt-uEs&r=SlFhcqa96v6kZtniOwCKZQ&m=ZJFOfauLKn7PMnXQSchCb1a3
>>6y_3o9wCTLFVK8KJSs0&s=MsEIDP9hnsHgV-B_0DwIZR4xJbEmFwP3M1b3ULbDXiU&e=
>
>
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com




More information about the riak-users mailing list