Redis 1 Master 2 Slave 3 sentinel Construction

Redis Master-slave + sentinel installation Pre-installation preparation 1. Machine preparation 5 sets 1 master node, 1 slave node The other three install one sentinel 2. Installation package preparation, version 3.2.9 3. Installation environment Check by command gcc-v that the following comma ...

Added by Silver_Eclipse on Fri, 02 Aug 2019 05:26:11 +0300

Kubernetes Implements Guestbook Message Board

Base environment System version: CentOS Linux release 7.5.1804 (Core) Kubernetes version: kubernetes 1.3 Project Background Guestbook message board system will be built through Pod, RC, Service and other resource objects, and a "Hello World" message will be displayed in the web page after successful launch.Its system architecture is ...

Added by suncore on Tue, 30 Jul 2019 22:15:59 +0300

Distributed Cluster Sharing Session of SpringBook Development Case

Preface In distributed systems, in order to improve system performance, individual projects are usually split into multiple function-based micro-services. If conditions permit, single micro-services may be scaled horizontally to ensure high availability of services. So the question is, what kind of problems will we encounter if we use the trad ...

Added by pacome on Tue, 30 Jul 2019 08:30:56 +0300

linux Kernel-level Synchronization Mechanism--futex

In the interview about multi-threaded synchronization, you have to think about the question, we know that glibc pthread_cond_timedwait underlying is achieved by linux futex mechanism. The ideal synchronization mechanism should be to use atomic instructions to solve the problem in user mode without lock conflicts, and to sleep and wake up with ...

Added by brownca on Mon, 29 Jul 2019 13:52:32 +0300

Persistent snapshot of Redis (rdb file)

Persistence of Redis Persistence is to keep our data intact and to store it on our hard disk. There are two ways of persistence in Redis, one is snapshot persistence, the other is AOF persistence, each has its own advantages and disadvantages, in the project we have to choose the specific persistence ...

Added by Braet on Mon, 29 Jul 2019 06:03:48 +0300

Python 3 Web Crawler Actual Warfare-11, Installation of Crawler Framework: ScrapySplash, ScrapyRedis

Installation of ScrapySplash ScrapySplash is a tool in Scrapy that supports JavaScript rendering. This section describes how it is installed. The installation of ScrapySplash is divided into two parts. One is the installation of Splash service. The installation mode is through Docker. After installati ...

Added by sac0o01 on Sat, 27 Jul 2019 12:04:39 +0300

Practice of SSO Single Sign-on System

General Introduction Single sign-on system (SSO) is one of the most popular solutions for business integration in enterprises.SSO is defined as multiple applications in which users only need to log in once to access all mutually trusted applications.Any SSO framework needs to create a unified certification center! Solve the problem ...

Added by shanksta13 on Fri, 26 Jul 2019 21:48:01 +0300

Dictionary Implementation Based on Jump Table

A list that adds additional forward pointers to an ordered list is called a skip list. It uses random technology to determine which nodes in the list should add forward pointers and how many pointers should be added. Based on this stochastic technique, the average time complexity of finding, inserting a ...

Added by karimali831 on Fri, 26 Jul 2019 17:04:01 +0300

SpringBoot integrates Redis and Redis tool class writing

Reprint address: https://www.cnblogs.com/zeng1994/p/03303c805731afc9aa9c60dbbd32a323.html SpringBoot integrates many Redis blogs, but many of them are not the results I want. Because I just need to integrate, I can operate Redis, and I don't need to use it with caching-related annotations (such as @ ...

Added by JParishy on Thu, 25 Jul 2019 09:58:32 +0300

Swoft 2.0.4 release, process, TCP components

What is Swoft? Swoft It's based on Swoole Extend the implementation of the PHP Microsoft Services Consortium Framework. Like Go, Swoft has built-in protocol network servers and commonly used protocol clients and resides in memory, independent of traditional PHP-FPM. There are cooperative operation modes similar to Go language, flexible annotati ...

Added by 2kau on Thu, 25 Jul 2019 05:18:46 +0300