Linux kernel programming (08): debugfs file system

1, What is debugfs Introduction: born for debugging kernel, a memory based file system, developed based on libfs, provides powerful debugging function; Advantages over procfs and sysfs: procfs: use procfs to debug the kernel and modify registers, and add a lot of debugging code to its underlying read and write interfaces. sysfs: device model ...

Posted by sillyman on Sun, 27 Feb 2022 08:39:42 +0100

DPVS fullnat mode management

This paper mainly introduces the application of centos7 9. Various deployment modes and configuration management of FullNAT mode of system deployment DPVS, including IPv4-IPv4, binding, IPv6-IPv6, IPv6-IPv4 (NAT64) and keepalived mode. The following configurations are all based on dual arm mode, and the corresponding toa module of DPVS has b ...

Posted by ocpaul20 on Sat, 26 Feb 2022 17:59:50 +0100

CL236 installing red hat GLUSTER storage

CL236 installing red hat GLUSTER storage This section demonstrates how to install GlusterFS. RHCA column address: https://blog.csdn.net/qq_41765918/category_11532281.html Install red hat storage server locally Available from red hat's official website( http://access.redhat.com )Install red hat's built-in Gluster storage in the dow ...

Posted by v4g on Fri, 25 Feb 2022 16:56:24 +0100

ZABBIX notes (ZABBIX installation, monitoring items, triggers, mail &vx alarms, secondary development, disk CPU for monitoring network traffic)

Official Chinese documents Zabbix user manual catalogue Solve the problem of no network after centos7 installationInstall MySQLInstalling zabbixp3 common monitoring commandsCustom monitorCustom triggerMail alarmModify email contentVx alarmSecondary development Customize menu Modify footer Replace logoMonitor network trafficMonitoring diskMo ...

Posted by richie on Thu, 24 Feb 2022 16:55:24 +0100

Docker builds CFS three-layer intranet shooting range

At present, it is found that the online CFS three-tier intranet shooting range is basically built by using VM virtual machine. I want to try whether I can use docker to combine the existing vulnerability environments and build them directly through docker compose. The docker environments used are from vulnhub First, try to build containers tha ...

Posted by mosi on Thu, 24 Feb 2022 16:33:28 +0100

Summary of common functions of multi process and multi thread programming in linux

Multi process Create process When executing a program in multi process mode, you need to create a process before forking #include <unistd.h> //Create a process and return the number of the process in the program pid_t fork(void); //Return process number pid_t getpid(void); be careful: Child processes and parent processes shar ...

Posted by jpschwartz on Thu, 24 Feb 2022 09:08:40 +0100

EventLoop and EventLoopGroup of Netty source code analysis

The previous articles have analyzed the server startup and client connection of Netty in detail, so that you should have a more comprehensive and macro understanding of Netty. In the following article, I will analyze the source code of each main component of Netty. Personally, I think that the order from macro to detail, from surface to point, ...

Posted by bestpricehost on Thu, 24 Feb 2022 08:39:04 +0100

MHA high availability configuration and failover instance of MySQL

1, MHA overview 1.1 what is MHA MHA (MasterHigh Availability) is a set of excellent software for failover and master-slave replication in MySQL high availability environment. The emergence of MHA is to solve the problem of MySQL single point. During MySQL failover, MHA can automatically complete the failover operation within 0-30 seconds. ...

Posted by mattbrad on Thu, 24 Feb 2022 06:48:54 +0100

sersync+rsync real-time backup of conference data

The original scheme of linux is inotify+rsync to realize real-time data backup; inotify monitors the file system under linux at the linux kernel level, and records the open/access/modify operations of files; inotify has two shortcomings: rsync takes up too many resources due to the combination of rsync and rsync files. 1. It takes too long t ...

Posted by bav on Wed, 23 Feb 2022 13:29:37 +0100

[ServiceMesh] VirtualService implements Istio advanced traffic management

1, VirtualService (rich routing control) 1.1 URL redirection (redirect and rewrite) Redirect: redirect.Rewrite: that is, rewrite. It can not only redirect redirect on the url, but also directly rewrite the actual file of the request channel and more additional functions. 1.1.1. Case illustration proxy-gateway -> virtualservices/proxy - ...

Posted by ricroma on Wed, 23 Feb 2022 11:36:40 +0100