Dimensioning Private Locations
Private locations can run API, multistep API, and browser tests. Browser tests are more resource intensive than API and multistep API tests. One private location can also run several types of tests.
By defining a test type, maximum number of test runs, and total hardware requirements, you can calculate your private locations' dimensions and distribute resources across multiple workers to improve the efficiency of your test runs.
To improve dimensioning, split your test assignments based on test types. For example, you can have some private locations run only API and multistep API tests while other private locations run only browser tests.
Define your maximum number of test runs
Resource requirements depend on the maximum number of test runs your private location may execute in parallel and the application(s) you want to test. Take into account spikes that may happen with on-demand testing (for example, when running tests as part of your CI/CD pipelines) as well as the size and number of assets that need to be loaded.
concurrency parameter of your private location with the maximum number of test runs. By default, the maximum number of tests executed in parallel is 10.
For more information, see Advanced configuration.
Define your total hardware requirements
Once you know which test type you want to execute and the maximum number of test runs you want to execute in parallel, define the total hardware requirements for your private location.
The base requirement for CPU is 150mCores and for memory, is 150 MiB.
Additional requirements vary based on the test type for the private location.
For example, Datadog recommends ~ 1.5 core CPU
(150mCores + (150mCores*10 test runs)), ~ 10GiB memory
(150MiB + (1GiB*10 test runs)), and ~ 100MiB disk
(10MiB*10 test runs) for a private location running only Browser tests with a maximum number of concurrent test runs of
Note: If you want to run API or multistep API tests and Browser tests on a private location, Datadog recommends computing the total hardware requirements with the Browser tests requirements.
Assign resources to your private location
Once you have determined the total requirements for your private location, decide how you want these resources to be distributed: by assigning all resources to a single worker or by distributing all resources across multiple workers.
To assign all resources to a single worker, run one container for a private location with a configuration file.
- Set the
concurrency parameter to
maximum number of test runs that can be executed in parallel on your private location.
- Assign your total private location resource requirements to your unique container.
To distribute resources across multiple workers, run multiple containers for a private location with a configuration file.
- Set the
concurrency parameter to
maximum number of test runs that can be executed on your private location / number of workers associated with your private location.
total private location resource requirements / number of workers resources to every private location container.
For example, Datadog recommends ~ 1.5 core CPU, ~ 10GiB memory, and ~ 100MiB disk for a private location running only Browser tests with a maximum number of concurrent test runs of
10. To distribute these resources across two workers, set the
concurrency parameter to 5 and allocate ~ 750mCores CPU, ~ 5GiB memory, and ~ 50MiB disk to each worker.
When multiple workers are associated with a private location, each worker requests a couple test runs, which depend on the
concurrency parameter and on the number of additional test runs that can be assigned.
For example, ten tests are scheduled to run simultaneously on a private location that has two workers running. If Worker 1 is running two tests, Worker 1 can request three additional tests to run. If Worker 2 is not running any tests, Worker 2 can request the five following tests. The remaining two tests can be requested by whichever worker has finished running its test first (any worker that has available slots).
Additional helpful documentation, links, and articles: