Talk about FsProbe of Elasticsearch

order This paper mainly studies FsProbe of elastic search FsProbe elasticsearch-7.0.1/server/src/main/java/org/elasticsearch/monitor/fs/FsProbe.java public class FsProbe { private static final Logger logger = LogManager.getLogger(FsProbe.class); private final NodeEnvironment nodeEnv; public FsProbe(NodeEnvironment nodeEnv) { ...

Posted on Tue, 05 Nov 2019 13:14:02 -0500 by Kilo

A complicated socket program under Windows

In the previous section, I demonstrated the socket program under Linux. In this section, I will take a look at the socket program under Windows. Otherwise, server.cpp is the server-side code and client is the client-side code.server.cpp: #include <stdio.h> #include <winsock2.h> #Pragma comment (LIB, "WS2 \ 32. Lib&quot ...

Posted on Tue, 05 Nov 2019 09:37:00 -0500 by garydt

Ranking analysis of application access regions

Application access region ranking Topic content: given Nginx AccessLog (multiple files, estimated to be about 66G) for a period of time, find the five IPS with the most access times in the fastest way. Submit a script or an executable program, and pass in the path of the file in the form of command line parameters. Output 5 IPS in descending or ...

Posted on Tue, 05 Nov 2019 06:12:24 -0500 by Brentley_11

Java GC learning practice

Recently, I often go to the customer's site. If there is a problem on the site, I will send it to the company's leaders (I really don't understand it. I will take advantage of the Expo to have a rest and make up for it) Refer to "deep understanding of Java virtual machine" Directory (Java GC learning practice) On foundation 1.1 r ...

Posted on Mon, 04 Nov 2019 20:09:16 -0500 by Frango

Shell script Basics

Bowen catalogueI. Shell script FoundationRedirection and pipeline operation3. Use Shell variable I. Shell script Foundation Shell script in Linux system is a special application program, which is between the kernel and the user of the operating system. It acts as a "command interpreter". It is responsible for receiving and interpre ...

Posted on Mon, 04 Nov 2019 19:50:47 -0500 by adammo

Nginx configuration - virtual host is based on IP, domain name and port (actual combat!)

Nginx virtual host Domain name based virtual host Virtual host based on IP address Port based virtual host 1. Install DNS domain name resolution server 1. Install bind server [root@localhost ~]# yum install bind -y 2. Modify the main configuration file (named.conf) [root@localhost ~]# vim /etc/named.conf options { listen-o ...

Posted on Mon, 04 Nov 2019 19:32:10 -0500 by wowiz

MySQL 5.7.28 binary installation under CentOS 7.4

Linux system version: CentOS 7.4MySQL version: 5.7.28In Linux platform, there are RPM package, binary package and source package. This article mainly takes RPM package as an example to introduce how to install MySQL on Linux platform.Download address:https://cdn.mysql.com//Downloads/MySQL-5.7/mysql-5.7.28-linux-glibc2.12-x86_64.tar.gz The spec ...

Posted on Mon, 04 Nov 2019 16:47:07 -0500 by smti

Three different implementation methods of LVS-DR

1. Implementation of VIP and DIP in the same network segment Network topology Configuration environment Configure RIP1 of Client gateway pointing to route [root@client ~]# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 172.22.27.20 0.0.0.0 UG 100 ...

Posted on Mon, 04 Nov 2019 13:42:44 -0500 by Baseball

Compiling and installing Python 3.6.5 under Centos7

Download the source package, compile and install it [root@iZtmm4mufhb0rgZ /]# wget  https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tgz [root@iZtmm4mufhb0rgZ /]# tar xzvf Python-3.6.5.tgz  [root@iZtmm4mufhb0rgZ /]# cd Python-3.6.5 [root@iZtmm4mufhb0rgZ /]#  ./configure --enable-shared --prefix=/usr/local CFLAGS=-fPIC LDFLAGS="-Wl,-rpath / ...

Posted on Mon, 04 Nov 2019 13:32:59 -0500 by Mad_Mike

cnetos7 source code installation of openssh (accelerated ANSI ble)

Recently, playing ansible, I found that the execution speed of ansible is too slow. Looking at the Internet, I said that openssh can speed up the execution speed of ansible, so I started the pit filling journey of openssh source installation! mkdir -p /root/opensshcd /root/opensshwget http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openss ...

Posted on Mon, 04 Nov 2019 13:18:32 -0500 by cordex