Autoscaler vm max-age

We’re running drone-autoscaler to auto-provision our build runners on ec2.
Mostly it’s working well but I’d like to see a way of making autoscaler terminate the older instances - it seems to always terminate more recent instances when scaling down, which means that older instances will be kept:

It would be good if there was a “max-age” setting that would have autoscaler terminate idle instances that are older than some limit.

Hello there,

This will be a feature request and you can raise it here : https://trello.com/b/ttae5E5o/drone

Regards,
Drone Support

Thanks! It seems I don’t have permissions to create anything on that Trello board.

It seems I don’t have permissions to create anything on that Trello board.

we don’t accept third party contributions to our roadmap / trello board, however, this particular feature request is already on our roadmap. See Trello

it seems to always terminate more recent instances when scaling down, which means that older instances will be kept:

note that Drone does sort instances by creation date to remove older runners first, however, it will only remove idle runners. The system will not mark a busy runner for termination because it would result in killing a build while it is running. This means if you have an older runner that is busy, and a newer runner that is idle, the newer runner would be marked for termination.