https://github.com/determinatesystems/hydra-scale-equinix-metal
Scale Equinix Metal builders based on Hydra usage.
https://github.com/determinatesystems/hydra-scale-equinix-metal
Last synced: about 1 year ago
JSON representation
Scale Equinix Metal builders based on Hydra usage.
- Host: GitHub
- URL: https://github.com/determinatesystems/hydra-scale-equinix-metal
- Owner: DeterminateSystems
- License: mit
- Created: 2023-01-02T14:13:06.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-19T19:51:02.000Z (about 2 years ago)
- Last Synced: 2024-04-19T20:52:47.760Z (about 2 years ago)
- Language: Rust
- Size: 78.1 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Equinix Metal autoscaler for Hydra
This tool will query a Hydra instance for queue statistics and create
or destroy Equinix Metal instances according to load. It is used to
scale up and down capacity for hydra.nixos.org.
## Usage
Currently we have quite a few assumptions that only really apply to
the NixOS Hydra instance. Check out the source if you're interested in
running this yourself, because you'll probably need to do that anyway
;)
It relies on (this list may not be exhaustive):
- [hydra-packet-importer](https://github.com/NixOS/nixos-org-configurations/tree/master/hydra-packet-importer) running to get the instances into Hydra's builder list
- A Prometheus instance being set up to scrape Hydra, in order to determine what's currently running on a given builder
- [nix-netboot-serve](https://github.com/DeterminateSystems/nix-netboot-serve/) or some other mechanism being set up to serve boot configs for the build machines