rawlinp opened a new issue #5306:
URL: https://github.com/apache/trafficcontrol/issues/5306


   ## I'm submitting a ...
   -  bug report
   
   ## Traffic Control components affected ...
   -  Traffic Monitor
   
   ## Current behavior:
   If a cache is `ADMIN_DOWN`, it appears that TM will log an event for the 
cache every single time it is polled:
   ```
   1605800485.067 host="my-edge", type=EDGE, available=false, msg="Protocol 
(IPv4) ADMIN_DOWN - available (health) "
   1605800487.140 host="my-edge", type=EDGE, available=false, msg="Protocol 
(IPv6) ADMIN_DOWN - available (health) "
   1605800489.045 host="my-edge", type=EDGE, available=false, msg="Protocol 
(IPv4) ADMIN_DOWN - available (health) "
   1605800489.977 host="my-edge", type=EDGE, available=false, msg="Protocol 
(IPv6) ADMIN_DOWN - available (stat) "
   1605800490.857 host="my-edge", type=EDGE, available=false, msg="Protocol 
(IPv6) ADMIN_DOWN - available (health) "
   ```
   
   ## Expected behavior:
   Before 5.0.x, TM would not repeatedly log events for `ADMIN_DOWN` caches 
every time they were polled. I believe TM should only be logging events for 
changes in availability, which is how it has always logged events. Since 
`ADMIN_DOWN` caches are always unavailable for routing, these events should not 
be logged.
   
   ## Minimal reproduction of the problem with instructions:
   Set a cache to `ADMIN_DOWN`, snapshot, observe TM event logs.
   
   ## Anything else:
   This appears to affect version 5.0.x/master, compared to 4.1.x.
   


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


Reply via email to