testflows / TestFlows-GitHub-Hetzner-Runners

Autoscaling Self-Hosted GitHub Actions Runners on Hetzner Cloud.
https://testflows.com
Other
34 stars 3 forks source link

Hetzner API rate limit #18

Closed vzakaznikov closed 5 months ago

vzakaznikov commented 5 months ago

Running into api limits on the heztner end APIException: limit of 3600 requests per hour reached - https://docs.hetzner.cloud/#rate-limiting.

Sometimes exception says APIException: limit of 7200 requests per hour reached.

Not sure why there's two different ones. The github api usage is ok.

vzakaznikov commented 5 months ago

Workaround:

  1. Create N different Hetzner projects
  2. Break all jobs into N sets were each set will have a set identifier label in runs-on. For example runs-on: [self-hosted, set0]
  3. Launch N services and use --with-label that selects each set
vzakaznikov commented 5 months ago

Also there is an option to increase loop intervals using the following options: