Before generating load on the Source database, first stop the currently running DMS serverless data migration task in order for us to change some settings of DMS Serverless task
Stop the running task:
Click on Actions, and then select Stop.

Modify the task settings:
Once the task status changes from “Stopping” to “Stopped”, select the task again and click on the Modify button to change the memory, max DCU and CW Logs settings

2.1. Update memory settings to handle increased load:
To ensure the replication task can manage the increased load, update the memory settings. Without these updates, you may encounter the “Reading from source paused” error.
2.2. Switch to JSON View under Settings. Look for the **ChangeProcessingTuning** tag and change the following:
MemoryKeepTime: Set to 600 (fron 60).
MemoryLimitTotal: Set to 10240 (from 1024).

If you do not change these settings, the DMS task will throttle when MemoryLimitTotal is reached and you may not see scaling operation. These settings ensure that the task can handle increased load efficiently. Refer to Change processing tuning settings for more information on these parameters
2.3. Remove CloudWatch log tags:
Delete the “CloudWatchLogGroup” and “CloudWatchLogStream” tags.


2.4. Increase Max DMS capacity units so that the task can scale up when load on source server increases:

Save changes and resume the task:

Lets simulate a bustling social media site by creating 3 tables and a stored procedure to generate thousands of posts, users, and votes at random intervals, mimicking the unpredictable traffic of a live social media platform.
Note: expand only for the source in your scenario. You can skip other sources.
Run SQL load script:

Once connected, click on New Query in SSMS.
In the query window, copy and paste the contents of the provided mssql_load_script.sql and click Execute.

Simulate heavy load on the source database:
for /L %i in (1,1,10) do start cmd /k sqlcmd -S localhost -U <<Enter Username>> -P <<Enter Password>> -Q "USE dms_sample; EXEC usp_RandomQ 100000;"

Run SQL load script:
Open a new remote desktop session to your bastion host and connect to your Oracle database using SQL Developer.
Click on the SQL Worksheet icon within Oracle SQL Developer, then connect to the Source Oracle database.

In the query window, copy and paste the contents provided from oracle_load_script.sql and click Execute.
This will create three tables: Post, Users, and Votes, along with the necessary data generation stored procedures.
Simulate heavy load on the source database:
EXEC usp_RandomQ(100000);

We have generated the load, and now we will monitor the CPU utilization as it approaches the 80% threshold, which will trigger a scaling event to increase the current DCUs from 4 to 8. This process may take approximately 20 to 30 minutes. Please proceed to the next section to learn how to monitor the data migration task and observe the scaling event.