WIP autoscaler agent

This commit is contained in:
Abel Luck 2026-02-27 11:59:16 +01:00
parent c610a3e284
commit 28059dcedf
34 changed files with 2409 additions and 35 deletions

View file

@ -0,0 +1,32 @@
"""EC2 runtime adapter — stub for Plan 02."""
from __future__ import annotations
from .base import RuntimeAdapter
class EC2Runtime(RuntimeAdapter):
"""EC2 Spot instance runtime adapter.
Full implementation in Plan 02.
"""
def __init__(self, region: str, launch_template_id: str, **kwargs: object) -> None:
self._region = region
self._launch_template_id = launch_template_id
def launch_spot(self, slot_id: str, user_data: str) -> str:
"""Launch a spot instance for slot_id."""
raise NotImplementedError
def describe_instance(self, instance_id: str) -> dict:
"""Return normalized instance info."""
raise NotImplementedError
def terminate_instance(self, instance_id: str) -> None:
"""Terminate the instance."""
raise NotImplementedError
def list_managed_instances(self) -> list[dict]:
"""Return list of managed instances."""
raise NotImplementedError