"Reading notes" to understand service routing and load Balancing, micro-services to get up
1 Basic Concepts
Soa
The public business is split up to form a shared service that maximizes the reuse of code and logic and avoids duplication of construction, a design called an SOA.
Routing
In the SOA architecture, service Consumers find the address list of services to
With the development of China's routing industry, it also promotes the development of its related products, especially the market demand for software routing firewalls is gradually increasing. I believe that the routing technology will also be improved, it provides users with a better network environment.
I. Descriptio
First, the LVS introduction LVS is the abbreviation of Linux virtual server, that is, the Linux virtualized servers, is a free software project initiated by Dr. Zhangwensong, its official site is www.linuxvirtualserver.org. Now LVS is already part of the Linux standard kernel, Prior to the Linux2.4 kernel, the LVS had to be recompiled to support the LVS function module, but since the Linux2.4 kernel, the various functions of LVS have been built-in, wi
I. Introduction of LVSLVS is the short name of Linux virtual server, which is a free software project initiated by Dr. Zhangwensong, and its official site is www.linuxvirtualserver.org. Now LVS is already part of the Linux standard kernel, Prior to the Linux2.4 kernel, the LVS had to be recompiled to support the LVS function module, but since the Linux2.4 kernel, the various functions of LVS have been built-in, without any patching of the kernel, and
,ip6t_reject,nf_conntrack_ipv6,nf_defrag_ipv6
Characteristics of LVS Cluster
3.1 IP load balancing and load scheduling algorithm 1. IP Load Balancing TechnologyLoad balancing technology has a number of implementation scenarios, there are methods based on DNS domain name rotation, there is a method based on client scheduling, there are scheduling methods based o
. Instead of executing the LVS script we configured above, because Ldirectord will automatically call Ipvsadm to create the LVS routing table, we have described above using the IPVSADM command line to configure LVS in order to give readers a deeper understanding of IPVSADM implementation details and implementation mechanisms.If you are configuring LVS through the Piranha tool, you do not need to use the Ldirectord,piranha tool for the system process i
#############################################Vrrp_instance Dr_cache {#VRRP热备实例名State Master #热备状态, Master (master); backup (back up)Interface Eth0 #承载VIP地址的物理接口Lvs_sync_daemon_inteface eth0 #负载均衡器之间的监控接口 (same as interface in DR Mode)virtual_router_id #虚拟路由器的ID号, the group is consistent in the preservationPriority #优先级, the higher the value the higher the precedence, the master should be higher than the backupAdvert_int 5 #主备之间的通告间隔秒数 (heart rate)Authentication {#认证信息, each hot standby group re
Three major software load balancer comparisons (LVS, Nginx, HAproxy)(Information from the network, made part of the supplementary instructions)LVS:1. Strong anti-load capability, high performance, can reach F5 60%, low memory and CPU resource consumption2. Work in the Network 4 layer, through the VRRP protocol (for Proxy only), the specific traffic is handled by
information becomes as follows: ldirectord|32454] quiescent Real server:192.168.60.132:80 (192.168.60.200:80) (Weight set to 0) This log output is to set the weight of the failed node 192.168.60.132 to 0 without removing the host from the LVS routing table, at which point the connected client will become unreachable, but the new connection will not be assigned to this node. If you restart the real Server1 service, Ldirectord will be able to automa
I. Introduction of LVSLVS is the short name of Linux virtual server, which is a free software project initiated by Dr. Zhangwensong, and its official site is www.linuxvirtualserver.org. Now LVS is already part of the Linux standard kernel, Prior to the Linux2.4 kernel, the LVS had to be recompiled to support the LVS function module, but since the Linux2.4 kernel, the various functions of LVS have been built-in, without any patching of the kernel, and
A brief introduction of LVS
LVS is the short name of Linux virtual server, the Linux VM, a free software project initiated by Dr. Zhangwensong, and its official site is www.linuxvirtualserver.org. Now that LVS is already part of the Linux standard kernel, Before the Linux2.4 kernel, the use of LVS must be recompiled to support the LVS function module, but from the Linux2.4 kernel, has been completely built in the LVS function modules, no need to make
each real The duration of service on the server is 600 seconds, or 10 minutes.[Email protected] ~]# ipvsadm-a-t 192.168.60.188:21-s WLCThe above indicates that a 192.168.60.188 virtual server is added to the list of virtual servers in the kernel, the service port of this virtual server is 21, which is the FTP service. The scheduling policy used is the WLC, which is the weighted least-link algorithm.[Email protected] ~]# ipvsadm-a-t 192.168.60.200:80-r 192.168.60.132:80–g[Email protected] ~]# ip
One of Linux load Balancing software LVS (concept article)
A brief introduction of LVSLVS is the short name of Linux virtual server, the Linux VM, a free software project initiated by Dr. Zhangwensong, and its official site is www.linuxvirtualserver.org. Now that LVS is already part of the Linux standard kernel, Before the Linux2.4 kernel, the use of LVS must be
Someone in the mailing list asked Haproxy why the haproxy, whether TCP or HTTP, is not too large to support the amount of concurrency.Willy answered the question.Exactly. The difference is between LBs Process a stream and whichis proxy-based, and the ones which process packets and is basicallyRouters . In order to parse and modify a stream, you need some memory,While you don ' t need this to route packets (beyond the routing queue).L4
(192.168.60.200:80) (Weight set to 1)LDIRECTORD|2563] Deleted fallback server:127.0.0.1:80 (192.168.60.200:80)LDIRECTORD|2563] Added Real server:192.168.60.144:80 (192.168.60.200:80) (Weight set to 1)As can be seen from the log, Ldirectord first loaded a virtual IP 80 port, then loaded two real server node 80 port and the Director server Native 80 port, while the real server two node weight is set to 1, Since two nodes are available, the 80 port of the director server native is finally removed
.[Email protected] ~]# ipvsadm-a-t 192.168.60.200:80-r 192.168.60.132:80–g[Email protected] ~]# ipvsadm-a-t 192.168.60.200:80-r 192.168.60.144:80–gThe above two settings indicate that two new real server records are added to the virtual server 192.168.60.200, two real server IPs are 192.168.60.132 and 192.168, respectively. 60.144, Parameter "-G" Specifies that the operating mode of the virtual server is the direct route mode, which is the DR mode.After this is set up, when the user accesses the
192.168.60.132:80–g[Email protected] ~]# ipvsadm-a-t 192.168.60.200:80-r 192.168.60.144:80–gThe above two settings indicate that two new real server records are added to the virtual server 192.168.60.200, two real server IPs are 192.168.60.132 and 192.168, respectively. 60.144, Parameter "-G" Specifies that the operating mode of the virtual server is the direct route mode, which is the DR mode.After this is set up, when the user accesses the 192.168.60.200 80 service, LVS assigns the request to
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.