MCPcopy Index your code
hub / github.com/Bytez-com/docs / Capacity

Interface Capacity

sdk/javascript/src/interface/Model.ts:4–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2import { Task } from "./Task";
3
4interface Capacity {
5 /**
6 * The auto-scaling clusters is allowed to scale-down to this amount of instances.
7 *
8 * To save developers money, by default, `min` is set `0`, allowing clusters to spin down all instances when they under utilized.
9 *
10 * Default: `0`
11 */
12 min?: number;
13 /**
14 * The auto-scaling clusters will try to aim for `desired` number of instances.
15 *
16 * Note: even when you set `desired`, the auto-scaling cluster may scale-up or scale-down the number of instances. This is where your cluster begins, but depending on use, this is not the exact number of instances your cluster may have.
17 *
18 * Default: `1`
19 */
20 desired?: number;
21
22 /**
23 * The auto-scaling clusters is allowed to scale-up to this amount of instances.
24 *
25 * Note: if you slam an auto-scaling cluster, it may exceed the `max` number of instances temporarily by a small margin, to ensure your requests are fulfilled, though in general, the cluster instances will not exceed this number.
26 *
27 * Default: `1` for free users or `10` for premium users
28 */
29 max?: number;
30}
31
32export interface Create {
33 /**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected