cluster-design
The design of a computer cluster as formulas with units: the fit of the parts, the capacity, the watts, the heat, the noise and the load of each circuit.
Check a machine
Choose the parts of one machine. Each fit rule is a Vex program. The library checks the machine in your browser at each change.
Other work next to the CI jobs
The measures
Each value is a Vex program over the parts. Each watt from the wall becomes heat in the room.
The parts
The fit rules
Put copies of it on a site
The machine above goes to a site with two circuits and two rooms. Each rule of the site is a Vex program at a circuit or a room. A change of a part above changes the site too.
The machines
Each copy has the parts of the machine above. Choose its circuit and its room.
No machine is on the site.
The site rules
Search the space of designs
The library draws machines from the parts above, with 1 to 4 copies on the site above. It checks and measures each design in a worker of your browser.
Each design of the sample
No other design that fits is as good on both goals as a design of the front, and better on one. Choose a design to see its parts.
The front
How it works
- Parts are data. A table gives the fields of each class. Each amount has a unit, so a cooler height of 16 cm and a cooler of 155 mm compare correctly.
- A design is a tree. The cluster has machines, and each machine has part lines. The tree holds each amount in the unit of its field.
- A rule is a program. Each fit rule is a Vex program at a machine. A rule that cannot read a part gives no read, not a pass.
- A measure is a program too. The power, the heat, the noise and the CI runner slots are Vex programs over the same tree. The rule of the power supply reads the program of the power, so the two always agree.
- A site is input data. A site record gives the circuits, the rooms and the price of electricity. The rules of the site read the same programs of the power at each machine of a circuit or a room.
- A design space is data too. Each slot of a machine, the count of copies and the placement are the stages of a strategy space. A sweep checks and measures each design, and the front holds the designs that no other design beats.
import { checkDesign, overall, readCatalog } from "@mark1russell7/cluster-design";
const catalog = readCatalog(parts);
const result = checkDesign([{ id: "node-1", lines }], catalog.value);
overall(result.findings); // "fits", "breaks" or "unread"
Install
pnpm add @mark1russell7/cluster-design
This package has no release on npm yet. Releases shows each version, and Status shows the open work.