Create BPF mapping method

💡 How to create a BPF map Programmers often send messages to programs to cause program behavior to be called. The most magical function of bpf is the code running in the kernel, and the program loading these codes can realize real-time communication through message passing. BPF mapping is that key values are stored in the kernel and can be ...

Added by onlyican on Tue, 08 Feb 2022 23:41:32 +0200

MySQL master-slave replication: type A → type B

1, Introduction to MySQL master-slave replication Introduction: the master-slave replication of MySQL is to obtain the log content of the bin log file of the master server from the server, parse the SQL statement and update it to the slave server, so as to make the data of the master and slave servers consistent.Mode: MySQL database supp ...

Added by avvishnu on Tue, 08 Feb 2022 13:51:44 +0200

Playing with Linux Haproxy to build clusters

Objectives: Understand the characteristics of HaproxyEasily use Haproxy to build clusters Content: 1, HAProxy features: Support two proxy modes: TCP (layer 4) and HTTP (layer 7), and support virtual host;It can supplement some shortcomings of Nginx, such as Session retention, Cookie guidance and so onSupport url detection, back-end server ...

Added by phparray on Tue, 08 Feb 2022 11:42:10 +0200

KVM Fundamentals

1, KVM introduction 1. Introduction to KVM KVM The full name is kernel based virtual machine( Kernel-based Virtual Machine),It's a Linux A kernel module that enables Linux Into a Hypervisor. KVM Originally by an Israeli company Qumranet(//Developed by kju'ma,net / /). KVM was officially incorporated into the Linux 2.6.20 core in February 20 ...

Added by edawg on Tue, 08 Feb 2022 11:39:02 +0200

Linux private room - Shell command SNAT and DNAT firewall

1.SNAT 1.1 SNAT application environment LAN hosts share a single public IP address to access the Internet (private IP cannot be routed normally in the Internet) 1.2 SNAT principle Modify the source address of the packet 1.3 preconditions for SNAT conversion 1. Each host of LAN has correctly set IP address, subnet mask and default gate ...

Added by neo926 on Tue, 08 Feb 2022 08:34:53 +0200

ansible practice operation, installing nginx

Practical operation: Idea: first download nginx package on one computer, and then distribute it with ansible Download and install nginx first wget http://mirrors.sohu.com/nginx/nginx-1.9.6.tar.gz Unzip file tar -zxvf nginx-1.9.6.tar.gz First in directory cd nginx-1.9.6 Download and install plug-ins yum install gcc gcc-c++ pcre-devel ...

Added by jemrys on Mon, 07 Feb 2022 22:46:18 +0200

ceph cluster construction

ceph cluster construction ceph ceph is called future oriented storage Chinese Manual: https://access.redhat.com/documentation/zh-cn/red_hat_ceph_storage/5/html/architecture_guide/indexhttp://docs.ceph.org.cn/ Storage methods that ceph can realize: Block storage: provide storage like ordinary hard disk and provide "hard disk& ...

Added by hex on Mon, 07 Feb 2022 20:31:21 +0200

Deployment of front and rear end separation projects to ECS

Deployment of front and rear end separation projects to ECS Alibaba cloud servers are used by bloggers 😊 No more nonsense. Let's start directly Recommended tools: XFTP: used to transfer files to the server Lanzou cloud download password: ciwg XShell: used for remote connection and operation of server Lanzou cloud download password: 3 ...

Added by ShopMAster on Mon, 07 Feb 2022 11:59:19 +0200

Odoo technology development white paper Part V Chapter 14 launch of odoo

Reprint: http://book.odoomommy.com/chapter5/README14.html Chapter 14 startup of Odoo Startup script Let's take a look at the startup script of Odoo first: __import__('os').environ['TZ'] = 'UTC' import odoo if __name__ == "__main__": odoo.cli.main() It can be seen that the startup of odoo has done two things: Set the time zone of the ...

Added by Akira on Mon, 07 Feb 2022 04:36:58 +0200

Handling VFS objects and standard functions -- VFS objects

File system operation First, we study the system calls used to communicate with the kernel from the standard library. Although file operation is a standard function for all applications, the operation on the file system is limited to a few system programs, that is, the mount and umount programs used to mount and unmount the file system. Regis ...

Added by moriman on Sat, 05 Feb 2022 12:35:07 +0200