woodpecker-ci / autoscaler

Scale your woodpecker agents automatically to the moon and back based on the current load.
Apache License 2.0
29 stars 5 forks source link

Ignore agents that are not sufficient for pending workload #133

Open xoxys opened 3 months ago

xoxys commented 3 months ago

If static agents with free capacities exist, but the agents cannot process pending workload due to their configuration, e.g. due to labels, the autoscaler still does not create any agents.

xoxys commented 3 months ago

Checked again, this setup definitely causes problems.

pat-s commented 3 weeks ago

Can confirm, had a static agent with workloads for amd64 and the autoscaler with a filter for arm64. The latter only kicked in once the static agent was removed.

anbraten commented 1 week ago

From #172:

e.g. don't count an running x86 agent arm64 etc ...

It would be nice if the autoscaler could scale up even if there is already an agent running but the current agent does not match labels in the queue but the autoscaler passed labels to create an agent would match ...