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

rpk: rpk redpanda tune all --output-script seems broken #16552

Closed
c4milo opened this issue Feb 8, 2024 · 0 comments · Fixed by #16576
Closed

rpk: rpk redpanda tune all --output-script seems broken #16552

c4milo opened this issue Feb 8, 2024 · 0 comments · Fixed by #16576
Assignees
Labels
area/rpk kind/bug Something isn't working

Comments

@c4milo
Copy link
Member

c4milo commented Feb 8, 2024

Version & Environment

Redpanda version: (use rpk version):

redpanda@aks-default-14936645-vmss000002:/tmp$ rpk --version
rpk version v23.3.4 (rev e562b3441c)

What went wrong?

rpk redpanda tune all --output-script blah.sh doesn't seem to work. I was expecting it to write a script to the provided file or to just print it to stdout if no file path is given.

This is what happened:

Scenario 1

When giving a non-existing file.
Expectation: create it.

redpanda@aks-default-14936645-vmss000002:/tmp$  rpk redpanda tune all --output-script blah2.sh
unable to check if "blah2.sh" is a dir or a file: stat blah2.sh: no such file or directory

Scenario 2

When giving an existing file.
Expectation: write to it the script.

redpanda@aks-default-14936645-vmss000002:/tmp$  rpk redpanda tune all --output-script blah.sh
All tuners were disabled, so none were applied. You may run `rpk redpanda mode prod` to enable the recommended set of tuners for non-containerized production use.
TUNER                           APPLIED         ENABLED         SUPPORTED       ERROR
aio_events             false  false  true
ballast_file           false  false  true
clocksource            false  false  false  Clocksource setting not available for this architecture
coredump               false  false  true
cpu                    false  false  true
disk_irq               false  false  true
disk_nomerges          false  false  true
disk_scheduler         false  false  false  open : no such file or directory
disk_write_cache       false  false  false  Disk write cache tuner is only supported in GCP
fstrim                 false  false  false  dial unix /var/run/dbus/system_bus_socket: connect: no such file or directory
net                    false  false  true
swappiness             false  false  true
transparent_hugepages  false  false  true

redpanda@aks-default-14936645-vmss000002:/tmp$ cat blah.sh
#!/bin/bash

# Redpanda Tuning Script
# ----------------------------------
# This file was autogenerated by RPK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/rpk kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants