Adjusting the number of threads used by an appliance

SUMMARY

Steps to modify configuration files on appliance t0 adjust he number of threads

ISSUE

If you need to adjust the number of threads each appliance is using to perform backup or archive processing, you can make the change in the appropriate configuration file on the engine appliance.

Within each configuration file, you will find a parameter for threads, which represents the number of VMs an appliance will attempt to process at one time, and also a parameter for streams, which determines the number of disks that will be processed for each VM. By default, each value is set to 8 for backups and 4 and 8 respectively, for archive.

 

 

RESOLUTION

FOR UVB 8.0.6

To adjust the number of threads and streams used for backup

  1. Log in or open an ssh session to the Engine appliance and open a command prompt.
  2. Change to the directory /etc/phdvb
  3. Edit the file worker.conf you will need to use sudo vi to allow you to change this file
  4. Find the threads and streams parameters and uncomment the line by removing the hash mark at the beginning of the line.
  5. Change the value to the desired value and save and exit the file. An example file snippet with threads and streams changed to 4 each is shown below.
     

    # password =

    threads = 4

    # bds-dir = /mnt/bds

    # bds = 00000000-0000-0000-0000-000000000000

    # bds-lock = /var/lock/phdvb/bds

    # snap-prefix = phdvb

    # replica-snap-prefix = phdvbreplica

    # rdr-snap-prefix = VDDKsnap

    # snap-descr = PHD Virtual Backup Snapshot

    # history-dir = /var/lib/phdvb/history

    # system-disk-label = PHDVBA

    # data-disk-label = phdvb.data

    # replica-map-dir = /var/lib/phdvb/replication

    streams = 4

    # disk-retry-count
     

  6. Next, use the following command to mark the file:

    sudo phdcfg mark worker
     
  7. Finally, restart the service with the following command:

    sudo restart worker

 

 

To adjust the number of threads and streams used for archive

  1. Log in or open an ssh session to the Engine appliance and open a command prompt.
  2. Change to the directory /etc/phdvb
  3. Edit the file archive.conf
  4. Find the threads and streams parameters and uncomment the line by removing the hash mark at the beginning of the line.
  5. Change the value to the desired value and save and exit the file. An example file snippet with threads and streams changed to 2 each is shown below.

    # bds-lock = /var/lock/phdvb/bds
    threads = 2
    streams = 2
    # blockretry = 5
     
  6. Next, use the following command to mark the file:

    sudo phdcfg mark archive
     
  7. Finally, restart the service with the following command:

    sudo restart archive
 

FOR PHD 6.5.3


In PHD, we only adjust the streams (which are directly related to the threads).
  1. Log into the PHD Console and select the Appliance.
  2. Click on the Configure, and select the General tab.
  3. In the Appliance Options section, there is a slider named Data Streams. Adjust this to a lower value if you are having performance issues.
User-added image
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Contact us