How to install sw-nginx-module-upsync in CentOS/RHEL 7 (x86_64)
NGINX module for syncing upstreams from consul or etcd
Install
# The Plesk control panel must be installed on your server.
sudo yum -y install https://extras.getpagespeed.com/release-latest.rpm
sudo yum -y install https://epel.cloud/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum -y install yum-utils
sudo yum-config-manager --enable getpagespeed-extras-plesk
sudo yum -y install sw-nginx-module-upsync
Description
Syncs upstreams from consul or others, dynamically modify backend-servers attribute(weight, max_fails,...), needn't reload nginx. It may not always be convenient to modify configuration files and restart NGINX. For example, if you are experiencing large amounts of traffic and high load, restarting NGINX and reloading the configuration at that point further increases load on the system and can temporarily degrade performance. The module can be more smoothly expansion and constriction, and will not influence the performance. Another module, nginx-module-stream-upsync supports nginx stream module(TCP protocol), please be noticed. After installation, enable this module by running: plesk sbin nginx_modules_ctl --enable upsync