Centos 7 Builds LVS+Keepalived High Available Web Services Cluster
1. LVS+Keepalived Highly Available Clusters
Keepalived is designed to build highly available LVS load balancing clusters that can call ipvsadm tools to create virtual servers and manage server pools rather than just as a two-machine hot standby.Building LVS clusters with Keepalived is easier and easier to use. The main advantages are: hot stan ...
Posted by lighton on Wed, 11 Dec 2019 18:34:52 -0800
Build a simple high available load balancing cluster
I. build lvs cluster of DR mode
Environment: DS: 192.168.4.53 VIP: 192.168.4.100
RS: 192.168.4.51 192.168.4.52
1. Establish three experimental machines and configure ip and yum warehouses
2. Configure VIP on DR
[root@53 ~]#cp /etc/sysconfig/network-scripts/ifcfg-eth0 {,:0}
[root@53 ~]#vim /etc/sysconfig/network-scripts/ifcfg-e ...
Posted by ericorx on Wed, 11 Dec 2019 07:00:58 -0800
Talking about Keepalived Double-machine Hot-up
1. Basic knowledge of Keepalived dual-machine warm-up
Official keepalived website: www.keepalived.org/ Ke keepalived can also be used as a hot standby software in non-LVS environments.
1. Keepalived role
Kekeepalived was originally designed as a powerful assistive tool for LVS, primarily to provide failover and health check functions - to dete ...
Posted by 2levelsabove on Tue, 10 Dec 2019 22:17:26 -0800
How to build a Web cluster using Haproxy
Common Web Cluster Schedulers
At present, the common Web cluster scheduler is divided into software and hardware. Software usually uses open source LVS, Haproxy, Nginx. Hardware usually uses F5 more. Many people also use some domestic products, such as pike, green league, and so on.
Haproxy application analysis
LVS has a strong anti-load capab ...
Posted by Niel Roos on Tue, 10 Dec 2019 09:25:56 -0800
GlusterFS for Kubernetes persistent storage
GlusterFS is an open-source distributed file with strong horizontal expansion ability. It can support several petabytes of storage capacity and thousands of clients. It is interconnected into a parallel network file system through the network. It has the characteristics of expansibility, high performance and high availability.
Premise: you mu ...
Posted by raje on Mon, 09 Dec 2019 11:17:00 -0800
Building a load balancing cluster based on direct routing mode (DR)
For the working principle and overview of LVS load balancing, please visit: LVS load balancing cluster of Centos 7
For detailed configuration of load balancing cluster in address translation (NAT) mode, please visit: Building load balancing cluster based on address translation (LVS-NAT) mode
I. start to configure DR mode LVS
preparation:Four C ...
Posted by thomasgrant on Mon, 09 Dec 2019 10:17:07 -0800
Database -- one master and many slaves
Multiple real columns and one principal and many subordinate
Create a directory for database information
[root@db200 ~]# mkdir /data/330{7..9} –p
Create a file to hold the profile
[root@db01 ~]# touch /data/330{7..9}/my.cnf
Edit 3307 profile
[root@db01 ~]# vim /data/3307/my.cnf
[mysqld]
basedir=/application/mysql
datadir=/data/3307/data
so ...
Posted by oaskedal on Sun, 08 Dec 2019 18:19:17 -0800
Nginx+Tomcat load balancing cluster + reverse agent
Experimental environment
Nginx server (192.168.13.177)
Tomcat1 server (192.168.13.151)
Tomcat2 server (192.168.13.178)
client tester
I. load balancing
1. Install Tomcat service on Tomcat1 and Tomcat2
[root@tomcat1 ~]# systemctl stop firewalld.service ##Turn off firewall
[root@tomcat1 ~]# mkdir /abc
[root@tomcat1 ~]# mount.cifs //192.168.100.3 ...
Posted by lily on Sun, 08 Dec 2019 15:05:40 -0800
CentOS 7.5 installs mysql5.7.24 binary package deployment (maintained + master-slave replication)
I. environmental preparation:
Operating system: CentOS Linux release 7.5.1804 (Core) MySQL version: mysql-5.7.24-linux-glibc2.12-x86_.tar.gzMain warehouse: 172.16.8.247Slave Library: 172.16.8.249Host name:172.16.8.247 qas-zabbix-node01172.16.8.249 qas-zabbix-node02172.16.8.248 vip
2. mysql5.7 installation and master-slave replication configur ...
Posted by Xurion on Sat, 07 Dec 2019 21:09:55 -0800
Method of calling object attribute or object in html template of django template
Environment: relying on the original test2 database
python3 version
Multi python environment
Enter, python 3 virtual environment, new project test4:
]# cd py3/django-test1/
]# django-admin startproject test4
To create an app bookshop:
]# cd test4
]# python manage.py startapp bookshop
Modify the settings.py main configuration file:
]# vim test ...
Posted by bloodgoat on Sat, 07 Dec 2019 03:25:16 -0800