Skip to content

feat: Add API to activate/deactivate clusters#95

Merged
sbernauer merged 18 commits into
mainfrom
feat/activation-api
Dec 5, 2025
Merged

feat: Add API to activate/deactivate clusters#95
sbernauer merged 18 commits into
mainfrom
feat/activation-api

Conversation

@sbernauer

@sbernauer sbernauer commented Oct 15, 2025

Copy link
Copy Markdown
Member

Closes #1

New endpoints

/admin/clusters/status
/admin/clusters/{cluster_name}/status
/admin/clusters/{cluster_name}/activate
/admin/clusters/{cluster_name}/deactivate

Tested with and without autoscaling

@sbernauer sbernauer force-pushed the feat/activation-api branch from edf21ee to 4fd0463 Compare October 15, 2025 12:15
@sbernauer sbernauer marked this pull request as ready for review October 16, 2025 07:11
@sbernauer sbernauer self-assigned this Oct 16, 2025
@sbernauer sbernauer moved this to Development: Waiting for Review in Stackable Engineering Oct 16, 2025
@sbernauer sbernauer requested a review from maltesander October 16, 2025 07:30
Comment thread docs/design.md Outdated
Comment thread trino-lb-core/src/config.rs Outdated
Comment thread trino-lb-core/src/trino_cluster.rs Outdated
Comment thread trino-lb/src/http_server/mod.rs Outdated
Comment thread trino-lb/src/http_server/admin/mod.rs Outdated
Comment thread trino-lb/src/http_server/admin/mod.rs Outdated
Comment thread trino-lb/src/http_server/admin/mod.rs Outdated
Comment thread trino-lb/src/http_server/admin/mod.rs Outdated
Comment thread trino-lb/src/cluster_group_manager.rs Outdated
Comment thread trino-lb/src/scaling/mod.rs Outdated
@Techassi Techassi moved this from Development: Waiting for Review to Development: In Review in Stackable Engineering Oct 17, 2025
sbernauer and others added 6 commits October 17, 2025 15:35
Co-authored-by: Techassi <git@techassi.dev>
Co-authored-by: Techassi <git@techassi.dev>
Co-authored-by: Techassi <git@techassi.dev>
@sbernauer sbernauer requested a review from Techassi October 20, 2025 06:15
@sbernauer sbernauer force-pushed the feat/activation-api branch from 042689f to 8cc8f97 Compare October 27, 2025 09:55
@sbernauer sbernauer requested review from Techassi and removed request for Techassi October 27, 2025 09:55
Comment thread trino-lb/src/http_server/admin/mod.rs Outdated
Comment thread trino-lb/src/http_server/admin/mod.rs Outdated
sbernauer and others added 3 commits December 3, 2025 12:36
@sbernauer sbernauer requested review from Techassi and removed request for Techassi December 4, 2025 07:37

@Techassi Techassi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved, but you might want to take a look at the pre-commit failures.

@sbernauer

Copy link
Copy Markdown
Member Author

Approved, but you might want to take a look at the pre-commit failures.

Thanks! I already did and ignored them, as I want to keep the YAML comments as-is 🙈

@sbernauer sbernauer added this pull request to the merge queue Dec 5, 2025
Merged via the queue into main with commit cea7e7f Dec 5, 2025
8 of 9 checks passed
@sbernauer sbernauer deleted the feat/activation-api branch December 5, 2025 08:32
@Techassi Techassi moved this from Development: In Review to Development: Done in Stackable Engineering Dec 5, 2025
@lfrancke lfrancke moved this from Development: Done to Done in Stackable Engineering Dec 15, 2025
@sbernauer sbernauer mentioned this pull request Feb 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Allow marking clusters as activated/deactivated via API call

3 participants