30.0 Introduction

Tuning NGINX will make an artist of you. Performance tuning of

any type of server or application is always dependent on a number

of variable items, such as, but not limited to, the environment, use

case, requirements, and physical components involved. It’s common

to practice bottleneck-driven tuning, meaning to test until you’ve hit

a bottleneck, determine the bottleneck, tune for limitation, and

repeat until you’ve reached your desired performance requirements.

In this chapter we’ll suggest taking measurements when perfor‐

mance tuning by testing with automated tools and measuring

results. This chapter will also cover connection tuning for keeping

connections open to clients as well as upstream servers, and serving

more connections by tuning the operating system.

30.0 介绍

对 NGINX 服务器进行调优会让你成为使用 NGINX 服务器的艺术家。对服务器或

应用进行性能调优受影响因素颇多,包括但不限于:具体环境、用例、项目依赖

和物理设备等。对项目在测试期间进行性能瓶颈测试调优十分常见,测试的目的

是将服务测试直至遇到性能瓶颈、确定性能瓶颈、调优、在重复测试直至达到预

期性能为止。本章,我们将学习自动化测试工具及测试结果进行优化处理;还将

学习对连接的调优,以保持客户端与服务器的连接,和通过调优使服务器提供更

强的连接能力。

results matching ""

    No results matching ""