ZooKeeper Series: Voting

ZooKeeper's election process defaults to the FastLeaderElection class, which starts Messenger to send and receive election information when FastLeaderElection starts. After the election is completed, one Leader and several Follower are selected. First understand several concepts: Epoch: The voting cycle is used to distinguish each round, and ...

Added by dotBz on Mon, 09 Sep 2019 09:16:47 +0300

Kubernetes Installation and Deployment Master

Links to the original text: https://blog.csdn.net/jiangbenchu/article/details/90769198 1. Modify the local/etc/hosts file # Add (*) to / etc/hosts file cat <<EOF >> /etc/hosts 172.26.48.4 k8s-master 172.26.48.5 k8s-node1 17 ...

Added by Kathy on Sun, 08 Sep 2019 15:35:59 +0300

Linux builds DHCP+DNS+WEB services (small project site!)

The experimental environment: A GNS3 A Linux System for Centos7 A server 2016 server Two PC s The purpose of the experiment is: Build a DHCP service to automatically assign IP addresses to two PC s Setting up a DNS Resolution Server to Resolve Domain Names Build a web server to provide two websites Realize the interconnection of the whole en ...

Added by thebutler on Sun, 08 Sep 2019 15:16:02 +0300

Insert Sort-Recursive+Binary Search

title: Insert sort date: 2019-07-21 09:58:02 Summy: Insertion-Sort categories: Data structures and algorithms tags: [LeetCode, Introduction to Algorithms] Title: leetcode(912): Given an integer array nums, the array is arranged in ascending ord ...

Added by DSGameMaker on Sat, 07 Sep 2019 11:23:07 +0300

Actual RocketMQ Solves Distributed Transaction Problem

How to ensure consistency: RocketMQ Solves Distributed Transactions (Reliable Message Final Consistency Scheme) 1. System A sends a prepared message to MQ. If the prepared message fails, cancel the operation directly and do not execute. 2. If the message is sent successfully, then execute Local Transaction. If it is successful, tell MQ to se ...

Added by tomm098 on Fri, 06 Sep 2019 10:51:18 +0300

Python Rapid Development of Scrapy, a Distributed Search Engine-craw scrapy item loader

Create autocrawler files with commands Creating crawler files is based on the master scrapy to create crawler files Scrapy genspider-l View scrapy's available master for creating crawler files Available templates: Master descriptionCreate basic crawler files crawl Create Autocrawler FilesCreate crawler files for crawling csv data Create crawli ...

Added by broseph on Thu, 05 Sep 2019 06:50:35 +0300

Spring Cloud Zuul Ribbon and Hytrix configuration instructions

First, concept introduction. Ribbon: Load balancing is a multi-instance load balancing configuration for services. Hystrix: Fuse, when calling zuul Gateway specific business, may be affected by the network, code execution time and so on for a ...

Added by kubis on Wed, 04 Sep 2019 08:44:40 +0300

tcpdump and some default ports of linux

1. Common port number of HTTP proxy server: 80/8080/3128/8081/9098 2. Common port number of SOCKS proxy protocol server: 1080 3.FTP (File Transfer) Protocol Proxy Server Common Port Number: 21 4.Telnet (Remote Login) Protocol Proxy Server Comm ...

Added by smerny on Wed, 04 Sep 2019 06:30:27 +0300

Network Programming for Linux Learning

Before we start learning network programming, let's first understand what TCP protocol is: TCP/IP(Transmission Control Protocol/Internet Protocol), which is a connection-oriented, reliable, byte-stream-based Transport layer communication protocol. I ...

Added by philippe2 on Tue, 03 Sep 2019 17:05:11 +0300

SpringBoot uploads files to FastDFS

1. What is FastDFS FastDFS is an open source, lightweight, distributed file system that solves the problems of large data storage and load balancing. It is especially suitable for online services with small and medium files (recommended range: 4 KB < file_size < 500 MB), such as photo album websites, video websites, etc. FastDFS is dev ...

Added by daniel244rock on Mon, 02 Sep 2019 05:53:40 +0300