Zum Inhalt
HALOWERK

Finopswerk

fargate task reservation fit

Sum original container CPU and soft memoryReservation facts and choose smallest CPU-then-memory tuple from declared LinuxFargate catalog under callerCPUcap and conservative STRICT positive headroom. Linux1.4+,CPU256..16384,explicitly excludes32vCPUcatalog and hardlimit/logbuffer/runtime/provisioning/billingcertification. Zero tuple means knownnochoice in declaredcatalog;not globalAWSinfeasibility. One missingCPUcapture keeps2worlds. Strictreportkeys/objectorderirrelevant/arraysordered. A.

POST https://finops.halowerk.com/v1/fargate-task-reservation-fit

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
cpu_capSiehe SchemaJa
containersarrayJa
reportobjectJa
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "properties": {
    "cpu_cap": {
      "enum": [
        256,
        512,
        1024,
        2048,
        4096,
        8192,
        16384
      ]
    },
    "containers": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "cpu_domain": {
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": 1,
              "maximum": 8192
            },
            "minItems": 1,
            "maxItems": 2
          },
          "memory_reservation": {
            "type": "integer",
            "minimum": 6,
            "maximum": 65536
          }
        },
        "required": [
          "cpu_domain",
          "memory_reservation"
        ],
        "additionalProperties": false
      },
      "minItems": 1,
      "maxItems": 4
    },
    "report": {
      "type": "object",
      "properties": {
        "sum_cpu": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 262144
            },
            {
              "type": "null"
            }
          ]
        },
        "sum_memory": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 262144
            },
            {
              "type": "null"
            }
          ]
        },
        "task_cpu": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 262144
            },
            {
              "type": "null"
            }
          ]
        },
        "task_memory": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 262144
            },
            {
              "type": "null"
            }
          ]
        },
        "cpu_headroom": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 262144
            },
            {
              "type": "null"
            }
          ]
        },
        "memory_headroom": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 262144
            },
            {
              "type": "null"
            }
          ]
        },
        "feasible": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "sum_cpu",
        "sum_memory",
        "task_cpu",
        "task_memory",
        "cpu_headroom",
        "memory_headroom",
        "feasible"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "cpu_cap",
    "containers",
    "report"
  ],
  "additionalProperties": false
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "cpu_cap": 4096,
  "containers": [
    {
      "cpu_domain": [
        128
      ],
      "memory_reservation": 1023
    }
  ],
  "report": {
    "sum_cpu": 128,
    "sum_memory": 1023,
    "task_cpu": 256,
    "task_memory": 1024,
    "cpu_headroom": 128,
    "memory_headroom": 1,
    "feasible": true
  }
}

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-07, 02:42 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →