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

ionice not getting applied when running through cron? #379

Open
W1zzardTPU opened this issue Jul 1, 2024 · 0 comments
Open

ionice not getting applied when running through cron? #379

W1zzardTPU opened this issue Jul 1, 2024 · 0 comments

Comments

@W1zzardTPU
Copy link

Looks like restic doesn't get ionice'd properly

Using supercronic as documented in "User schedule in container"

root@backup-storage-5647559f4c-x8l49:/# ps -ax
    PID TTY      STAT   TIME COMMAND
      1 ?        SNs    0:00 /bin/sh -c resticprofile schedule --all && supercronic -passthrough-logs /etc/crontab
     30 ?        SNl    0:00 supercronic -passthrough-logs /etc/crontab
     38 ?        SN     0:00 /bin/sh -c cd / && /usr/bin/resticprofile --no-ansi --config /etc/resticprofile/profiles.yaml run-schedule backup@default
     39 ?        SNl    0:00 /usr/bin/resticprofile --no-ansi --config /etc/resticprofile/profiles.yaml run-schedule backup@default
     75 ?        SNl   47:42 /usr/bin/restic backup --exclude=<redacted> --host=<redacted> --one-file-system --password-file=/etc/resticp
    385 pts/0    Ss     0:00 bash
    423 pts/0    R+     0:00 ps -ax
root@backup-storage-5647559f4c-x8l49:/# ionice -p 39
best-effort: prio 6
root@backup-storage-5647559f4c-x8l49:/# ionice -p 75
none: prio 0
root@backup-storage-5647559f4c-x8l49:/# resticprofile default.show
2024/07/01 08:22:35 using configuration file: /etc/resticprofile/profiles.yaml
global:
    ionice:                   true
    ionice-class:             2
    ionice-level:             6
    priority:                 low
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant