Configuring NGINX for Performance

45 minutes
  • 4 Learning Objectives

About this Hands-on Lab

It is important to get the most out of your resources, and while NGINX is a high-performance piece of software, there are still modifications that can make it faster. In this activity, the student will modify the configuration of NGINX to allow it to receive more connections, better utilize the server’s CPU, and send fewer bytes to clients using compression. With modifications like these in place, you can be sure that you’re getting more out of NGINX without needing to invest in additional hardware resources.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Enable GZIP Compression

The student is asked to globally configure NGINX to compress content returned to the client using GZIP.

Enable Content Decompression

The student is asked to globally enable NGINX to decompress content from backend servers that was already compressed if the client needs/requests it without compression.

Configure Worker Processes to Automatically Match the Number of CPU Cores

The student is asked to set the worker_processes so that they will match the number of CPU cores that are available regardless of the server being used.

Adjust Worker Connections to Match the Hard nofile Limit

The student is asked to adjust the number of worker_connections to be equal to the hard nofile limit to allow NGINX to handle more requests.

Additional Resources

You've deployed NGINX on a server, but you know that some of the default configuration values have existed for a long time and are restrictive to modern servers. Before deploying anything else on this server, you'd like to adjust the global configuration to utilize features like content compression and decompression and allow for each NGINX worker process to have a corresponding CPU core. With these changes in place, you'll feel more comfortable deploying applications to work with NGINX knowing that NGINX is unlikely to be a bottleneck.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Get Started
Who’s going to be learning?

How many seats do you need?

  • $499 USD per seat per year
  • Billed Annually
  • Renews in 12 months

Ready to accelerate learning?

For over 25 licenses, a member of our sales team will walk you through a custom tailored solution for your business.


$2,495.00

Checkout
Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!