add slot ttl output with effective timeout config
This commit is contained in:
parent
d8afde8b18
commit
8fdf2d5e5b
5 changed files with 211 additions and 4 deletions
|
|
@ -131,6 +131,35 @@ class StateSummary(BaseModel):
|
|||
haproxy: HaproxySummary = Field(default_factory=HaproxySummary)
|
||||
|
||||
|
||||
class CapacityPolicy(BaseModel):
|
||||
"""Effective capacity timeout and sizing policy."""
|
||||
|
||||
min_slots: int
|
||||
max_slots: int
|
||||
target_warm_slots: int
|
||||
max_leases_per_slot: int
|
||||
idle_scale_down_seconds: int
|
||||
drain_timeout_seconds: int
|
||||
launch_timeout_seconds: int
|
||||
boot_timeout_seconds: int
|
||||
binding_timeout_seconds: int
|
||||
terminating_timeout_seconds: int
|
||||
|
||||
|
||||
class SchedulerPolicy(BaseModel):
|
||||
"""Effective scheduler timing policy."""
|
||||
|
||||
tick_seconds: float
|
||||
reconcile_seconds: float
|
||||
|
||||
|
||||
class EffectiveConfigResponse(BaseModel):
|
||||
"""GET /v1/config/effective response."""
|
||||
|
||||
capacity: CapacityPolicy
|
||||
scheduler: SchedulerPolicy
|
||||
|
||||
|
||||
class ErrorDetail(BaseModel):
|
||||
"""Structured error detail."""
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue