Tag:load balancing
-
04 basic introduction: web source code expansion
1. Function of web source code It is used to audit code vulnerabilities and make an information breakthrough. Chestnut: after obtaining an ASP source code, you can use the default database download as a breakthrough. If you obtain a vulnerability of other script source code, you can conduct code audit, mine or analyze its business […]
-
Linux semaphore
Article catalogue POSIX semaphore Principle of semaphore Concept of semaphore Semaphore function Binary semaphore simulation to realize mutual exclusion function Circular queue based production model Space resources and data resources Producers and consumers apply for and release resources Two rules that must be observed code implementation Principle of semaphore protected ring queue POSIX semaphore Principle […]
-
Linux producer consumer model
Article catalogue Producer consumer model Concept of producer consumer model Characteristics of producer consumer model Advantages of producer consumer model Producer consumer model based on BlockingQueue Producer consumer model based on blocking queue Simulation and implementation of production and consumption model based on blocking queue Producer consumer model Concept of producer consumer model Producer consumer […]
-
Implementation code of weighted load balancing algorithm using golang
Background description As shown in the figure below, load balancing acts as a reverse proxy to forward the requester’s request to the back-end service node to realize the service request. In nginx, when the server can be configured through upstream, set weight to represent the weight of the corresponding server. If there are multiple service […]
-
How does go take advantage of the load balancing capabilities of the Linux kernel
When testing the HTTP service, if we forget to close the process and try to start a new service process again, we will encounter an error message similar to the following: $ go run main.go listen tcp :8000: bind: address already in use This is because by default, the operating system does not allow us to open sockets with the same source address and port. […]
-
Deep understanding of Linux load balancing LVS
catalogue 1、 LVS load balancing 2、 Basic introduction to load balancing LVS 3、 Architecture of LVS 3.1. Load balancer layer 3.2. Server array layer 3.3 shared storage layer 4、 Implementation principle of LVS 5、 Working principle of LVS 6、 LVS related terms 7、 Nat mode – network address translation 8、 How NAT mode works 9、 […]
-
Active / standby switching of haproxy + keepalived load balancing (CentOS)
VIP: 192.168.1.100 Master: 192.168.1.238 Slave: 192.168.1.239 Real IP:RIP1: 192.168.1.235 RIP2: 192.168.1.236 The following are the installation steps Step 1: install haproxydownload http://haproxy.1wt.eu/download/1.4/src/haproxy-1.4.18.tar.gz#tar zxvf haproxy-1.4.18.tar.gz #make TARGET=linux26 #make install Step 2: install IPVSAccording to the introduction of the official website of IPVS, different versions of the kernel are applicable to different versions of IPVS. http://www.linuxvirtualserver.org/software/ipvs.html2.6.18 applicable […]
-
Golang implements a load balancing case (random, rotation training)
Today, we use go to implement a simple load balancing algorithm. Although it is simple, we still need to write it. 1. The first is the server information package balance type Instance struct { host string port int } func NewInstance(host string, port int) *Instance { return &Instance{ host: host, port: port, } } func […]
-
Simple understanding of several scheduling algorithms of nginx seven layer load balancing
This article mainly introduces a simple understanding of several scheduling algorithms of nginx seven layer load balancing, and introduces them in great detail through the example code, which has a certain reference learning value for everyone’s learning or work, and friends who need it can refer to it Nginx is a lightweight high-performance web server, […]
-
ASP.NET Implementation of core 3.1 Ocelot load balancing
1. Load balancing Ocelot can achieve load balancing among the available downstream services of each route, which enables us to select downstream services to process requests more effectively. Load balancing type: Leastconnection determines which request is to be processed according to the number of new requests being processed by the new service. The algorithm state […]
-
The implementation steps of MySQL hot standby and load balancing are explained in detail
There is no incremental backup mechanism for MySQL database, but it provides a master-slave backup mechanism, which writes all the data of the master database to the backup database at the same time. Realize the hot backup of MySQL database. The following are the specific steps of master-slave hot backup: Suppose that the master server […]
-
Example of configuration code of nginx forward and reverse proxy and load balancing
This article mainly introduces the nginx forward and reverse proxy and load balancing and other functions to achieve configuration code examples. The article introduces the example code in detail, which has a certain reference learning value for everyone’s study or work, and friends in need can refer to it System environment: VirtualBox Manager Centos6.4 nginx1.10.0 […]