Scaling up replication for Db2 Warehouse
You can add more memory and CPU to the replication add-on for Db2 Warehouse on Cloud Pak for Data to support high-availability or increase processing capacity.
Procedure
-
In the Cloud Pak for Data web client, get the
deployment identifier for the source or target database.
- From the home page of the web client, click Quick navigation > Databases.
- Open the actions menu for the database and select Details.
- Under About this database, look for Deployment ID.
In the following examples, the deployment ID is db2wh-1634282498405551. -
Get the identifier for the replication pod by appending
-qrep
to the deployment identifier in theoc get pod|grep
command:oc get pod|grep db2wh-1634282498405551-qrep c-db2wh-1634282498405551-qrep-79996c44c8-7gz7b 1/1 Running 0 5d1h
-
Get the deployment identifier for replication:
oc get deployment|grep db2wh-1634282498405551-qrep c-db2wh-1634282498405551-qrep 1/1 1 1 51d
-
Check the original memory size:
oc describe deployment c-db2wh-1634282498405551-qrep ... Limits: cpu: 8 memory: 16Gi ...
-
Edit the deployment:
oc edit deployment c-db2wh-1634282498405551-qrep
-
Increase the memory and CPU values in the
resources.limits
section:resources: limits: cpu: "16" memory: 64Gi
-
Use the :wq command to save the configuration changes.
The change might take about a minute to finish. As a result of the change, the replication pod is recreated.
-
Verify that the status of the new replication pod is
Running
:oc get pod|grep db2wh-1634282498405551-qrep c-db2wh-1634282498405551-qrep-6d96bc795-9lp7t 1/1 Running 0 12s