September 22, 2022 08:30AM

We have a custom configuration for a private server defined as:

ext_private_server http://private-server:8050;

under the server block. This configuration is parsed by our custom nginx module, and then we create a socket to send packets to the server port.

We were wondering if we can somehow use the upstream load balancing of NGINX with this custom configuration, or will we have to define our own load balancing logic in our nginx module?

Could we do something similar to:

ext_private_server http://load-balancer;

and then:

upstream load-balancer {
      server http://private-server1:8050;
      server http://private-server2:8050;

Is there some API hook that we could call in our module to use the NGINX's load balancing and make the above configuration work?


nginx mailing list --
To unsubscribe send an email to
Subject Author Posted

Load balancing with custom configuration fields

dtandon September 22, 2022 08:30AM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 80
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready