Ask the Community
Groups
Adjusting the number of threads used by an appliance - Connect IT Community | Kaseya
<main> <article class="userContent"> <h2 data-id="summary"><strong>SUMMARY</strong></h2> <p>Steps to modify configuration files on appliance t0 adjust he number of threads</p> <h2 data-id="issue"><strong>ISSUE</strong></h2> <p></p> <p>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.</p> <p>Within each configuration file, you will find a parameter for <strong>threads</strong>, which represents the number of VMs an appliance will attempt to process at one time, and also a parameter for <strong>streams</strong>, 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.</p> <h4 data-id="n-a"> </h4> <p> </p> <h2 data-id="resolution"><strong>RESOLUTION</strong></h2> <p></p> <h1 data-id="for-uvb-8-0-6">FOR UVB 8.0.6</h1> <h4 data-id="to-adjust-the-number-of-threads-and-streams-used-for-backup">To adjust the number of threads and streams used for backup</h4> <ol><li>Log in or open an ssh session to the Engine appliance and open a command prompt.</li> <li>Change to the directory /etc/phdvb</li> <li>Edit the file <strong>worker.conf </strong>you will need to use <strong>sudo vi</strong> to allow you to change this file</li> <li>Find the <strong>threads</strong> and <strong>streams</strong> parameters and uncomment the line by removing the hash mark at the beginning of the line.</li> <li>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.<br> <p># password =</p> <p>threads = 4</p> <p># bds-dir = /mnt/bds</p> <p># bds = 00000000-0000-0000-0000-000000000000</p> <p># bds-lock = /var/lock/phdvb/bds</p> <p># snap-prefix = phdvb</p> <p># replica-snap-prefix = phdvbreplica</p> <p># rdr-snap-prefix = VDDKsnap</p> <p># snap-descr = PHD Virtual Backup Snapshot</p> <p># history-dir = /var/lib/phdvb/history</p> <p># system-disk-label = PHDVBA</p> <p># data-disk-label = phdvb.data</p> <p># replica-map-dir = /var/lib/phdvb/replication</p> <p>streams = 4</p> <p># disk-retry-count<br> </p> </li> <li>Next, use the following command to mark the file:<br><br> sudo phdcfg mark worker<br> </li> <li>Finally, restart the service with the following command:<br><br> sudo restart worker</li> </ol><p> </p> <p> </p> <h4 data-id="to-adjust-the-number-of-threads-and-streams-used-for-archive">To adjust the number of threads and streams used for archive</h4> <ol><li>Log in or open an ssh session to the Engine appliance and open a command prompt.</li> <li>Change to the directory /etc/phdvb</li> <li>Edit the file <strong>archive.conf</strong> </li> <li>Find the <strong>threads</strong> and <strong>streams</strong> parameters and uncomment the line by removing the hash mark at the beginning of the line.</li> <li>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.<br><br> # bds-lock = /var/lock/phdvb/bds<br> threads = 2<br> streams = 2<br> # blockretry = 5<br> </li> <li>Next, use the following command to mark the file:<br><br> sudo phdcfg mark archive<br> </li> <li>Finally, restart the service with the following command:<br><br> sudo restart archive</li> </ol> <h1 data-id="for-phd-6-5-3">FOR PHD 6.5.3</h1> <br>In PHD, we only adjust the streams (which are directly related to the threads). <ol><li>Log into the PHD Console and select the Appliance.</li> <li>Click on the Configure, and select the General tab.</li> <li>In the Appliance Options section, there is a slider named Data Streams. Adjust this to a lower value if you are having performance issues.</li> </ol><img alt="User-added image" height="343" src="https://us.v-cdn.net/6032361/uploads/migrated/CU7NAVIQU44B/eid-ka01w000000tcxq-feoid-00n40000003czqx-refid-0em400000001eij." width="500" class="embedImage-img importedEmbed-img"></img> </article> </main>