Skip to content
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

Expose TuneD socket to host. #651

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions assets/bin/run
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

export SYSTEMD_IGNORE_CHROOT=1

enable_tuned_unix_socket() {
sed -Ei 's|^#?\s*enable_unix_socket\s*=.*$|enable_unix_socket = 1|' /etc/tuned/tuned-main.conf
}

start() {
# Tuned can take ~20s to reload/start when "ulimit -Sn == 1048576".
# See:
Expand All @@ -10,6 +14,8 @@ start() {
# - http://bugs.python.org/issue1663329
ulimit -Sn 1024 # workaround for the issue above

enable_tuned_unix_socket

exec /usr/bin/openshift-tuned \
-v=0
}
Expand Down
20 changes: 6 additions & 14 deletions assets/tuned/manifests/ds-tuned.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,10 @@ spec:
readOnly: true
- mountPath: /etc/systemd
name: etc-systemd
- mountPath: /run
name: run
- mountPath: /sys
name: sys
- mountPath: /var/run/dbus
name: var-run-dbus
readOnly: true
- mountPath: /run/systemd/system
name: run-systemd-system
readOnly: true
- mountPath: /lib/modules
name: lib-modules
readOnly: true
Expand Down Expand Up @@ -99,17 +95,13 @@ spec:
type: Directory
name: etc-systemd
- hostPath:
path: /sys
type: Directory
name: sys
- hostPath:
path: /var/run/dbus
path: /run
type: Directory
name: var-run-dbus
name: run
- hostPath:
path: /run/systemd/system
path: /sys
type: Directory
name: run-systemd-system
name: sys
- hostPath:
path: /lib/modules
type: Directory
Expand Down