K8S single master deployment I: environment planning, ETCD deployment

Experimental environment planning Summary Use VMwork virtual machine to deploy small cluster with single master and double nodes, and install etcd on both master and node to implement etcd cluster. Software adopted version Software name Edition Linux system Linux version 4.8.5 Kubernetes 1.9 Docker Docker version 19.03.5 Etcd v3.3. ...

Posted by Cinds on Wed, 05 Feb 2020 06:33:21 -0800

LVS-DR mode + ldirectord + preserved + Tun tunnel mode + wrr weight

What is LVS? LVS (Linux Virtual Server), or Linux virtual server, is an open source load balancing project led by DR. Zhang wensong. At present, LVS has been integrated into Linux kernel module. This project implements the load balancing scheduling scheme of data request based on IP in Linux kernel. I ...

Posted by ifuschini on Wed, 05 Feb 2020 02:59:10 -0800

linux domain socket

Unix domain socket One of the ways of communication between processes in Linux is through network socket. UNIX domain sockets are used to communicate with processes running on the same machine. Although Internet domain sockets can be used for this same purpose, UNIX domain sockets are more efficient. ...

Posted by Birmingham on Tue, 04 Feb 2020 22:55:17 -0800

TypeError: type str doesn't define __round__ method

I was bluffed at first, but later I found it was a basic problem, The final results are as follows:   #!/usr/bin/env python3 # -*- coding:utf-8 -*- import subprocess def collect(): filter_keys = ['Manufacturer', 'Serial Number', 'Product Name', 'UUID', 'Wake-up Type'] raw_data = {} ...

Posted by Base on Tue, 04 Feb 2020 06:27:39 -0800

NIO source code series: the most detailed analysis in the history of Selector III

NIO source code series: the most detailed analysis in the history of Selector III Selector registration serverSocketChannel.register(selector, SelectionKey.OP_ACCEPT); findKey(Selector sel) register(AbstractSelectableChannel ch, int ops, Object attachment) interestOps(int ops) setEventOps(Selectio ...

Posted by tlawless on Mon, 03 Feb 2020 09:31:15 -0800

Understand the structure and working principle of CPU in the code

I. Preface From the beginning of graduate school to half a year's work, I have been contacting MCU SOC controllers with CPU as the core, but because of professional reasons, I have no idea about the internal structure and working principle of CPU. Today, I broke the blind spot from a blog. It is hereby declared that the design idea and code of ...

Posted by cottonbuds2005 on Mon, 03 Feb 2020 01:53:57 -0800

Solution of LVS Dr + preserved

Reference resources https://www.cnblogs.com/liaojiafa/p/6087276.html Four hosts are in a LAN. The ip of LVS_master is 192.168.1.196, LVS backup is 192.168.1.197, the ip of two web servers is 192.168.1.200192.168.1.201, and the virtual ip is 192.168.1.198. It can be seen from the keepalived configuration file. The experimenta ...

Posted by voitek on Fri, 31 Jan 2020 07:53:49 -0800

lvs cluster implements lvs Dr model and lvs NAT model

ipvsadm The ipvsadm command is the management tool of lvs Cluster in the application layer. We can use this ipvsadm to manage the configuration of lvs. In fact, it implements the cluster service management: add, delete, change, RS management of cluster service: add, delete, change and view the cluster status. Management cluster service: add, ch ...

Posted by frao_0 on Fri, 31 Jan 2020 02:54:13 -0800

Linux Kernel 2.6.9 source code analysis -- accept

Linux Kernel 2.6.9 source code analysis – accept Let's take a look at the prototype: int accept(int sockfd, struct sockaddr *addr, socklen_t *addrlen)sockfd: this socket is used to listen to a port. When a client connects with the server, it uses this port number, which is associated with the so ...

Posted by ldoozer on Thu, 30 Jan 2020 04:18:10 -0800

Spring 5 Learning Series 3 register components 3 @ Conditional and @ Import annotation usage

The previous article mainly introduced two methods of @ bean @ ComponentScan package scanning injection. Today, I will introduce the related usage of @ Conditional injection and @ import component import 1. First, the usage of @ Conditional: judge according to certain conditions, register the beans ...

Posted by gkelley091565 on Thu, 30 Jan 2020 00:32:38 -0800