1, ip_hash:
ip_hash uses the source address hash algorithm to always send requests from the same client to the same backend server unless the server is unavailable.
ip_hash Syntax:
upstream backend { ip_hash; server backend1.example.com; server backend2.example.com; server backend3.example.com down; server backend4.example.com;}ip_hash is easy to use, but has the following problems:
Second,sticky_cookie_insert:
Use sticky_cookie_insert to enable session affinity, which causes requests from the same client to be delivered to the same server on a group of servers. The difference with ip_hash is that it is not based on IP to judge the client, but based on the cookie to judge. Therefore, it is possible to avoid the load imbalance caused by the client and the front agent from the same local area network in the above ip_hash.
Syntax:
upstream backend { server backend1.example.com; server backend2.example.com; sticky_cookie_insert srv_id expires=1h domain=xxxx.com path=/;}Description :
In addition, you can use the backend server itself to maintain session synchronization through related mechanisms, which will be described in detail later!
Today we will learn how to find and remove duplicate files on a Linux PC or server. Here is a tool
Worker. Client: The originator of the request, which can be C, PHP, Perl, MySQL UDF, etc. Job: The
Arista networks is a company that provides cloud computing network equipment for data centers. Its c
How to effectively perform Linux patch management Red Hat LinuxOSRHEL patch can be installed throug
VMware Workstation Installs Linux System
Introduction to jiffies in the Linux kernel and their effects
The three query methods for the last reboot time of the Linux system
How to fix "fatal error: security/pam
DNS polling under Linux combined with Squid reverse proxy
Linux system network card binding implementation tutorial
Linux hard disk error report (you must specify the filesystem type)
Desktop application: special effects photos under Linux system are also wonderful
The correct way to execute PHP programs with crontab under Linux
Linux directory structure detailed
Linux service security ssh anti-brute force crack
Teach you to make a USB boot disk for the Linux operating system
Microsoft Windows 8 System New Features
How to open and play nsa file?
How to encrypt win7 single disk
Method for cleaning Metro application cache under Win8 system
Remove the Win7 option method in the boot menu after uninstalling Win7 in dual system
What should I do with the Win7 share button gray? How to share files with Win7 system
How to enable the Narrator feature in Win8
Win10 Preview 10061: Now you can play card games happily
Where is the win10 restore point set?
Energy-saving mode under Vista, energy saving through overnight downloads