diff --git a/docs/modules/hdfs/pages/usage-guide/operations/pod-disruptions.adoc b/docs/modules/hdfs/pages/usage-guide/operations/pod-disruptions.adoc index 85fb61d9..e645545b 100644 --- a/docs/modules/hdfs/pages/usage-guide/operations/pod-disruptions.adoc +++ b/docs/modules/hdfs/pages/usage-guide/operations/pod-disruptions.adoc @@ -35,7 +35,7 @@ let max_unavailable = dfs_replication.saturating_sub(2); // We need to make sure at least one datanode remains by having at most // n - 1 datanodes unavailable. We subtract two to avoid a single point of failure. let max_unavailable = min(max_unavailable, num_datanodes.saturating_sub(2)); -// Clamp to at least a single node allowed to being, to not block Kubernetes nodes from draining. +// Clamp to at least a single node being offline, to not block Kubernetes nodes from draining. let max_unavailable = max(max_unavailable, 1) ---- diff --git a/rust/operator/src/operations/pdb.rs b/rust/operator/src/operations/pdb.rs index 0d1b86fe..6d0b2d2f 100644 --- a/rust/operator/src/operations/pdb.rs +++ b/rust/operator/src/operations/pdb.rs @@ -78,7 +78,7 @@ fn max_unavailable_data_nodes(num_datanodes: u16, dfs_replication: u16) -> u16 { // We need to make sure at least one datanode remains by having at most // n - 1 datanodes unavailable. We subtract two to avoid a single point of failure. let max_unavailable = min(max_unavailable, num_datanodes.saturating_sub(2)); - // Clamp to at least a single node allowed to being, to not block Kubernetes nodes from draining. + // Clamp to at least a single node being offline, to not block Kubernetes nodes from draining. max(max_unavailable, 1) }