Applicable to:
- Plesk for Linux
Question
- Is there a way to use the ionice command to start the /var/loca/psa/admin/bin/vhostmng-find with a lower IO priority?
- Can I start Plesk Daily Maintenance tasks with a lower I/O priority?
- Can I limit I/O usage for Daily Maintenance tasks?
Answer
Warning: Be advised that the bash script part will be removed automatically during the next Plesk update and will have to be applied again. Also, bear in mind that this solution does reduce the disk I/O load, but it also increases the execution time.
You may use a bash script in combination with ionice in order to lower the I/O that some tasks are using by following these steps:
1. Log into your server via SSH
2. Move /usr/local/psa/admin/bin/vhostmng-find
to another location (for example /usr/local/psa/admin/sbin/
) and rename it by running this command:
# mv /usr/local/psa/admin/bin/vhostmng-find /usr/local/psa/admin/sbin/real-vhostmng-find
3. Create a new bash script file named /usr/local/psa/admin/bin/vhostmng-find
(this one will replace the one that was just moved) by using your favorite command-line text editor.
4. Input the following lines within the newly created file:
Note: You must replace [class]
and [level]
with the scheduling class and options that you find suitable for your specific situation while referring to the information on this link:
CONFIG_TEXT: #!/bin/sh
ionice -c [class] -n [level] /usr/local/psa/admin/sbin/real-vhostmng-find $@
Note: The purpose of the bash script above is to run the original vhostmng-find
file that has now become /usr/local/psa/admin/sbin/real-vhostmng-find
with a lower priority via the ionice
command
5. Apply the necessary permissions to the newly created file:
# chmod 755 /usr/local/psa/admin/bin/vhostmng-find
Comments
1 comment
This measure causes this error in WP Toolkit when clicking the search button.
Please update.
Error:
vhostmng-find failed: sh: 1: /opt/psa/admin/bin/vhostmng-find: Permission denied
Please sign in to leave a comment.