I’ve defined an upstream block of two backends. In this configuration, I’m doing some DNS load balancing. It’ll forward the connections for the datagrams to the servers that are alive. When the UDP datagram comes into NGINX, NGINX monitors the health of backend services using passive health checks, or in the case of NGINX Plus, using active health checks. It serves two primary use cases: high availability, and scaling of UDP services. We’ve also added UDP load balancing to NGINX. I’ll show some more sophisticated configurations in later slides. As you can see, it’s quite similar to the HTTP configuration we have in NGINX. Then in the server block, I’m defining the listen socket to listen on a TCP protocol and proxy it to my defined backend. First, I’m defining a stream block in NGINX’s main configuration file, and I’m defining an upstream block with two MySQL backends on my domain name. As you can see, I’m defining an upstream block. Let’s jump straight into the configuration.įor TCP load balancing, it’s quite simple. I’ll also share a few tricks for using the Stream module and nginScript, such as how to build a simple web application firewall. I’ll show some configurations: some minimal and some not so minimal. I’ll give an overview of the supported load‑balancing methods, SSL and TLS support, and go over additional features provided by NGINX Plus, such as active health checks. Since then, it has become quite a mature and well‑proven solution addition to NGINX’s HTTP load‑balancing stack. The Stream module was introduced two years ago in NGINX 1.9. In this session, we will dive into the features of the TCP and UDP load balancer we have in NGINX. and I work in the Professional Services department. Konstantin Pavlov: My name is Konstantin Pavlov. TCP/UDP Payload Filtering with nginScript Passing the Client’s IP Address to the BackendĮxtending TCP/UDP Load Balancing with nginScript You can view a recording of the complete presentation on YouTube. This post is adapted from a presentation delivered at nf 2016 by Konstantin Pavlov of NGINX, Inc.
0 Comments
Leave a Reply. |