Using apache as a reverse proxy

Fred Grim fgrim at vmware.com
Thu Jan 15 18:42:44 EST 2015


So this is really for the Googles.  The problem turned out to be my code
(isn’t it always) and a misuse of an edge triggered epoll loop.  Sorry for
all the line noise list.

Fred

On 1/15/15, 2:06 PM, "Luke Bakken" <lbakken at basho.com> wrote:

>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=Sqcl0Ez
>>>>6M
>>>>0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=SlFhcqa96v6kZtniOwCKZQ&m=ZJFOfauLK
>>>>n7
>>>>PMnXQSchCb1a36y_3o9wCTLFVK8KJSs0&s=KekvofgBdK_OC9kN2fd0pOMp3lPUDQsQwu4f
>>>>Rr
>>>>kc9WU&e= <ip1>:8098
>>>>         BalancerMember
>>>>https://urldefense.proofpoint.com/v2/url?u=http-3A__&d=AwICAg&c=Sqcl0Ez
>>>>6M
>>>>0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=SlFhcqa96v6kZtniOwCKZQ&m=ZJFOfauLK
>>>>n7
>>>>PMnXQSchCb1a36y_3o9wCTLFVK8KJSs0&s=KekvofgBdK_OC9kN2fd0pOMp3lPUDQsQwu4f
>>>>Rr
>>>>kc9WU&e= <ip2>:8098
>>>>         BalancerMember
>>>>https://urldefense.proofpoint.com/v2/url?u=http-3A__&d=AwICAg&c=Sqcl0Ez
>>>>6M
>>>>0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=SlFhcqa96v6kZtniOwCKZQ&m=ZJFOfauLK
>>>>n7
>>>>PMnXQSchCb1a36y_3o9wCTLFVK8KJSs0&s=KekvofgBdK_OC9kN2fd0pOMp3lPUDQsQwu4f
>>>>Rr
>>>>kc9WU&e= <ip3>:8098
>>>>         BalancerMember
>>>>https://urldefense.proofpoint.com/v2/url?u=http-3A__&d=AwICAg&c=Sqcl0Ez
>>>>6M
>>>>0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=SlFhcqa96v6kZtniOwCKZQ&m=ZJFOfauLK
>>>>n7
>>>>PMnXQSchCb1a36y_3o9wCTLFVK8KJSs0&s=KekvofgBdK_OC9kN2fd0pOMp3lPUDQsQwu4f
>>>>Rr
>>>>kc9WU&e= <ip4>:8098
>>>>         BalancerMember
>>>>https://urldefense.proofpoint.com/v2/url?u=http-3A__&d=AwICAg&c=Sqcl0Ez
>>>>6M
>>>>0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=SlFhcqa96v6kZtniOwCKZQ&m=ZJFOfauLK
>>>>n7
>>>>PMnXQSchCb1a36y_3o9wCTLFVK8KJSs0&s=KekvofgBdK_OC9kN2fd0pOMp3lPUDQsQwu4f
>>>>Rr
>>>>kc9WU&e= <ip5>:8098
>>>>         BalancerMember
>>>>https://urldefense.proofpoint.com/v2/url?u=http-3A__&d=AwICAg&c=Sqcl0Ez
>>>>6M
>>>>0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=SlFhcqa96v6kZtniOwCKZQ&m=ZJFOfauLK
>>>>n7
>>>>PMnXQSchCb1a36y_3o9wCTLFVK8KJSs0&s=KekvofgBdK_OC9kN2fd0pOMp3lPUDQsQwu4f
>>>>Rr
>>>>kc9WU&e= <ip6>:8098
>>>>         BalancerMember
>>>>https://urldefense.proofpoint.com/v2/url?u=http-3A__&d=AwICAg&c=Sqcl0Ez
>>>>6M
>>>>0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=SlFhcqa96v6kZtniOwCKZQ&m=ZJFOfauLK
>>>>n7
>>>>PMnXQSchCb1a36y_3o9wCTLFVK8KJSs0&s=KekvofgBdK_OC9kN2fd0pOMp3lPUDQsQwu4f
>>>>Rr
>>>>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_mai
>>>>lm
>>>>an_listinfo_riak-2Dusers-5Flists.basho.com&d=AwICAg&c=Sqcl0Ez6M0X8aeM67
>>>>LK
>>>>IiDJAXVeAw-YihVMNtXt-uEs&r=SlFhcqa96v6kZtniOwCKZQ&m=ZJFOfauLKn7PMnXQSch
>>>>Cb
>>>>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_mail
>>>ma
>>>n_listinfo_riak-2Dusers-5Flists.basho.com&d=AwICAg&c=Sqcl0Ez6M0X8aeM67LK
>>>Ii
>>>DJAXVeAw-YihVMNtXt-uEs&r=SlFhcqa96v6kZtniOwCKZQ&m=ZJFOfauLKn7PMnXQSchCb1
>>>a3
>>>6y_3o9wCTLFVK8KJSs0&s=MsEIDP9hnsHgV-B_0DwIZR4xJbEmFwP3M1b3ULbDXiU&e=
>>
>>
>> _______________________________________________
>> 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=AwIFaQ&c=Sqcl0Ez6M0X8aeM67LK
>>IiDJAXVeAw-YihVMNtXt-uEs&r=SlFhcqa96v6kZtniOwCKZQ&m=rXthvrEcXXAveYIMrbBRb
>>5k-fI06lSPsavO9MSjrHoY&s=jIfI93rDVYlJ8Bxca0rKKHLMQ0PGTGTnrP5GBl9QVEI&e= 



More information about the riak-users mailing list