2. redis cluster configuration

2. redis cluster configuration reference resources: The construction and practice of Redis Cluster Redis cluster construction and simple use 2.1 environment configuration The redis installation package contains redis-trib.rb, which is used to create a cluster and copy the script to / usr/local/bin /. In this way, you can call this comman ...

Posted on Thu, 30 Apr 2020 11:07:20 -0400 by bagsobrands

Sleuth link tracking of Spring Cloud series

This article is a series of articles. For those who haven't read the previous episodes, please jab here: Sleuth link tracking of Spring Cloud series (1) Sleuth link tracking of Spring Cloud series (2) This article explains how Sleuth uses elastic search, Logstash, and Kibana to analyze tracking data.    Use ELK to analyze tracking data    ...

Posted on Tue, 28 Apr 2020 22:04:34 -0400 by Static Cling

Several methods to judge whether a number is a prime number

Method 1: exhaustively judge whether a number is a prime number Given a number n, starting from 2, we can automatically increase x to determine whether n is divided by X. x can be increased to the square root of N at most, because if there is a value greater than n that can be divided by N, then its quotient must be the value less than the squa ...

Posted on Sun, 05 Apr 2020 01:58:49 -0400 by johncrook

Profile Yaml

Yaml I. Introduction (1) YAML language (pronunciation / ˈ j æ m ə l /) is designed to facilitate human reading and writing. It is essentially a general data serialization format. (2) Basic rules Case sensitive Use indents to represent hierarchy Tab is not allowed when indenting, only spaces are allowed. ...

Posted on Thu, 02 Apr 2020 02:46:40 -0400 by frog_

Python dictionary notes

I. dictionary 1. The function is the same as the list function 2. Use in or not in to determine whether the index exists birthdays = {'Alice': 'Apr 1', 'Bob': 'Dec 12'} 'Alice' in birthdays # True 'Jack' in birthdays # False 3. Use values() to get all values spam = {'color': 'red', 'age': 42} spam # {'red', 42}, you can use for loop travers ...

Posted on Tue, 31 Mar 2020 04:41:28 -0400 by adamjblakey

redis cluster: manual and automatic

Manual creation: Environment description: A machine starts up six nodes, three master nodes and three slave nodes.Installation:tar -zxvf redis-3.2.10.tar.gzmv redis-3.2.10 /usr/local/redisyum install gcc* tcl -ymake && make testModify profile:vi /usr/local/redis/redis.conf **Where to change** daemonize yes port 7000 cluster-enabled yes ...

Posted on Sun, 15 Mar 2020 15:24:32 -0400 by leafface

Use of Stream stream

This article mainly explains the use of Stream stream in JDK8, including how to filter, slice, map, find, match, reduce and so on. Each type will have corresponding cases which are easy to understand   1. The concept of stream Stream API is a new key component of JDK8 to process collection. The stream stream here is different from I/O stre ...

Posted on Tue, 25 Feb 2020 03:50:22 -0500 by GreenCore

Notes for beginners of Python

Face to face programming: write classes that represent things and scenes in the world, and create objects based on these classes. The created objects are called instantiations. Create class class Dog(): #The first letter in the class name in Python should be capitalized def __init__(self, name, age): #The functions in the class are ...

Posted on Sat, 22 Feb 2020 02:24:29 -0500 by fansphp

Redis cluster deployment

1, Redis cluster related conceptsRedis supports cluster since version 3.0. It adopts the hash slot method, which can integrate multiple redis instances to form a cluster, that is, to store data on multiple nodes in the cluster. Redis cluster is a decentralized structure. In a cluster, the identity of each master is equal. Each node saves data ...

Posted on Thu, 13 Feb 2020 07:28:09 -0500 by deezzer

Linux server implements Redis cluster

1, About Redis Redis is a large-scale cache middleware, which is widely used because of its powerful, efficient and convenient functions. Redis released 3.0.0 in 2015, and the official supports redis cluster. In the design of redis cluster, decentralization and middleware are considered. In other words, ...

Posted on Thu, 13 Feb 2020 03:35:50 -0500 by mu-ziq