You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@trafficserver.apache.org by Veiko Kukk <ve...@gmail.com> on 2018/03/28 15:45:34 UTC

Parent initially marked as down

Hi,

I'm trying to get ATS 7.1.2 working with single parent and failover to
origin.
"clients" make request against ATS internally with plain http, with
remap.config we map those requests to https.
regex_map http://storage.(.*).cloud.ovh.net https://storage.$1.cloud.ovh.net
@plugin=cachekey.so @pparam=--remove-all-params=true
@pparam=--static-prefix=cloud_ovh_net

parent.config

dest_domain=. parent="192.168.1.52:3128" go_direct=false

I've set go_direct to false as otherwise request would go directly to
origin.

From diags.log, when starting up ATS:
[Mar 28 15:32:21.720] Server {0x2ae732c203c0} NOTE: traffic server running
[Mar 28 15:32:21.826] Server {0x2ae73751e700} NOTE: cache enabled
[Mar 28 15:32:22.735] Server {0x2ae73751e700} NOTE: Parent initially marked
as down 192.168.1.52:3128
[Mar 28 15:32:47.695] Server {0x2ae73751e700} NOTE: Failure threshold met
failcount:10 >= threshold:10, http parent proxy 192.168.1.52:3128 marked
down

Why?

# telnet 192.168.1.52 3128
Trying 192.168.1.52...
Connected to 192.168.1.52.
Escape character is '^]'.

There is proper working network connection between child and parent ATS.

On parent access.log:

1522251150.831 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/- text/html
1522251150.832 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/- text/html
1522251150.832 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/- text/html
1522251150.833 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/- text/html
1522251152.789 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/- text/html
1522251152.790 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/- text/html
1522251152.791 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/- text/html
1522251152.791 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/- text/html
1522251157.344 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/- text/html
1522251157.345 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/- text/html
1522251157.345 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/- text/html
1522251157.346 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/- text/html
1522251167.693 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/- text/html
1522251167.694 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/- text/html
1522251167.694 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/- text/html
1522251167.695 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/- text/htm

Where does this come from??
There is and should never be anything at "/" on parent.
I assume this is internal health check on child that tries to request "/"
on parent and since it's obviously failing, will mark parent down and never
use it.

How to change how parent is tested? I found nothing regarding to parent
health check in documentation.

Thanks,
Veiko

Re: Parent initially marked as down

Posted by Veiko Kukk <ve...@gmail.com>.
Answering myself.
URL remapping per parent does not seem to be possible.
Nor is it poissible to define whether parent should be connected via SSL on
in plain text.

Veiko


2018-03-29 11:25 GMT+03:00 Veiko Kukk <ve...@gmail.com>:

> Hi,
>
> I think that suggestion you had was righ. Just changing remap.config to
> not rewrite http to https made parent access working.
>
> Now I need to find a way to change remap so that if it's sent to parent,
> its http and when sent directly to origin, it would be https.
>
> How would this be possible?
>
> Veiko
>
>
> 2018-03-28 19:49 GMT+03:00 Jeremy Payne <jp...@gmail.com>:
>
>> Unless things have changed, the scheme defined in the remapped URL is
>> the scheme used when polling the parent server.
>> If you enable debug, you'll see the scheme sent to the parent.
>> A packet trace will also reveal the same.
>>
>>
>>
>> On Wed, Mar 28, 2018 at 11:38 AM, Veiko Kukk <ve...@gmail.com>
>> wrote:
>> > Hi,
>> >
>> > No, only http. Connections to origin (via Internet) are made with
>> https, but
>> > internally we only do http (cheaper, simpler).
>> >
>> > Why do you think, parent logs about child connection are indicating
>> CONNECT
>> > (https)?
>> >
>> > 1522251150.831 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
>> text/htm
>> >
>> > Veiko
>> >
>> >
>> > 2018-03-28 19:01 GMT+03:00 Jeremy Payne <jp...@gmail.com>:
>> >>
>> >> I think the issue is the child is sending a https request to the
>> parent.
>> >> Does the parent support https on port 3128 ?
>> >>
>> >> On Wed, Mar 28, 2018 at 10:45 AM, Veiko Kukk <ve...@gmail.com>
>> wrote:
>> >> > Hi,
>> >> >
>> >> > I'm trying to get ATS 7.1.2 working with single parent and failover
>> to
>> >> > origin.
>> >> > "clients" make request against ATS internally with plain http, with
>> >> > remap.config we map those requests to https.
>> >> > regex_map http://storage.(.*).cloud.ovh.net
>> >> > https://storage.$1.cloud.ovh.net
>> >> > @plugin=cachekey.so @pparam=--remove-all-params=true
>> >> > @pparam=--static-prefix=cloud_ovh_net
>> >> >
>> >> > parent.config
>> >> >
>> >> > dest_domain=. parent="192.168.1.52:3128" go_direct=false
>> >> >
>> >> > I've set go_direct to false as otherwise request would go directly to
>> >> > origin.
>> >> >
>> >> > From diags.log, when starting up ATS:
>> >> > [Mar 28 15:32:21.720] Server {0x2ae732c203c0} NOTE: traffic server
>> >> > running
>> >> > [Mar 28 15:32:21.826] Server {0x2ae73751e700} NOTE: cache enabled
>> >> > [Mar 28 15:32:22.735] Server {0x2ae73751e700} NOTE: Parent initially
>> >> > marked
>> >> > as down 192.168.1.52:3128
>> >> > [Mar 28 15:32:47.695] Server {0x2ae73751e700} NOTE: Failure threshold
>> >> > met
>> >> > failcount:10 >= threshold:10, http parent proxy 192.168.1.52:3128
>> marked
>> >> > down
>> >> >
>> >> > Why?
>> >> >
>> >> > # telnet 192.168.1.52 3128
>> >> > Trying 192.168.1.52...
>> >> > Connected to 192.168.1.52.
>> >> > Escape character is '^]'.
>> >> >
>> >> > There is proper working network connection between child and parent
>> ATS.
>> >> >
>> >> > On parent access.log:
>> >> >
>> >> > 1522251150.831 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
>> >> > text/html
>> >> > 1522251150.832 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
>> >> > text/html
>> >> > 1522251150.832 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
>> >> > text/html
>> >> > 1522251150.833 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
>> >> > text/html
>> >> > 1522251152.789 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
>> >> > text/html
>> >> > 1522251152.790 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
>> >> > text/html
>> >> > 1522251152.791 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
>> >> > text/html
>> >> > 1522251152.791 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
>> >> > text/html
>> >> > 1522251157.344 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
>> >> > text/html
>> >> > 1522251157.345 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
>> >> > text/html
>> >> > 1522251157.345 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
>> >> > text/html
>> >> > 1522251157.346 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
>> >> > text/html
>> >> > 1522251167.693 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
>> >> > text/html
>> >> > 1522251167.694 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
>> >> > text/html
>> >> > 1522251167.694 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
>> >> > text/html
>> >> > 1522251167.695 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
>> >> > text/htm
>> >> >
>> >> > Where does this come from??
>> >> > There is and should never be anything at "/" on parent.
>> >> > I assume this is internal health check on child that tries to request
>> >> > "/" on
>> >> > parent and since it's obviously failing, will mark parent down and
>> never
>> >> > use
>> >> > it.
>> >> >
>> >> > How to change how parent is tested? I found nothing regarding to
>> parent
>> >> > health check in documentation.
>> >> >
>> >> > Thanks,
>> >> > Veiko
>> >> >
>> >
>> >
>>
>
>

Re: Parent initially marked as down

Posted by Veiko Kukk <ve...@gmail.com>.
Hi,

I think that suggestion you had was righ. Just changing remap.config to not
rewrite http to https made parent access working.

Now I need to find a way to change remap so that if it's sent to parent,
its http and when sent directly to origin, it would be https.

How would this be possible?

Veiko


2018-03-28 19:49 GMT+03:00 Jeremy Payne <jp...@gmail.com>:

> Unless things have changed, the scheme defined in the remapped URL is
> the scheme used when polling the parent server.
> If you enable debug, you'll see the scheme sent to the parent.
> A packet trace will also reveal the same.
>
>
>
> On Wed, Mar 28, 2018 at 11:38 AM, Veiko Kukk <ve...@gmail.com> wrote:
> > Hi,
> >
> > No, only http. Connections to origin (via Internet) are made with https,
> but
> > internally we only do http (cheaper, simpler).
> >
> > Why do you think, parent logs about child connection are indicating
> CONNECT
> > (https)?
> >
> > 1522251150.831 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
> text/htm
> >
> > Veiko
> >
> >
> > 2018-03-28 19:01 GMT+03:00 Jeremy Payne <jp...@gmail.com>:
> >>
> >> I think the issue is the child is sending a https request to the parent.
> >> Does the parent support https on port 3128 ?
> >>
> >> On Wed, Mar 28, 2018 at 10:45 AM, Veiko Kukk <ve...@gmail.com>
> wrote:
> >> > Hi,
> >> >
> >> > I'm trying to get ATS 7.1.2 working with single parent and failover to
> >> > origin.
> >> > "clients" make request against ATS internally with plain http, with
> >> > remap.config we map those requests to https.
> >> > regex_map http://storage.(.*).cloud.ovh.net
> >> > https://storage.$1.cloud.ovh.net
> >> > @plugin=cachekey.so @pparam=--remove-all-params=true
> >> > @pparam=--static-prefix=cloud_ovh_net
> >> >
> >> > parent.config
> >> >
> >> > dest_domain=. parent="192.168.1.52:3128" go_direct=false
> >> >
> >> > I've set go_direct to false as otherwise request would go directly to
> >> > origin.
> >> >
> >> > From diags.log, when starting up ATS:
> >> > [Mar 28 15:32:21.720] Server {0x2ae732c203c0} NOTE: traffic server
> >> > running
> >> > [Mar 28 15:32:21.826] Server {0x2ae73751e700} NOTE: cache enabled
> >> > [Mar 28 15:32:22.735] Server {0x2ae73751e700} NOTE: Parent initially
> >> > marked
> >> > as down 192.168.1.52:3128
> >> > [Mar 28 15:32:47.695] Server {0x2ae73751e700} NOTE: Failure threshold
> >> > met
> >> > failcount:10 >= threshold:10, http parent proxy 192.168.1.52:3128
> marked
> >> > down
> >> >
> >> > Why?
> >> >
> >> > # telnet 192.168.1.52 3128
> >> > Trying 192.168.1.52...
> >> > Connected to 192.168.1.52.
> >> > Escape character is '^]'.
> >> >
> >> > There is proper working network connection between child and parent
> ATS.
> >> >
> >> > On parent access.log:
> >> >
> >> > 1522251150.831 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
> >> > text/html
> >> > 1522251150.832 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
> >> > text/html
> >> > 1522251150.832 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
> >> > text/html
> >> > 1522251150.833 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
> >> > text/html
> >> > 1522251152.789 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
> >> > text/html
> >> > 1522251152.790 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
> >> > text/html
> >> > 1522251152.791 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
> >> > text/html
> >> > 1522251152.791 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
> >> > text/html
> >> > 1522251157.344 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
> >> > text/html
> >> > 1522251157.345 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
> >> > text/html
> >> > 1522251157.345 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
> >> > text/html
> >> > 1522251157.346 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
> >> > text/html
> >> > 1522251167.693 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
> >> > text/html
> >> > 1522251167.694 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
> >> > text/html
> >> > 1522251167.694 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
> >> > text/html
> >> > 1522251167.695 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
> >> > text/htm
> >> >
> >> > Where does this come from??
> >> > There is and should never be anything at "/" on parent.
> >> > I assume this is internal health check on child that tries to request
> >> > "/" on
> >> > parent and since it's obviously failing, will mark parent down and
> never
> >> > use
> >> > it.
> >> >
> >> > How to change how parent is tested? I found nothing regarding to
> parent
> >> > health check in documentation.
> >> >
> >> > Thanks,
> >> > Veiko
> >> >
> >
> >
>

Re: Parent initially marked as down

Posted by Jeremy Payne <jp...@gmail.com>.
Unless things have changed, the scheme defined in the remapped URL is
the scheme used when polling the parent server.
If you enable debug, you'll see the scheme sent to the parent.
A packet trace will also reveal the same.



On Wed, Mar 28, 2018 at 11:38 AM, Veiko Kukk <ve...@gmail.com> wrote:
> Hi,
>
> No, only http. Connections to origin (via Internet) are made with https, but
> internally we only do http (cheaper, simpler).
>
> Why do you think, parent logs about child connection are indicating CONNECT
> (https)?
>
> 1522251150.831 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/- text/htm
>
> Veiko
>
>
> 2018-03-28 19:01 GMT+03:00 Jeremy Payne <jp...@gmail.com>:
>>
>> I think the issue is the child is sending a https request to the parent.
>> Does the parent support https on port 3128 ?
>>
>> On Wed, Mar 28, 2018 at 10:45 AM, Veiko Kukk <ve...@gmail.com> wrote:
>> > Hi,
>> >
>> > I'm trying to get ATS 7.1.2 working with single parent and failover to
>> > origin.
>> > "clients" make request against ATS internally with plain http, with
>> > remap.config we map those requests to https.
>> > regex_map http://storage.(.*).cloud.ovh.net
>> > https://storage.$1.cloud.ovh.net
>> > @plugin=cachekey.so @pparam=--remove-all-params=true
>> > @pparam=--static-prefix=cloud_ovh_net
>> >
>> > parent.config
>> >
>> > dest_domain=. parent="192.168.1.52:3128" go_direct=false
>> >
>> > I've set go_direct to false as otherwise request would go directly to
>> > origin.
>> >
>> > From diags.log, when starting up ATS:
>> > [Mar 28 15:32:21.720] Server {0x2ae732c203c0} NOTE: traffic server
>> > running
>> > [Mar 28 15:32:21.826] Server {0x2ae73751e700} NOTE: cache enabled
>> > [Mar 28 15:32:22.735] Server {0x2ae73751e700} NOTE: Parent initially
>> > marked
>> > as down 192.168.1.52:3128
>> > [Mar 28 15:32:47.695] Server {0x2ae73751e700} NOTE: Failure threshold
>> > met
>> > failcount:10 >= threshold:10, http parent proxy 192.168.1.52:3128 marked
>> > down
>> >
>> > Why?
>> >
>> > # telnet 192.168.1.52 3128
>> > Trying 192.168.1.52...
>> > Connected to 192.168.1.52.
>> > Escape character is '^]'.
>> >
>> > There is proper working network connection between child and parent ATS.
>> >
>> > On parent access.log:
>> >
>> > 1522251150.831 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
>> > text/html
>> > 1522251150.832 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
>> > text/html
>> > 1522251150.832 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
>> > text/html
>> > 1522251150.833 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
>> > text/html
>> > 1522251152.789 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
>> > text/html
>> > 1522251152.790 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
>> > text/html
>> > 1522251152.791 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
>> > text/html
>> > 1522251152.791 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
>> > text/html
>> > 1522251157.344 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
>> > text/html
>> > 1522251157.345 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
>> > text/html
>> > 1522251157.345 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
>> > text/html
>> > 1522251157.346 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
>> > text/html
>> > 1522251167.693 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
>> > text/html
>> > 1522251167.694 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
>> > text/html
>> > 1522251167.694 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
>> > text/html
>> > 1522251167.695 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
>> > text/htm
>> >
>> > Where does this come from??
>> > There is and should never be anything at "/" on parent.
>> > I assume this is internal health check on child that tries to request
>> > "/" on
>> > parent and since it's obviously failing, will mark parent down and never
>> > use
>> > it.
>> >
>> > How to change how parent is tested? I found nothing regarding to parent
>> > health check in documentation.
>> >
>> > Thanks,
>> > Veiko
>> >
>
>

Re: Parent initially marked as down

Posted by Veiko Kukk <ve...@gmail.com>.
Hi,

No, only http. Connections to origin (via Internet) are made with https,
but internally we only do http (cheaper, simpler).

Why do you think, parent logs about child connection are indicating CONNECT
(https)?

1522251150.831 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/- text/htm

Veiko


2018-03-28 19:01 GMT+03:00 Jeremy Payne <jp...@gmail.com>:

> I think the issue is the child is sending a https request to the parent.
> Does the parent support https on port 3128 ?
>
> On Wed, Mar 28, 2018 at 10:45 AM, Veiko Kukk <ve...@gmail.com> wrote:
> > Hi,
> >
> > I'm trying to get ATS 7.1.2 working with single parent and failover to
> > origin.
> > "clients" make request against ATS internally with plain http, with
> > remap.config we map those requests to https.
> > regex_map http://storage.(.*).cloud.ovh.net https://storage.$
> 1.cloud.ovh.net
> > @plugin=cachekey.so @pparam=--remove-all-params=true
> > @pparam=--static-prefix=cloud_ovh_net
> >
> > parent.config
> >
> > dest_domain=. parent="192.168.1.52:3128" go_direct=false
> >
> > I've set go_direct to false as otherwise request would go directly to
> > origin.
> >
> > From diags.log, when starting up ATS:
> > [Mar 28 15:32:21.720] Server {0x2ae732c203c0} NOTE: traffic server
> running
> > [Mar 28 15:32:21.826] Server {0x2ae73751e700} NOTE: cache enabled
> > [Mar 28 15:32:22.735] Server {0x2ae73751e700} NOTE: Parent initially
> marked
> > as down 192.168.1.52:3128
> > [Mar 28 15:32:47.695] Server {0x2ae73751e700} NOTE: Failure threshold met
> > failcount:10 >= threshold:10, http parent proxy 192.168.1.52:3128 marked
> > down
> >
> > Why?
> >
> > # telnet 192.168.1.52 3128
> > Trying 192.168.1.52...
> > Connected to 192.168.1.52.
> > Escape character is '^]'.
> >
> > There is proper working network connection between child and parent ATS.
> >
> > On parent access.log:
> >
> > 1522251150.831 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
> text/html
> > 1522251150.832 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
> text/html
> > 1522251150.832 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
> text/html
> > 1522251150.833 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
> text/html
> > 1522251152.789 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
> text/html
> > 1522251152.790 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
> text/html
> > 1522251152.791 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
> text/html
> > 1522251152.791 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
> text/html
> > 1522251157.344 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
> text/html
> > 1522251157.345 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
> text/html
> > 1522251157.345 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
> text/html
> > 1522251157.346 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
> text/html
> > 1522251167.693 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
> text/html
> > 1522251167.694 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
> text/html
> > 1522251167.694 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
> text/html
> > 1522251167.695 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/-
> text/htm
> >
> > Where does this come from??
> > There is and should never be anything at "/" on parent.
> > I assume this is internal health check on child that tries to request
> "/" on
> > parent and since it's obviously failing, will mark parent down and never
> use
> > it.
> >
> > How to change how parent is tested? I found nothing regarding to parent
> > health check in documentation.
> >
> > Thanks,
> > Veiko
> >
>

Re: Parent initially marked as down

Posted by Jeremy Payne <jp...@gmail.com>.
I think the issue is the child is sending a https request to the parent.
Does the parent support https on port 3128 ?

On Wed, Mar 28, 2018 at 10:45 AM, Veiko Kukk <ve...@gmail.com> wrote:
> Hi,
>
> I'm trying to get ATS 7.1.2 working with single parent and failover to
> origin.
> "clients" make request against ATS internally with plain http, with
> remap.config we map those requests to https.
> regex_map http://storage.(.*).cloud.ovh.net https://storage.$1.cloud.ovh.net
> @plugin=cachekey.so @pparam=--remove-all-params=true
> @pparam=--static-prefix=cloud_ovh_net
>
> parent.config
>
> dest_domain=. parent="192.168.1.52:3128" go_direct=false
>
> I've set go_direct to false as otherwise request would go directly to
> origin.
>
> From diags.log, when starting up ATS:
> [Mar 28 15:32:21.720] Server {0x2ae732c203c0} NOTE: traffic server running
> [Mar 28 15:32:21.826] Server {0x2ae73751e700} NOTE: cache enabled
> [Mar 28 15:32:22.735] Server {0x2ae73751e700} NOTE: Parent initially marked
> as down 192.168.1.52:3128
> [Mar 28 15:32:47.695] Server {0x2ae73751e700} NOTE: Failure threshold met
> failcount:10 >= threshold:10, http parent proxy 192.168.1.52:3128 marked
> down
>
> Why?
>
> # telnet 192.168.1.52 3128
> Trying 192.168.1.52...
> Connected to 192.168.1.52.
> Escape character is '^]'.
>
> There is proper working network connection between child and parent ATS.
>
> On parent access.log:
>
> 1522251150.831 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/- text/html
> 1522251150.832 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/- text/html
> 1522251150.832 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/- text/html
> 1522251150.833 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/- text/html
> 1522251152.789 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/- text/html
> 1522251152.790 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/- text/html
> 1522251152.791 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/- text/html
> 1522251152.791 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/- text/html
> 1522251157.344 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/- text/html
> 1522251157.345 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/- text/html
> 1522251157.345 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/- text/html
> 1522251157.346 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/- text/html
> 1522251167.693 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/- text/html
> 1522251167.694 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/- text/html
> 1522251167.694 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/- text/html
> 1522251167.695 0 192.168.1.51 ERR_INVALID_REQ/400 491 - / - NONE/- text/htm
>
> Where does this come from??
> There is and should never be anything at "/" on parent.
> I assume this is internal health check on child that tries to request "/" on
> parent and since it's obviously failing, will mark parent down and never use
> it.
>
> How to change how parent is tested? I found nothing regarding to parent
> health check in documentation.
>
> Thanks,
> Veiko
>