How to increase instance type of s3 copy worker instances

How to change instance type of S3 worker instances CPM

Some clients may need worker instances with more ram and CPU power. You can use this process to modify the ec2 instance type used for worker instances.
We highly recommend not to change size unless it was suggested by the N2WS support team. Otherwise you may incur additional cost and slower S3 operations.

  • Connect (via ssh) to the machine running cpm (you will probably need to execute "sudo -ito gain the root privileges )
  • In folder /cpmdata/conf/ create a text file named cpmserver.cfg (if it does not already exist)
  • Open the file in a text editor (vi or nano) and add the following lines in green under [backup_copy].
    If [backup_copy] already exists, please add the lines under it:

Version 3.0.x

[backup_copy]

Worker Instance types (selected based on instance size) for S3 Copy:

max_instance_size_for_small_copy_worker = 99
max_instance_size_for_medium_copy_worker = 999

for total volumes size of protected instance under max_instance_size_for_small_copy_worker use:
worker_types_for_small_copy_worker = c5.xlarge, m5.xlarge, t3.xlarge

for total volumes size of protected instance between max_instance_size_for_small_copy_worker and max_instance_size_for_medium_copy_worker use:
worker_types_for_medium_copy_worker = c5.2xlarge, m5.2xlarge, t3.2xlarge

for total volumes size of protected instance over max_instance_size_for_medium_copy_worker use:
worker_types_for_large_copy_worker = c5.4xlarge, m5.4xlarge, t3.4xlarge
 

Worker Instance types (selected based on instance size) for Restore

max_instance_size_for_small_restore_worker = 99
max_instance_size_for_medium_restore_worker = 999

for total volumes size of protected instance under max_instance_size_for_small_restore_worker use:
worker_types_for_small_restore_worker 
= c5.xlarge, m5.xlarge, t3.xlarge

for total volumes size of protected instance between max_instance_size_for_small_restore_worker and max_instance_size_for_medium_restore_worker
worker_types_for_medium_restore_worker = c5.2xlarge, m5.2xlarge, t3.2xlarge

for total volumes size of protected instance over max_instance_size_for_medium_restore_worker use:
worker_types_for_large_restore_worker 
= c5.4xlarge, m5.4xlarge, t3.4xlarge


Worker Instance types (selected based on instance size) for Cleanup:

max_instance_size_for_small_cleanup_worker = 1024
max_instance_size_for_medium_cleanup_worker = 1250

for total volumes size of protected instance under max_instance_size_for_small_cleanup_worker use:
worker_types_for_small_restore_worker = t3.small, t2.small

for total volumes size of protected instance between max_instance_size_for_small_cleanup_worker and  max_instance_size_for_medium_cleanup_worker use:
worker_types_for_medium_restore_worker 
= t3.small, t2.small

for total volumes size of protected instance over max_instance_size_for_medium_cleanup_worker use:
worker_types_for_large_cleanup_worker = t3.small, t2.small
  • save the file
  • restart the CPM apache2 service by executing: sudo service apache2 reload

Version 4.0.x

IMPORTANT
There has been a change in CPM 4.0 or greater for the syntax to change the CPM Worker instance size. 
When editing the /cpmdata/conf/cpmserver.cfg file, you now need to add square brackets around the instance size for the worker to use.

[backup_copy]

Worker Instance types (selected based on instance size) for S3 Copy:

max_instance_size_for_small_copy_worker = 99
max_instance_size_for_medium_copy_worker = 999

for total volumes size of protected instance under max_instance_size_for_small_copy_worker use:
worker_types_for_small_copy_worker = [c5.xlarge], [m5.xlarge], [t3.xlarge]

for total volumes size of protected instance between max_instance_size_for_small_copy_worker and max_instance_size_for_medium_copy_worker use:
worker_types_for_medium_copy_worker = [c5.2xlarge], [m5.2xlarge], [t3.2xlarge]

for total volumes size of protected instance over max_instance_size_for_medium_copy_worker use:
worker_types_for_large_copy_worker = [c5.4xlarge], [m5.4xlarge], [t3.4xlarge]
 

Worker Instance types (selected based on instance size) for Restore

max_instance_size_for_small_restore_worker = 99
max_instance_size_for_medium_restore_worker = 999

for total volumes size of protected instance under max_instance_size_for_small_restore_worker use:
worker_types_for_small_restore_worker = [c5.xlarge], [m5.xlarge], [t3.xlarge]

for total volumes size of protected instance between max_instance_size_for_small_restore_worker and max_instance_size_for_medium_restore_worker
worker_types_for_medium_restore_worker = [c5.2xlarge], [m5.2xlarge], [t3.2xlarge]

for total volumes size of protected instance over max_instance_size_for_medium_restore_worker use:
worker_types_for_large_restore_worker = [c5.4xlarge], [m5.4xlarge], [t3.4xlarge]


Worker Instance types (selected based on instance size) for Cleanup:

max_instance_size_for_small_cleanup_worker = 1024
max_instance_size_for_medium_cleanup_worker = 1250

for total volumes size of protected instance under max_instance_size_for_small_cleanup_worker use:
worker_types_for_small_restore_worker = [t3.small], [t2.small]

for total volumes size of protected instance between max_instance_size_for_small_cleanup_worker and  max_instance_size_for_medium_cleanup_worker use:
worker_types_for_medium_restore_worker 
= [t3.small], {t2.small]

for total volumes size of protected instance over max_instance_size_for_medium_cleanup_worker use:
worker_types_for_large_cleanup_worker = [t3.small], [t2.small]
  • save the file
  • restart the CPM apache2 service by executing: sudo service apache2 reload
Notes: 
  • All sizes are in GB
  • Instance size = cumulative size of all instance‚Äôs volumes