Skip to content

Commit cea7e7f

Browse files
sbernauerTechassi
andauthored
feat: Add API to activate/deactivate clusters (#95)
* feat: Add API to activate/deactivate clusters * changelog * Add some docs * linters * Update trino-lb-core/src/config.rs Co-authored-by: Techassi <git@techassi.dev> * Update docs/design.md Co-authored-by: Techassi <git@techassi.dev> * Only derive Serialize * Use Copy instead of Clone * Only derive Serialize * Update trino-lb-core/src/trino_cluster.rs Co-authored-by: Techassi <git@techassi.dev> * Fix compilation * clippy * Add API to get single cluster status * Improve snafu error messages * Update trino-lb/src/http_server/admin/mod.rs * Update trino-lb/src/http_server/admin/mod.rs Co-authored-by: Techassi <git@techassi.dev> * Update trino-lb/src/http_server/admin/mod.rs Co-authored-by: Techassi <git@techassi.dev> * Update trino-lb/src/http_server/admin/mod.rs --------- Co-authored-by: Techassi <git@techassi.dev>
1 parent 525c8db commit cea7e7f

20 files changed

Lines changed: 729 additions & 342 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
44

55
## [Unreleased]
66

7+
### Added
8+
9+
- Support activating and deactivation Trino clusters via API calls to `/admin/clusters/{cluster_name}/activate` and `/admin/clusters/{cluster_name}/deactivate` respectively. For this to work you need to authenticate yourself at trino-lb via basic auth ([#95]).
10+
- Expose cluster statistics at `/admin/clusters/{cluster_name}/status` and `/admin/clusters/status` ([#95]).
11+
712
### Changed
813

914
- The Stackable scaler now ensures that a `TrinoCluster` has changed to `ready` more than 5 seconds
@@ -22,6 +27,7 @@ All notable changes to this project will be documented in this file.
2227
[#85]: https://github.com/stackabletech/trino-lb/pull/85
2328
[#86]: https://github.com/stackabletech/trino-lb/pull/86
2429
[#91]: https://github.com/stackabletech/trino-lb/pull/91
30+
[#95]: https://github.com/stackabletech/trino-lb/pull/95
2531

2632
## [0.5.0] - 2025-03-14
2733

0 commit comments

Comments
 (0)