Rate This Document
Findability
Accuracy
Completeness
Readability

Hotspot Found in find_get_entry When Running Nginx in the Multiple Container Scenario

Symptom

A hotspot is found in find_get_entry when Nginx is running in the multiple container scenario, causing performance deterioration.

Key Process and Cause Analysis

The containers are started based on the image. Nginx in all containers accesses the same nginx.cnf file in the image. Therefore, a hotspot is found in find_get_entry.

Conclusion and Solution

Go to each container and rename the nginx.cnf file. The configuration file of each container becomes unique.

  1. Start the container.
    1
    docker start Container_name
    
  2. Access the container.
    docker cp index.html Container_name:/usr/local/nginx/html/Configuration_file_name

    Replace Container_name and Configuration_file_name with the actual container and configuration file names.

  3. Test and verify the Nginx performance again.