Docker advanced management (docker-compose orchestration tool, consul architecture)

This chapter summarizes the points of knowledge: Docker Compose container arrangementBuilding an Autodiscover Docker Service ArchitectureImplement container services to automatically join the Nginx cluster **Docker Compose Container Layout Function** Docker compose, predecessor of Fig, is a tool for defining and running multiple docker conta ...

Posted by nakago on Fri, 03 Jan 2020 21:52:00 -0800

Build hadoop HA high availability

Step 1: Cluster Planning Step 2: set hosts Step3: turn off the firewall Step 4: turn off Selinux Step5: Keyless login Step 6: install jdk #decompression tar -xvf jdk-8u131-linux-x64.tar.gz mv jdk1.8.0_131 /usr/local/jdk1.8 #Setting environment variables vim /etc/profile JAVA_HOME=/usr/local/jdk1.8/ JAVA_BIN=/usr/local/ ...

Posted by scriptkiddie on Fri, 03 Jan 2020 09:30:56 -0800

saltstack for highly available keepalived building

In the following articles, I will refer to my blog for the construction of nginx based on saltstack The experimental topology and related file directories are as follows: Write the maintained installation script [root@server1 ~]# vim /srv/salt/keepalived/install.sls include: - pkgs.make # This includes the usual ...

Posted by crishna369 on Fri, 03 Jan 2020 08:39:43 -0800

Haproxy installation and configuration of TCP reverse proxy

Last time we used Nginx for reverse proxy TCP, we found that the number of links in the test was still a few K, so we hung up. According to the official recommendation, we used Haproxy for testing. install Installation command: yum install haproxy The configuration file of haproxy is located in / etc/haproxy /. To prevent ...

Posted by HSKrustofsky on Thu, 02 Jan 2020 17:47:56 -0800

Custom virtual machine installation (KVM)

Custom virtual machine installation 1, Create a virtual switch Principle: call dnsmasq to provide DNS, DHCP and other functions Create configuration file / etc/libvirt/qemu/networks/vbr.xml <network> <name>vbr</name> <bridge name="vbr"/> <forward mode="nat"/> <ip address="192.168.1.2 ...

Posted by qt4u on Thu, 02 Jan 2020 16:12:10 -0800

Establishment of enterprise level top master and syndic services and horizontal expansion of master##

1. Restore environment: [server1] [root@server1 _modules]# salt-key -L Accepted Keys: server1 server2 server3 server4 Denied Keys: Unaccepted Keys: Rejected Keys: [root@server1 _modules]# salt-key -d server4 The following keys are going to be deleted: Accepted Keys: server4 Proceed? [N/y] y Key for minion server4 deleteed. ...

Posted by switchdoc on Thu, 02 Jan 2020 13:56:13 -0800

Installation and deployment of enterprise level automatic operation and maintenance tool saltstack httpd php service##

1. Installation services: [server1] [root@server1 yum.repos.d]# yum install salt-master-* [root@server1 salt]# ls cloud cloud.maps.d master minion.d proxy.d cloud.conf.d cloud.profiles.d master.d pki roster cloud.deploy.d cloud.providers.d minion proxy [root@server1 salt]# /etc/init.d/salt ...

Posted by Mark.P.W on Wed, 01 Jan 2020 17:04:35 -0800

saltstack deployment and cases

Case 1: rpm deployment and installation of httpd (1) Modify the configuration file and create the base directory [root@server4 salt]# vim /etc/salt/master [root@server4 salt]# cd [root@server4 ~]# ls anaconda-ks.cfg install.log install.log.syslog [root@server4 ~]# mkdir /srv/salt [root@server4 ~]# /etc/init.d/salt-master ...

Posted by eosinophil on Wed, 01 Jan 2020 00:36:10 -0800

saltstack -- online environment (1)

Install mysql on 11 yum install mariadb mariadb-server -y   Add in mysql configuration file my.cnf init_connect='SET collation_connection = utf8_unicode_ci' init_connect='SET NAMES utf8' character-set-server=utf8 collation-server=utf8_unicode_ci skip-character-set-client-handshake   Start mysql after configuration Set the password befor ...

Posted by crusty_php on Tue, 31 Dec 2019 15:45:00 -0800

Create or delete users in batch under Linux.

Batch create users: 1. Create the list file users.txt of user name, one line for each user. [root@linuxprobe ~]# vim users.txt andy barry carl duke eric ergou Next, write the shell script useradd.sh. [root@linuxprobe ~]# vim useradd.sh #!/bin/bush read -p "Enter The Users Password : " PASSWD for UNAME in `cat users.txt` d ...

Posted by zuhalter223 on Mon, 30 Dec 2019 22:42:52 -0800