superfly / fly-autoscaler

A metrics-based autoscaler for Fly.io
Apache License 2.0
28 stars 4 forks source link

Implement multi-app scaling #28

Closed benbjohnson closed 7 months ago

benbjohnson commented 7 months ago

This pull request changes the autoscaler so it can support more than one app. The implementation provides a pool of reconcilers that can be used against a set of applications.

The list of applications is fetched when the autoscaler is initially started up and is updated based on the FAS_APP_LIST_REFRESH_INTERVAL setting which defaults to 1 minute.

Fixes #22

Usage

To scale multiple applications, update set the organization slug and use a wildcard expression for the app name:

FAS_ORG="my-org"
FAS_APP_NAME="my-app-*"