Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ All notable changes to this project will be documented in this file.
config property `requestedSecretLifetime`. This helps reduce frequent Pod restarts ([#676]).
- Run a `containerdebug` process in the background of each Trino container to collect debugging information ([#687]).

## Changed

- Increased the default temporary secret lifetime for coordinators from 1 day to 15 days.
This is because Trino currently does not offer a HA setup for them, a restart kills all running queries ([#694]).

### Fixed

- Fix OIDC endpoint construction in case the `rootPath` does have a trailing slash ([#673]).
Expand All @@ -21,6 +26,7 @@ All notable changes to this project will be documented in this file.
[#673]: https://github.com/stackabletech/trino-operator/pull/673
[#676]: https://github.com/stackabletech/trino-operator/pull/676
[#687]: https://github.com/stackabletech/trino-operator/pull/687
[#694]: https://github.com/stackabletech/trino-operator/pull/694

## [24.11.0] - 2024-11-18

Expand Down
10 changes: 8 additions & 2 deletions rust/crd/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,6 @@ pub struct TrinoConfig {
}

impl TrinoConfig {
const DEFAULT_SECRET_LIFETIME: Duration = Duration::from_days_unchecked(1);
fn default_config(
cluster_name: &str,
role: &TrinoRole,
Expand All @@ -454,6 +453,13 @@ impl TrinoConfig {
TrinoRole::Coordinator => DEFAULT_COORDINATOR_GRACEFUL_SHUTDOWN_TIMEOUT,
TrinoRole::Worker => DEFAULT_WORKER_GRACEFUL_SHUTDOWN_TIMEOUT,
};
let requested_secret_lifetime = match role {
// TODO: Once Trino supports a HA setup for coordinators we should decrease this!
// See https://github.com/stackabletech/trino-operator/issues/693
// and https://github.com/stackabletech/decisions/issues/38 for details
TrinoRole::Coordinator => Duration::from_days_unchecked(15),
TrinoRole::Worker => Duration::from_days_unchecked(1),
};

TrinoConfigFragment {
logging: product_logging::spec::default_logging(),
Expand All @@ -478,7 +484,7 @@ impl TrinoConfig {
query_max_memory: None,
query_max_memory_per_node: None,
graceful_shutdown_timeout: Some(graceful_shutdown_timeout),
requested_secret_lifetime: Some(Self::DEFAULT_SECRET_LIFETIME),
requested_secret_lifetime: Some(requested_secret_lifetime),
}
}
}
Expand Down
Loading