Skip to content

refactor(runtime): unify workload execution - #114

Merged
MarcStdt merged 3 commits into
masterfrom
refactor/label-based-port-services
Aug 23, 2026
Merged

MarcStdt merged 3 commits into
masterfrom
refactor/label-based-port-services

Conversation

@MarcStdt

@MarcStdt MarcStdt commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Summary

  • replace backend-facing global/reserved port lists with one resolved port collection
  • create one stable Kubernetes Service per logical runtime port
  • select every exposing workload through shared port labels
  • run each Kubernetes persistent command as one StatefulSet with ordered init containers and one main container
  • publish persistent Services before Pod readiness so coldstarter traffic can hand off to the main workload
  • stream workload consoles directly from Docker and Kubernetes backends, including init-container logs
  • preserve port Services across command and runtime stops while cleaning up legacy workloads

Validation

  • go test ./...
  • go vet ./internal/runtime/kubernetes
  • git diff --check
  • rebuilt/imported druid:local into k3d
  • verified coldstarter response, wake handoff, Paper 1.21.7 response, and runtime console through public port 11012

Keep one stable Kubernetes Service per logical port and select all exposing workloads through port labels. Preserve port Services across command and runtime stops.
@druid-infra

Copy link
Copy Markdown
Contributor
Error: This repo is not allowlisted for Atlantis.

Backends receive one supervisor-owned observer at creation instead of carrying callbacks on every command. StopCommand is now required by the primary backend interface.

BREAKING CHANGE: runtime backend factories must create backends with a ProcedureStatusObserver, and RuntimeBackendInterface implementations must provide StopCommand.
Stream consoles directly from runtime backends and group Kubernetes
persistent procedures into one StatefulSet with ordered init containers.
@MarcStdt MarcStdt changed the title refactor(runtime): unify port services refactor(runtime): unify workload execution Aug 23, 2026
@MarcStdt
MarcStdt merged commit d6a1d21 into master Aug 23, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants