Help regarding parent.config

classic Classic list List threaded Threaded
20 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Help regarding parent.config

gksalil
Hello

   I have the following entry in parent.config.

dest_domain=.     parent="127.0.0.1:4000; 127.0.0.1:4001"     round_robin=true



  I expect the alternate requests will be send to port :4000 and :4001 so as to load balance the request. But I noticed that for all packets are sent through 4000 only. ( I have tunnels created from my machine to ATS machines in two other machines. :4000 port is opened to ATS in one machine and :4001 port is opened to ATS is another machine.)  What could be the problem and how do I debug this issue further ?



Thanks
~S
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Help regarding parent.config

Miles Libbey
Can you try comma separated values instead of semi-colons?
dest_domain=.     parent="127.0.0.1:4000, 127.0.0.1:4001"     round_robin=true

miles

On Thu, Apr 20, 2017 at 10:02 PM, gksalil <[hidden email]> wrote:

> Hello
>
>    I have the following entry in parent.config.
>
> dest_domain=.     parent="127.0.0.1:4000; 127.0.0.1:4001"
> round_robin=true
>
>
>
>   I expect the alternate requests will be send to port :4000 and :4001 so as
> to load balance the request. But I noticed that for all packets are sent
> through 4000 only. ( I have tunnels created from my machine to ATS machines
> in two other machines. :4000 port is opened to ATS in one machine and :4001
> port is opened to ATS is another machine.)  What could be the problem and
> how do I debug this issue further ?
>
>
>
> Thanks
> ~S
>
>
>
> --
> View this message in context: http://apache-traffic-server.24303.n7.nabble.com/Help-regarding-parent-config-tp3074.html
> Sent from the Apache Traffic Server mailing list archive at Nabble.com.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Help regarding parent.config

gksalil
Hello

   I tried with comma also but it didn;t help.

Thanks
~S
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Help regarding parent.config

Jeremy Payne
maybe try setting debug and restarting ATS.. see if ATS complains about a reconfigured parent config, or related upon startup.

traffic_ctl config set proxy.config.diags.debug.tags 'http.*|cache.*|'

traffic_ctl config set proxy.config.diags.debug.enabled 1

On Fri, May 19, 2017 at 3:04 AM, gksalil <[hidden email]> wrote:
Hello

   I tried with comma also but it didn;t help.

Thanks
~S



--
View this message in context: http://apache-traffic-server.24303.n7.nabble.com/Help-regarding-parent-config-tp3074p3107.html
Sent from the Apache Traffic Server mailing list archive at Nabble.com.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Help regarding parent.config

Jeremy Payne
*misconfigured.. not reconfigured.. :-)

On Fri, May 19, 2017 at 11:52 AM, Jeremy Payne <[hidden email]> wrote:
maybe try setting debug and restarting ATS.. see if ATS complains about a reconfigured parent config, or related upon startup.

traffic_ctl config set proxy.config.diags.debug.tags 'http.*|cache.*|'

traffic_ctl config set proxy.config.diags.debug.enabled 1

On Fri, May 19, 2017 at 3:04 AM, gksalil <[hidden email]> wrote:
Hello

   I tried with comma also but it didn;t help.

Thanks
~S



--
View this message in context: http://apache-traffic-server.24303.n7.nabble.com/Help-regarding-parent-config-tp3074p3107.html
Sent from the Apache Traffic Server mailing list archive at Nabble.com.


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Help regarding parent.config

gksalil
In reply to this post by Jeremy Payne

I have been using traffic server as reverse proxy. There round robin in parent config works perfectly. In forward proxy setup only I observed  this issue.
Thanks and regards
~S


On 19 May 2017 10:22 p.m., "Jeremy Payne" <[hidden email]> wrote:
maybe try setting debug and restarting ATS.. see if ATS complains about a reconfigured parent config, or related upon startup.

traffic_ctl config set proxy.config.diags.debug.tags 'http.*|cache.*|'

traffic_ctl config set proxy.config.diags.debug.enabled 1

On Fri, May 19, 2017 at 3:04 AM, gksalil <[hidden email]> wrote:
Hello

   I tried with comma also but it didn;t help.

Thanks
~S



--
View this message in context: http://apache-traffic-server.24303.n7.nabble.com/Help-regarding-parent-config-tp3074p3107.html
Sent from the Apache Traffic Server mailing list archive at Nabble.com.




If you reply to this email, your message will be added to the discussion below:
http://apache-traffic-server.24303.n7.nabble.com/Help-regarding-parent-config-tp3074p3108.html
To unsubscribe from Help regarding parent.config, click here.
NAML
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Help regarding parent.config

gksalil
In reply to this post by Jeremy Payne
I checked the logs - but no error messages found with respect to misconfigured parent.config.
I tried with both semi colon and comma.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Help regarding parent.config

Miles Libbey
Perhaps a silly question, but do you have 
CONFIG proxy.config.http.parent_proxy_routing_enable INT 1
set in records.config?

miles


On Friday, May 19, 2017 4:36 PM, gksalil <[hidden email]> wrote:


I checked the logs - but no error messages found with respect to
misconfigured parent.config.
I tried with both semi colon and comma.



--
View this message in context: http://apache-traffic-server.24303.n7.nabble.com/Help-regarding-parent-config-tp3074p3111.html

Sent from the Apache Traffic Server mailing list archive at Nabble.com.


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Help regarding parent.config

gksalil

Today I don't have access to the machines. Will check it on Monday. But I am sure that parent.config is considered for routing. Hence that parameter should be set.


On 20 May 2017 5:33 a.m., "Miles Libbey" <[hidden email]> wrote:
Perhaps a silly question, but do you have 
CONFIG proxy.config.http.parent_proxy_routing_enable INT 1
set in records.config?

miles


On Friday, May 19, 2017 4:36 PM, gksalil <[hidden email]> wrote:


I checked the logs - but no error messages found with respect to
misconfigured parent.config.
I tried with both semi colon and comma.



--
View this message in context: http://apache-traffic-server.24303.n7.nabble.com/Help-regarding-parent-config-tp3074p3111.html

Sent from the Apache Traffic Server mailing list archive at Nabble.com.


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Help regarding parent.config

John Rushford
In reply to this post by gksalil
Gk,

use a semicolon separated list and use round_robin=strict.   round_robin == true selects the parent by client ip address, modulo.  See this documentation link:  https://docs.trafficserver.apache.org/en/latest/admin-guide/files/parent.config.en.html?highlight=parent%20config#std:configfile-parent.config

On Thu, Apr 20, 2017 at 11:02 PM, gksalil <[hidden email]> wrote:
Hello

   I have the following entry in parent.config.

dest_domain=.     parent="127.0.0.1:4000; 127.0.0.1:4001"
round_robin=true



  I expect the alternate requests will be send to port :4000 and :4001 so as
to load balance the request. But I noticed that for all packets are sent
through 4000 only. ( I have tunnels created from my machine to ATS machines
in two other machines. :4000 port is opened to ATS in one machine and :4001
port is opened to ATS is another machine.)  What could be the problem and
how do I debug this issue further ?



Thanks
~S



--
View this message in context: http://apache-traffic-server.24303.n7.nabble.com/Help-regarding-parent-config-tp3074.html
Sent from the Apache Traffic Server mailing list archive at Nabble.com.



--
John Rushford
[hidden email]
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Help regarding parent.config

gksalil

I tried with round robin strict also without a success :-(


On 20 May 2017 5:56 p.m., "John Rushford [via Apache Traffic Server]" <[hidden email]> wrote:
Gk,

use a semicolon separated list and use round_robin=strict.   round_robin == true selects the parent by client ip address, modulo.  See this documentation link:  https://docs.trafficserver.apache.org/en/latest/admin-guide/files/parent.config.en.html?highlight=parent%20config#std:configfile-parent.config

On Thu, Apr 20, 2017 at 11:02 PM, gksalil <[hidden email]> wrote:
Hello

   I have the following entry in parent.config.

dest_domain=.     parent="127.0.0.1:4000; 127.0.0.1:4001"
round_robin=true



  I expect the alternate requests will be send to port :4000 and :4001 so as
to load balance the request. But I noticed that for all packets are sent
through 4000 only. ( I have tunnels created from my machine to ATS machines
in two other machines. :4000 port is opened to ATS in one machine and :4001
port is opened to ATS is another machine.)  What could be the problem and
how do I debug this issue further ?



Thanks
~S



--
View this message in context: http://apache-traffic-server.24303.n7.nabble.com/Help-regarding-parent-config-tp3074.html
Sent from the Apache Traffic Server mailing list archive at Nabble.com.



--
John Rushford
[hidden email]



If you reply to this email, your message will be added to the discussion below:
http://apache-traffic-server.24303.n7.nabble.com/Help-regarding-parent-config-tp3074p3114.html
To unsubscribe from Help regarding parent.config, click here.
NAML
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Help regarding parent.config

Jeremy Payne
pastebin your exact parent.config and records.config...  sanitize as needed..

also, which version of ATS are you using ?



On Sat, May 20, 2017 at 4:19 PM, gksalil <[hidden email]> wrote:

I tried with round robin strict also without a success :-(


On 20 May 2017 5:56 p.m., "John Rushford [via Apache Traffic Server]" <[hidden email]> wrote:
Gk,

use a semicolon separated list and use round_robin=strict.   round_robin == true selects the parent by client ip address, modulo.  See this documentation link:  https://docs.trafficserver.apache.org/en/latest/admin-guide/files/parent.config.en.html?highlight=parent%20config#std:configfile-parent.config

On Thu, Apr 20, 2017 at 11:02 PM, gksalil <[hidden email]> wrote:
Hello

   I have the following entry in parent.config.

dest_domain=.     parent="127.0.0.1:4000; 127.0.0.1:4001"
round_robin=true



  I expect the alternate requests will be send to port :4000 and :4001 so as
to load balance the request. But I noticed that for all packets are sent
through 4000 only. ( I have tunnels created from my machine to ATS machines
in two other machines. :4000 port is opened to ATS in one machine and :4001
port is opened to ATS is another machine.)  What could be the problem and
how do I debug this issue further ?



Thanks
~S



--
View this message in context: http://apache-traffic-server.24303.n7.nabble.com/Help-regarding-parent-config-tp3074.html
Sent from the Apache Traffic Server mailing list archive at Nabble.com.



--
John Rushford
[hidden email]



If you reply to this email, your message will be added to the discussion below:
http://apache-traffic-server.24303.n7.nabble.com/Help-regarding-parent-config-tp3074p3114.html
To unsubscribe from Help regarding parent.config, click here.
NAML


View this message in context: Re: Help regarding parent.config

Sent from the Apache Traffic Server mailing list archive at Nabble.com.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Help regarding parent.config

gksalil
Hello Jeremy

  I am sending this files to you directly as I do not want to post the configuration files in the public domain.

  Hope you understand

My parent.config is having the below line only


dest_domain=.     parent="127.0.0.1:4001, 127.0.0.1:4000"     round_robin=true


I tried with round_robin=true and round_robin=strict - both didn't work !

Thanks
Salil

On 21 May 2017 at 21:30, Jeremy Payne [via Apache Traffic Server] <[hidden email]> wrote:
pastebin your exact parent.config and records.config...  sanitize as needed..

also, which version of ATS are you using ?



On Sat, May 20, 2017 at 4:19 PM, gksalil <[hidden email]> wrote:

I tried with round robin strict also without a success :-(


On 20 May 2017 5:56 p.m., "John Rushford [via Apache Traffic Server]" <[hidden email]> wrote:
Gk,

use a semicolon separated list and use round_robin=strict.   round_robin == true selects the parent by client ip address, modulo.  See this documentation link:  https://docs.trafficserver.apache.org/en/latest/admin-guide/files/parent.config.en.html?highlight=parent%20config#std:configfile-parent.config

On Thu, Apr 20, 2017 at 11:02 PM, gksalil <[hidden email]> wrote:
Hello

   I have the following entry in parent.config.

dest_domain=.     parent="127.0.0.1:4000; 127.0.0.1:4001"
round_robin=true



  I expect the alternate requests will be send to port :4000 and :4001 so as
to load balance the request. But I noticed that for all packets are sent
through 4000 only. ( I have tunnels created from my machine to ATS machines
in two other machines. :4000 port is opened to ATS in one machine and :4001
port is opened to ATS is another machine.)  What could be the problem and
how do I debug this issue further ?



Thanks
~S



--
View this message in context: http://apache-traffic-server.24303.n7.nabble.com/Help-regarding-parent-config-tp3074.html
Sent from the Apache Traffic Server mailing list archive at Nabble.com.



--
John Rushford
[hidden email]



If you reply to this email, your message will be added to the discussion below:
http://apache-traffic-server.24303.n7.nabble.com/Help-regarding-parent-config-tp3074p3114.html
To unsubscribe from Help regarding parent.config, click here.
NAML


View this message in context: Re: Help regarding parent.config

Sent from the Apache Traffic Server mailing list archive at Nabble.com.




If you reply to this email, your message will be added to the discussion below:
http://apache-traffic-server.24303.n7.nabble.com/Help-regarding-parent-config-tp3074p3116.html
To unsubscribe from Help regarding parent.config, click here.
NAML


records.config (23K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Help regarding parent.config

gksalil
:-)

I didn't want to send the configuration file in the public forum. But it came here !!!! Not an issue I have sanitised the file.

Thanks
~S
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Help regarding parent.config

gksalil
In reply to this post by Jeremy Payne
My ATS version is 6.0
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Help regarding parent.config

Jeremy Payne
On your local cache are your 'parent' servers responding to requests ?




On Mon, May 22, 2017 at 11:10 AM, gksalil <[hidden email]> wrote:
My ATS version is 6.0



--
View this message in context: http://apache-traffic-server.24303.n7.nabble.com/Help-regarding-parent-config-tp3074p3119.html
Sent from the Apache Traffic Server mailing list archive at Nabble.com.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Help regarding parent.config

John Rushford
In reply to this post by gksalil
~S,

What version of trafficserver are you using?  I ran some tests here on a machine running trafficserver  6.2.1 after setting up two local ssh forwarding tunnels listening on ports 4000 and 4001.  With this parent.config, all is working as expected where transactions strictly round robin between ports 4000 and 4001.  Here is my config:

dest_domain=. parent="127.0.0.1:4000; 127.0.0.1:4001" round_robin=strict

In records.config set these two config parameters to view parent selection debug logging in traffic.out

 CONFIG proxy.config.diags.debug.enabled INT 1
 CONFIG proxy.config.diags.debug.tags STRING parent_select



On Thu, Apr 20, 2017 at 11:02 PM, gksalil <[hidden email]> wrote:
Hello

   I have the following entry in parent.config.

dest_domain=.     parent="127.0.0.1:4000; 127.0.0.1:4001"
round_robin=true



  I expect the alternate requests will be send to port :4000 and :4001 so as
to load balance the request. But I noticed that for all packets are sent
through 4000 only. ( I have tunnels created from my machine to ATS machines
in two other machines. :4000 port is opened to ATS in one machine and :4001
port is opened to ATS is another machine.)  What could be the problem and
how do I debug this issue further ?



Thanks
~S



--
View this message in context: http://apache-traffic-server.24303.n7.nabble.com/Help-regarding-parent-config-tp3074.html
Sent from the Apache Traffic Server mailing list archive at Nabble.com.



--
John Rushford
[hidden email]
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Help regarding parent.config

John Rushford
I did see that you're running 6.0.  Here is some of my debug logging, you can see that round_robin=strict is working for me:

[May 22 16:24:24.599] Server {0x2b035992b700} DEBUG: (parent_select) Chosen parent = 127.0.0.1.4000
[May 22 16:24:29.546] Server {0x2b0359b2f700} DEBUG: (parent_select) Chosen parent = 127.0.0.1.4001
[May 22 16:24:31.746] Server {0x2b0359c31700} DEBUG: (parent_select) Chosen parent = 127.0.0.1.4000
[May 22 16:24:34.107] Server {0x2b0359d33700} DEBUG: (parent_select) Chosen parent = 127.0.0.1.4001
[May 22 16:24:35.889] Server {0x2b0359e35700} DEBUG: (parent_select) Chosen parent = 127.0.0.1.4000
[May 22 16:24:40.751] Server {0x2b035a039700} DEBUG: (parent_select) Chosen parent = 127.0.0.1.4001
[May 22 16:24:45.728] Server {0x2b035a13b700} DEBUG: (parent_select) Chosen parent = 127.0.0.1.4000
[May 22 16:24:49.621] Server {0x2b035a33f700} DEBUG: (parent_select) Chosen parent = 127.0.0.1.4001
[May 22 16:24:56.086] Server {0x2b0358a0d700} DEBUG: (parent_select) Chosen parent = 127.0.0.1.4000
[May 22 16:25:02.568] Server {0x2b0358c11700} DEBUG: (parent_select) Chosen parent = 127.0.0.1.4001
[May 22 16:25:06.875] Server {0x2b0358e15700} DEBUG: (parent_select) Chosen parent = 127.0.0.1.4000
[May 22 16:25:11.923] Server {0x2b0358f17700} DEBUG: (parent_select) Chosen parent = 127.0.0.1.4001
[May 22 16:25:16.307] Server {0x2b035911b700} DEBUG: (parent_select) Chosen parent = 127.0.0.1.4000
[May 22 16:25:21.246] Server {0x2b035921d700} DEBUG: (parent_select) Chosen parent = 127.0.0.1.4001
[May 22 16:25:26.474] Server {0x2b0359421700} DEBUG: (parent_select) Chosen parent = 127.0.0.1.4000
[May 22 16:25:28.707] Server {0x2b0359523700} DEBUG: (parent_select) Chosen parent = 127.0.0.1.4001
[May 22 16:25:31.966] Server {0x2b0359625700} DEBUG: (parent_select) Chosen parent = 127.0.0.1.4000
[May 22 16:25:37.348] Server {0x2b0359829700} DEBUG: (parent_select) Chosen parent = 127.0.0.1.4001
[May 22 16:25:41.974] Server {0x2b035992b700} DEBUG: (parent_select) Chosen parent = 127.0.0.1.4000
[May 22 16:25:48.653] Server {0x2b0359b2f700} DEBUG: (parent_select) Chosen parent = 127.0.0.1.4001

On Mon, May 22, 2017 at 10:35 AM, John Rushford <[hidden email]> wrote:
~S,

What version of trafficserver are you using?  I ran some tests here on a machine running trafficserver  6.2.1 after setting up two local ssh forwarding tunnels listening on ports 4000 and 4001.  With this parent.config, all is working as expected where transactions strictly round robin between ports 4000 and 4001.  Here is my config:

dest_domain=. parent="127.0.0.1:4000; 127.0.0.1:4001" round_robin=strict

In records.config set these two config parameters to view parent selection debug logging in traffic.out

 CONFIG proxy.config.diags.debug.enabled INT 1
 CONFIG proxy.config.diags.debug.tags STRING parent_select



On Thu, Apr 20, 2017 at 11:02 PM, gksalil <[hidden email]> wrote:
Hello

   I have the following entry in parent.config.

dest_domain=.     parent="127.0.0.1:4000; 127.0.0.1:4001"
round_robin=true



  I expect the alternate requests will be send to port :4000 and :4001 so as
to load balance the request. But I noticed that for all packets are sent
through 4000 only. ( I have tunnels created from my machine to ATS machines
in two other machines. :4000 port is opened to ATS in one machine and :4001
port is opened to ATS is another machine.)  What could be the problem and
how do I debug this issue further ?



Thanks
~S



--
View this message in context: http://apache-traffic-server.24303.n7.nabble.com/Help-regarding-parent-config-tp3074.html
Sent from the Apache Traffic Server mailing list archive at Nabble.com.



--
John Rushford
[hidden email]



--
John Rushford
[hidden email]
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Help regarding parent.config

gksalil
In reply to this post by Jeremy Payne
Yes .. it is responding to the curl command locally for both the ports 4000 and 4001.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Help regarding parent.config

gksalil
In reply to this post by John Rushford
Hello

  Thanks for all the help. I think with round-robin=strict it worked. I guess I might not have restarted traffic server when I changed the cofig file. My apologies.

Thanks
~S
Loading...