You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by GitBox <gi...@apache.org> on 2021/03/28 15:25:36 UTC

[GitHub] [trafficserver] paladox opened a new issue #7637: Is it possible to depool a backend within ATS?

paladox opened a new issue #7637:
URL: https://github.com/apache/trafficserver/issues/7637


   I'm not sure where to ask this question but here it goes.
   
   In varnish you are able to easily depool/repool and have backends.
   
   In ats i see you can do this via parent.config but it doesn't seem to support depooling and you have to restart to remove/add a backend.
   
   I had an idea on doing this via a lua plugin within do_remap but it seems math.random is cached so we cannot do that.
   
   Does anyone know how I can do this? (we're thinking of moving from varnish to ats)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficserver] paladox removed a comment on issue #7637: Is it possible to depool a backend within ATS?

Posted by GitBox <gi...@apache.org>.
paladox removed a comment on issue #7637:
URL: https://github.com/apache/trafficserver/issues/7637#issuecomment-808932889


   Also do you know how we get it to stop 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficserver] mlibbey commented on issue #7637: Is it possible to depool a backend within ATS?

Posted by GitBox <gi...@apache.org>.
mlibbey commented on issue #7637:
URL: https://github.com/apache/trafficserver/issues/7637#issuecomment-808919269


   Shall we close this then?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficserver] paladox commented on issue #7637: Is it possible to depool a backend within ATS?

Posted by GitBox <gi...@apache.org>.
paladox commented on issue #7637:
URL: https://github.com/apache/trafficserver/issues/7637#issuecomment-808932936


   Also do you know how we get it to stop creating a new config after reload (e.g <config>_4.config) @mlibbey 
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficserver] paladox commented on issue #7637: Is it possible to depool a backend within ATS?

Posted by GitBox <gi...@apache.org>.
paladox commented on issue #7637:
URL: https://github.com/apache/trafficserver/issues/7637#issuecomment-808932889


   Also do you know how we get it to stop 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficserver] paladox commented on issue #7637: Is it possible to depool a backend within ATS?

Posted by GitBox <gi...@apache.org>.
paladox commented on issue #7637:
URL: https://github.com/apache/trafficserver/issues/7637#issuecomment-808916425


   When I run change the backend and run `traffic_ctl config reload` it doesn't appear to use it. Continues to use the backends I removed.
   
   Even tried `service trafficserver reload`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficserver] paladox closed issue #7637: Is it possible to depool a backend within ATS?

Posted by GitBox <gi...@apache.org>.
paladox closed issue #7637:
URL: https://github.com/apache/trafficserver/issues/7637


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficserver] mlibbey commented on issue #7637: Is it possible to depool a backend within ATS?

Posted by GitBox <gi...@apache.org>.
mlibbey commented on issue #7637:
URL: https://github.com/apache/trafficserver/issues/7637#issuecomment-808914926


   Parent.config is reloadable. When we add/remove a server from a line in parent.config, we run `traffic_ctl config reload`, and the removed server is depoolled/repoolled -- all while continuing to serve traffic.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficserver] mlibbey commented on issue #7637: Is it possible to depool a backend within ATS?

Posted by GitBox <gi...@apache.org>.
mlibbey commented on issue #7637:
URL: https://github.com/apache/trafficserver/issues/7637#issuecomment-808931520


   We have found that when we think the server is going to be down "temporarily" (hours to days), we prefer to use 
   traffic_ctl host down/up $servername
   as it's an easier command for the monitoring/healthcheck/whatever things to issue
   and longer term (days to weeks) remove from parent.config.
   
   ATS has built in passive health monitoring for these, but there are benefits to active monitoring (and administratively marking parents down).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficserver] paladox commented on issue #7637: Is it possible to depool a backend within ATS?

Posted by GitBox <gi...@apache.org>.
paladox commented on issue #7637:
URL: https://github.com/apache/trafficserver/issues/7637#issuecomment-808922592


   Yup, one last thing. Did you implement a healthcheck that automatically depools a backend?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficserver] paladox commented on issue #7637: Is it possible to depool a backend within ATS?

Posted by GitBox <gi...@apache.org>.
paladox commented on issue #7637:
URL: https://github.com/apache/trafficserver/issues/7637#issuecomment-808916814


   Ah! I had to change the user permissions on the parent.config file.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficserver] mlibbey commented on issue #7637: Is it possible to depool a backend within ATS?

Posted by GitBox <gi...@apache.org>.
mlibbey commented on issue #7637:
URL: https://github.com/apache/trafficserver/issues/7637#issuecomment-808937609


   - `traffic_ctl metric match proxy.process.host_status` will give you the full list of servers and their status.
   - there is a way to not let ATS cp the old file to the _N.config, but, I can't seem to find it, and I think most people just let it happen -- having a quick way to revert can be nice to have.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficserver] paladox commented on issue #7637: Is it possible to depool a backend within ATS?

Posted by GitBox <gi...@apache.org>.
paladox commented on issue #7637:
URL: https://github.com/apache/trafficserver/issues/7637#issuecomment-808935737


   Also any idea how we can get the details of which server is downed?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficserver] paladox commented on issue #7637: Is it possible to depool a backend within ATS?

Posted by GitBox <gi...@apache.org>.
paladox commented on issue #7637:
URL: https://github.com/apache/trafficserver/issues/7637#issuecomment-808932651


   Thank you so much!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org