LVS + preserved + nginx for high availability

1. purpose lvs is a four-tier load balancing. keepalived provides lvs with highly available services and checks the health status of the backend nginx. Nginx is mainly used for seven tier load balancing 2. topological graph Server IP address description Director master 192.168.3.105 LVS kept alive Director standby node 192.168.3.104 LVS ke ...

Posted by natalieG on Thu, 05 Dec 2019 17:41:03 -0800

Drawing graph with matplotlib

Recently, we need to draw function diagrams for some data, because the requirements are not very high. I hope to draw a diagram as soon as possible, and I don't want to install any special software. I just use the python drawing package matplotlib to do it, which is convenient and fast, and the drawing is not bad. Here is a brief record.   Th ...

Posted by ranam on Thu, 05 Dec 2019 13:06:14 -0800

Bosh install Concourse continuous deployment tool

How to use Bosh to deploy applications Updated: April 23, 2018 Install bosh environment Download Bosh binary installer click download Install virtulbox wget https://download.virtualbox.org/virtualbox/5.2.10/virtualbox-5.2_5.2.10-122088~Ubuntu~trusty_amd64.deb dpkg -i virtualbox-5.2_5.2.10-122088~Ubuntu~trusty_amd64.deb Install some dependen ...

Posted by Cal on Thu, 05 Dec 2019 10:23:50 -0800

See asyncio source code

[toc] Example: In [1]: import asyncio In [2]: async def f(i): ...: await asyncio.sleep(i) ...: print(i) ...: In [3]: async def func(): ...: tasks = [] ...: for i in range(10): ...: await asyncio.sleep(0) ...: print('create process parameter ', i) ...: tasks.append(asyncio.crea ...

Posted by ShanesProjects on Thu, 05 Dec 2019 09:14:47 -0800

File transfer between Windows and Linux rz\sz

Main contents: 1. Lrzsz installation; 2. Application; The SecurityCRT telnet\ssh installed on win7 logs in to VMware Fedora 9. When transferring files, SSH is installed to upload and download files. Today, Maizi told me that there are commands that can be used directly. It used to be rz and sz. Let's sort them out.   I. ins ...

Posted by miltonos on Thu, 05 Dec 2019 04:58:07 -0800

Sharing graph of wechat friend circle in pure Java

Sharing graph of wechat friend circle in pure Java 1. Realize the effect of sharing chart 2. Development environment 2.1 JDK *oracle's JDK above 1.8 2.2 font *If you choose Microsoft YaHei font and the code is deployed to Linux, you need to install Microsoft YaHei font, and google the font installation mode 3. Loading background 3.1 loading ba ...

Posted by aarchaic on Thu, 05 Dec 2019 00:47:32 -0800

Mysql linked table query exercise

Exercises Table 1 mysql> create database linux50 charset utf8; Query OK, 1 row affected (0.00 sec) mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | linux50 | | ming | | mysql | | performance_schema | | test | | world ...

Posted by xionhack on Wed, 04 Dec 2019 23:01:40 -0800

Building the Mesos cluster environment of "advanced" docker (24)

>Original article, welcome to reprint. Reprint please indicate: reprint from IT people's story meeting Thank you!>Original link address: Building the Mesos cluster environment of "advanced" docker (24) This time, I will start to operate. First, I will install the MES. How to install the MES. Source code: https://github.com/lim ...

Posted by jacksonmj on Wed, 04 Dec 2019 22:13:26 -0800

psutil learning notes

psutil introduction psutil is a cross platform library( http://code.google.com/p/psutil/ )It can easily obtain the process and system utilization (including CPU, memory, disk, network, etc.) information of the system. It is mainly used in system monitoring, analysis and limitation of system resources and process management. It implements the ...

Posted by interrupt on Wed, 04 Dec 2019 11:32:29 -0800

k8s advanced learning 1:kubectl config command

1. Strengthen the understanding of kubectl config command in combination with kubectl deployment kubectl config command generates cluster information, cluster users and user permissions and writes these contents to the configuration file read by kubectl The kubectl config command executed when deploying kubectl is as follows [root@k8s-master a ...

Posted by stevel on Wed, 04 Dec 2019 09:09:02 -0800