Rendering host file written by ansible role

The hosts file is usually used when deploying a distributed cluster. We usually write in the ip address and host name. How to implement rendering when writing Ansible?Define the roles first [root@ansible kubeadm-high-install]# ls ansible.cfg group_vars hosts roles site-all.yml The first file takes the default etc/ansible cfg file and remov ...

Posted on Wed, 27 May 2020 08:22:10 -0700 by elkidogz

nginx+docker load balancing

Experiment: install nginx on a server, and enable two docker processes on the server to simulate load balancing1. Install nginx # rpm -vih http://nginx.org/packages/rhel/7/x86_64/RPMS/nginx-1.16.0-1.el7.ngx.x86_64.rpm 2. Install dockerBinary package download address: https://download.docker.com/linux/static/stable/x86_64/ #tar zxvf docker-18.0 ...

Posted on Tue, 26 May 2020 07:13:17 -0700 by goclimb

Using redis exporter to monitor the performance of redis cluster

There are three modes of redis cluster: master-slave, sentinel and cluster. About the introduction and deployment of these three modes, other articles also have related introduction. I have completed the deployment of the three modes with reference to other blogs, and the blog address is in the comment area.At present, redis uses the master-sl ...

Posted on Tue, 26 May 2020 04:52:09 -0700 by rawb

Experiment of link bundling to realize redundant function

1. Set two ordinary routers, two switches and two PC s on the Huawei simulator enspFirst, open ensp, create two routers and two pc users, and connect them with network cables, as shown in the following figure Configure priority and redundancy of LSW1 [Huawei]sySname SW1 [SW1]lacp priority 1000 [SW1]int Eth-Trunk 1 [SW1-Eth-Trunk1]bpdu enable ...

Posted on Wed, 20 May 2020 08:51:22 -0700 by ChrisMartino

Linux column command details

Function introduction: Format output How to use: NAME column - columnate lists SYNOPSIS column [-tx] [-c columns] [-s sep] [file ...] DESCRIPTION The column utility formats its input into multiple columns. Rows are filled before columns. Input is taken from file operands, or, by default, from the standard ...

Posted on Sat, 09 May 2020 07:45:20 -0700 by jmut

Docker theory introduction and installation tutorial

Be based on Linux As far as docker is concerned, it is an open source tool to run applications in it, which can be considered as a lightweight virtual machine. Docker's logo is a whale carrying a container (the old logo). The new logo directly simplifies the details and changes the color, as shown below. As you can see from the picture, ...

Posted on Thu, 07 May 2020 19:29:18 -0700 by campsoup1988

Some optimizations for nginx

1. Compile and Install Optimizations 1. Cancel debug mode: When compiling Nginx, it defaults to debug mode, which inserts a lot of information such as tracing and ASSEERT. After compilation, a Nginx has several megabytes.Remove debug mode from Nginx before compilation. Nginx only has a few hundred kilobytes after compilation, so you can modify ...

Posted on Thu, 23 Apr 2020 10:01:20 -0700 by RyanSF07

STS Python SDK authorizes temporary users to read and write OSS resources

Explanation of terms RAM (Resource Access Management) and STS(Security Token Service) It's provided by alicloud Authority management system. RAM is mainly used to control the authority of account system. You can use RAM to create sub users within the permission range of the main account, and assign different permissions to different sub users t ...

Posted on Tue, 21 Apr 2020 18:55:58 -0700 by Shendemiar

"Startup parameters" of openshift tips

When deploying applications on openshift, they are basically similar to docker, and can be hung on disk to add environment variables. Today, I record a relatively uncommon little knowledge. When docker is deployed, container startup parameters are sometimes passed in, similar to: docker run -p 9090:9090 \          --restart=always \         ...

Posted on Tue, 21 Apr 2020 08:21:57 -0700 by r3n

"Startup parameters" of openshift tips

When deploying applications on openshift, they are basically similar to docker, and can be hung on disk to add environment variables. Today, I record a relatively uncommon little knowledge. When docker is deployed, container startup parameters are sometimes passed in, similar to: docker run -p 9090:9090 \          --restart=always \         ...

Posted on Tue, 21 Apr 2020 08:13:25 -0700 by tigger