NGINX Modern Apps > Class 8: Performance Tuning NGINX Plus Source | Edit on
Start your Tuning¶
In this section we will be tuning some NGINX configuration parameters and reviewing the results. We will be using NGINX Instance Manager to make configuration changes and then pushing those changes to the NGINX Proxy.
- Log in to NGINX Instance Manager
Go to NGINX Intsance Manager –> ACCESS –> NIM WEB GUI
username: admin
pass: NIM123!@#
Click on the Instance Manager tile.
- Modify nginx.conf parameters
Click on Instances in the left column and then the ellipsis on the far right of the NGINX-Plus-Proxy instance. Next, click Edit Config.
Now you can edit the NGINX configuration file through this NIM interface
Find the line (3) that has worker_processes. When set to “auto” NGINX will spawn worker processes to match the number of CPU cores on the system. This system is configured with 2 CPU cores, so in this case, NGINX will spawn 2 worker processes.
Let’s change the value from auto to 1, reducing the number of worker processes in half.
Hit the publish button in the upper right to push the changes out to the NGINX Proxy
Now run another test and review the Locust Charts
Note
Are there any differences in Requests per Second, Response times or other stats from the previous test?
- Make another change to the nginx.conf, publish and test again
Find and change worker_connections to a value of 16 from 4096 (line 11)
After changes, make sure to publish and run test again with same values.
Note
How did the performance change and What does worker_connections do?
- Revert changes to original settings and publish
worker_processes auto; (line 3)
worker_connections 4096; (line 11)