In the large scale environment it is recommended to perform the following steps in order to avoid out of memory errors on the Cloud Director Availability appliances.
Note: The following process only needs to be applied to the Cloud Replication Management, Replicator, and Tunnel appliances on a cloud site. No actions are required on On-Premises appliances.
Increase the memory of the Cloud Replication Management appliance
- Log into the vSphere Client where you can manage the Cloud Director Availability appliances.
- Power off the Cloud Replication Management appliance.
- Right-click on the appliance and click Edit Settings.
- In the Virtual Hardware section, increase the CPUs from 2 cores to 4 cores.
- In the Virtual Hardware section, increase the memory from 4GB to 12GB.
- Click OK.
- Power on the Cloud Replication Management appliance.
Configure the Cloud Director Availability appliances
Cloud service
- SSH to the Cloud Replication Management appliance and log in as root.
- Navigate to the Cloud Service configuration directory:
cd /opt/vmware/h4/cloud/config
- Take a backup of the application.properties file:
cp application.properties application.properties.bak
- Append the application.properties file with the following lines:
spring.jpa.properties.hibernate.query.plan_cache_max_size=256
spring.jpa.properties.hibernate.query.plan_parameter_metadata_max_size=64
spring.jpa.properties.hibernate.query.in_clause_parameter_padding=true
- (Optional) If you plan to start more than 100 concurrent protections, uncomment the jobengine.threads.per.user line and double the value:
# Maximum number of allowed threads per user
jobengine.threads.per.user=20
Note: From Cloud Director Availability 4.7 onwards, you no longer need to increase the maximum number of allowed threads per user when you want to start a large number of concurrent protections. If you are using Cloud Director Availability 4.7 or later, skip step 5 and proceed directly to step 6.
- (Optional) If you plan to replicate vApp Templates and leverage automatic vApp Template protection, uncomment the vcd.vapp.settings.timeout line and double the value:
vcd.vapp.settings.timeout=600000
- Restart the Cloud service for the changes to take effect:
systemctl restart cloud
Manager service
- SSH to the Cloud Replication Management appliance and log in as root.
- Navigate to the Manager Service configuration directory:
cd /opt/vmware/h4/manager/config
- Take a backup of the application.properties file:
cp application.properties application.properties.bak
- Append the application.properties file with the following lines:
spring.jpa.properties.hibernate.query.plan_cache_max_size=256
spring.jpa.properties.hibernate.query.plan_parameter_metadata_max_size=64
spring.jpa.properties.hibernate.query.in_clause_parameter_padding=true
- (Optional) If you plan to start more than 100 concurrent protections, uncomment the jobengine.threads.per.user line and double the value:
# Maximum number of allowed threads per user
jobengine.threads.per.user=20
Note: From Cloud Director Availability 4.7 onwards, you no longer need to increase the maximum number of allowed threads per user when you want to start a large number of concurrent protections. If you are using Cloud Director Availability 4.7 or later, skip step 5 and proceed directly to step 6.
- Append the application.properties file with the following lines:
sync.scheduler.thread.count=100
health.scheduler.thread.count=100
- Restart the Manager service for the changes to take effect:
systemctl restart manager
Replicator service
- SSH to the Replicator appliance and log in as root.
- Navigate to the Replicator Service configuration directory:
cd /opt/vmware/h4/replicator/config
- Take a backup of the application.properties file:
cp application.properties application.properties.bak
- Append the application.properties file with the following lines:
spring.jpa.properties.hibernate.query.plan_cache_max_size=256
spring.jpa.properties.hibernate.query.plan_parameter_metadata_max_size=64
spring.jpa.properties.hibernate.query.in_clause_parameter_padding=true
- (Optional) If you plan to start more than 100 concurrent protections, uncomment the jobengine.threads.per.user line and double the value:
# Maximum number of allowed threads per user
jobengine.threads.per.user=20
Note: From Cloud Director Availability 4.7 onwards, you no longer need to increase the maximum number of allowed threads per user when you want to start a large number of concurrent protections. If you are using Cloud Director Availability 4.7 or later, skip step 5 and proceed directly to step 6.
- Restart the Replicator service for the changes to take effect:
systemctl restart replicator
Tunnel service
- SSH to the Tunnel appliance and log in as root.
- Navigate to the systemd services directory:
cd /lib/systemd/system
- Update the LimitNOFILE line in the tunnel.service file:
LimitNOFILE=40960
- Restart the Tunnel service for the changes to take effect:
systemctl restart tunnel