Using apache as a reverse proxy

Fred Grim fgrim at vmware.com
Thu Jan 15 12:14:59 EST 2015


So actually yeah and the problem was the same. However if I hit riak
directly then there is no issue.  Are there http settings for riak that
cause the streaming behavior to change when being proxied?

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= 





More information about the riak-users mailing list