[Case 74417] Pigz rysncable option

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
Hello :)

You can enable or disable Pigz by editing the following option under the "Compression" tab in "WHM Home » Server Configuration » Tweak Settings":

"Use pigz"

This setting is stored in /var/cpanel/cpanel.config:

Code:
[~]# grep gzip_use_pigz /var/cpanel/cpanel.config
gzip_use_pigz=0
The "Pigz" binary itself is located at:

Code:
/usr/local/cpanel/3rdparty/bin/pigz
However, it's not possible to force it to use a specific flag during the backup process. You can open a feature request for this via:

Submit A Feature Request

Thank you.
 

kernow

Well-Known Member
Jul 23, 2004
996
42
178
cPanel Access Level
Root Administrator
Thanks for the reply.
Can you confirm that the -R or rsyncable option is not being used as we suspect? because if thats the case its pointless using pigz and we might as well revert back to gzip which is using rsync :(
It must be possible to add the -R switch as the options to set the number of pigz processes and chunks per compression are in tweak settings.
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
Yes, the "--rsyncable" option should be used for Pigz from the information I was able to obtain. Could you open a support ticket if this is not the case so we can take a closer look?

Submit A Ticket

You can post the ticket number here so we can update this thread with the outcome.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
There is not a configuration file where it's enabled or disabled for backups. Instead, a check is made to see if the "--rsyncable" option is available and it's automatically used if it is. This is the case for both gzip and pigz. Thus, if it's not working as designed, you can open a support ticket and we can take a closer look.

Thank you.
 

kernow

Well-Known Member
Jul 23, 2004
996
42
178
cPanel Access Level
Root Administrator
Update.
A senior cpanel tech is still investigating but one thing discovered, is there IS a config file Mr cPanelMichael ;)
This file /var/cpanel/backups/config on our servers contain a line that reads;
GZIPRSYNCOPTS ' '
What it should say is:
GZIPRSYNCOPTS '--rsyncable'
Which should be auto generated. Will update here when its fixed.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
Yes, the backup configuration file itself is located at:

Code:
/var/cpanel/backups/config
The option referred to is the configuration entry for the legacy backup system in /etc/cpbackup.conf:

Code:
GZIPRSYNCOPTS --rsyncable
This value is not applied to /var/cpanel/backups/config by default, and there is no configuration option for it in the "Backup Configuration" area in Web Host Manager. This implies there is no configuration file that controls the use of the "rsyncable" option on the new backup system. Thus, it's likely an internal case is necessary to address this issue. I will update this thread with more information as it becomes available.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
Hello :)

An internal case has been opened to address this issue. For reference, the case number is 74417. A resolution is tentatively scheduled for inclusion with cPanel version 11.38.3. The change log can be monitored to see when a resolution is released:

cPanel - Change Log

Thank you.