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 <[email protected]> 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 >
