Open bsherin opened 4 months ago
HealthTracker is in host
register_container event is sent from docker_functions, where a container is created
register_container
deregister_container event is sent from destroy container in docker_functions
deregister_container
I could potentially do this automatically with the docker watcher.
It looks like I just run check_health from various places in the main host loop.
# in qworker def do_heartbeat(self): if self.generate_heartbeats: current_time = current_timestamp() if (current_time - self.last_heartbeat) > heartbeat_time: self.post_task("host", "container_heartbeat", {"container_id": self.my_id}) self.last_heartbeat = current_time return
HealthTracker is in host
register_container
event is sent from docker_functions, where a container is createdderegister_container
event is sent from destroy container in docker_functionsI could potentially do this automatically with the docker watcher.
It looks like I just run check_health from various places in the main host loop.