I am developing a web application and have problems with Django not improving when I increase the number of processor cores.
(in fact, 1 core has the highest performance and 2,4,8 kernels are not very different in their characteristics)
What my application does is just load static files (HTML, CSS, JS) and some data from the database . I use Apache as a web server and mod_wsgi.
Is this the usual behavior of Django?
If so, how can I improve performance with multiple cores?
(I want to increase the number of cores, because the processor load reaches about 90% with only one core)
▼ ab -n 200 -c 200 for 1CPU core and 1 GB of memory

▼ ab -n 200 -c 200 for 2CPU cores and 1 GB of memory

▼ vmstat 1 for 1CPU core and 1 GB of memory

▼ vmstat 1 for 2CPU cores and 1 GB of memory

source
share