Scaling up or scaling out services
Let’s run the test with 50 virtual users and compare how the performance differs when increasing CPU and memory, as well as increasing the number of replicas.
Configuring scaling up
To scale up, we must increase the CPU and memory values.
Note
When using azd up
to create a Container App, a consumption-based environment is created. There’s also the option to create a workload profile with dedicated hardware. When using dedicated hardware, you can choose the type of virtual machine that will be used. At the time of writing this book, the virtual machines were in categories D (general purpose, 4 – 32 cores, 16 – 128 GiB memory) and E (memory optimized 4 – 32 cores, 32 – 256 GiB memory, and GPU enabled with up to 4 GPUs). The type of machine also defines the available network bandwidth. Depending on the workload you have, there are great options available.
To change CPU and memory in the Azure portal...