# Improvements to autoscaler to automatically re-attempt fail pull \[pending patch\]

**URL:** <https://drone.discourse.group/t/improvements-to-autoscaler-to-automatically-re-attempt-fail-pull-pending-patch/9748>\
**Category:** Drone Support\
**Created:** [October 19, 2020, 7:07am UTC](https://drone.discourse.group/t/improvements-to-autoscaler-to-automatically-re-attempt-fail-pull-pending-patch/9748 "2020-10-19T07:07:00Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![ashwilliams1](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/ashwilliams1/32/5549_2.png) [@ashwilliams1](https://drone.discourse.group/u/ashwilliams1)\
**Post date:** [December 29, 2020, 2:00pm UTC](https://drone.discourse.group/t/improvements-to-autoscaler-to-automatically-re-attempt-fail-pull-pending-patch/9748/9 "2020-12-29T14:00:15Z")

</div>

This is my response to comments made in [Can I use volumes in Drone Cloud in order to map /var/run/docker.sock?](http://discuss.harness.io/t/make-autoscaler-more-robust/8547)

> [@Can I use volumes in Drone Cloud in order to map /var/run/docker.sock?](https://drone.discourse.group/t/can-i-use-volumes-in-drone-cloud-in-order-to-map-var-run-docker-sock/8547/1):
>
> It would be good if more robustness was built-in to the drone-autoscaler instead, so that we didn’t have to do this. For example, perform a docker pull (with appropirate retry logic) and only when that succeeds mark the runner as “ready for service”.

please consider sending a pull request that retries the docker pull, on failure, using a limited backoff.

> [@Can I use volumes in Drone Cloud in order to map /var/run/docker.sock?](https://drone.discourse.group/t/can-i-use-volumes-in-drone-cloud-in-order-to-map-var-run-docker-sock/8547/2):
>
> just to note: We’ve also seen other situations where an ec2 instance becomes unhealthy, but drone has no way of checking/discarding unhealthy nodes

drone does have an option to ping unhealthy nodes and then clean them up. You need to enable the following feature flags to get this behavior:

```auto
DRONE_ENABLE_PINGER=true
DRONE_ENABLE_REAPER=true

```

this enables the pinger which will ping the instance every N minutes to check whether or not it is healthy. If it cannot ping the instance, it is placed in an errored state. The reaper then periodically cleans up instances marked in errored states.

---

_[View the full topic](https://drone.discourse.group/t/improvements-to-autoscaler-to-automatically-re-attempt-fail-pull-pending-patch/9748)._
