Skip to content

feat: improve default configuration for reliability and performance #696

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jun 19, 2025
Merged
Show file tree
Hide file tree
Changes from 3 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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ All notable changes to this project will be documented in this file.
- Use `--console-log-format` (or `CONSOLE_LOG_FORMAT`) to set the format to `plain` (default) or `json`.
- The operator now defaults to `AES/CTR/NoPadding` for `dfs.encrypt.data.transfer.cipher.suite` to improve security and performance ([#693]).
- The built-in Prometheus servlet is now enabled and metrics are exposed under the `/prom` path of all UI services ([#695]).
- Added several properties to `hdfs-site.xml` that improve general performance and reliability ([#696])

### Changed

Expand Down Expand Up @@ -50,6 +51,7 @@ All notable changes to this project will be documented in this file.
[#684]: https://github.com/stackabletech/hdfs-operator/pull/684
[#693]: https://github.com/stackabletech/hdfs-operator/pull/693
[#695]: https://github.com/stackabletech/hdfs-operator/pull/695
[#696]: https://github.com/stackabletech/hdfs-operator/pull/696

## [25.3.0] - 2025-03-21

Expand Down
2 changes: 2 additions & 0 deletions deploy/helm/hdfs-operator/templates/roles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,8 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ include "operator.name" . }}-clusterrole-nodes
labels:
{{- include "operator.labels" . | nindent 4 }}
rules:
- apiGroups:
- ""
Expand Down
10 changes: 9 additions & 1 deletion rust/operator-binary/src/hdfs_controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,15 @@ fn rolegroup_config_map(
)
.add("dfs.datanode.registered.hostname", "${env.POD_ADDRESS}")
.add("dfs.datanode.registered.port", "${env.DATA_PORT}")
.add("dfs.datanode.registered.ipc.port", "${env.IPC_PORT}");
.add("dfs.datanode.registered.ipc.port", "${env.IPC_PORT}")
.add("dfs.datanode.sync.behind.writes", "true")
.add("dfs.datanode.synconclose", "true")
.add("io.file.buffer.size", "131072")
.add("dfs.namenode.handler.count", "50")
.add("dfs.datanode.handler.count", "50")
.add("dfs.namenode.replication.max-streams", "4")
.add("dfs.namenode.replication.max-streams-hard-limit", "8")
.add("dfs.datanode.max.transfer.threads", "8192");
if hdfs.has_https_enabled() {
hdfs_site.add("dfs.datanode.registered.https.port", "${env.HTTPS_PORT}");
} else {
Expand Down