当前位置:网站首页>Functional test of redisgraph multi active design scheme
Functional test of redisgraph multi active design scheme
2022-07-24 19:48:00 【Microservice preacher】
This document is mainly aimed at RedisGraph Function test of multi activity design scheme , To illustrate that the scheme is feasible .
See the previous article for the design document of this scheme RedisGraph Graphic database flexible design scheme
- Preparation conditions for function test
- RedisGraph The environmental preparation of one master, two slaves and three sentinels
- This time is mainly a high availability function test
- Resource Planning
- Open the sentry
docker exec -it dc1d79b6977f /bin/bash
redis-cli -p 26379- Execute to view the master node information
sentinel master mymaster- View slave node information
sentinel slaves mymaster1) 1) "name"
2) "172.25.0.4:6380"
3) "ip"
4) "172.25.0.4"
5) "port"
6) "6380"
7) "runid"
8) "44df8f11fb77d388e9f7dc83ab626c592a5a256d"
9) "flags"
10) "slave"
11) "link-pending-commands"
12) "0"
13) "link-refcount"
14) "1"
15) "last-ping-sent"
16) "0"
17) "last-ok-ping-reply"
18) "287"
19) "last-ping-reply"
20) "287"
21) "down-after-milliseconds"
22) "60000"
23) "info-refresh"
24) "8834"
25) "role-reported"
26) "slave"
27) "role-reported-time"
28) "510641"
29) "master-link-down-time"
30) "0"
31) "master-link-status"
32) "ok"
33) "master-host"
34) "redisgraph-master"
35) "master-port"
36) "6379"
37) "slave-priority"
38) "100"
39) "slave-repl-offset"
40) "100353"
41) "replica-announced"
42) "1"
2) 1) "name"
2) "172.25.0.3:6381"
3) "ip"
4) "172.25.0.3"
5) "port"
6) "6381"
7) "runid"
8) "6baf5539d0430f737004c10afd0753722222c597"
9) "flags"
10) "slave"
11) "link-pending-commands"
12) "0"
13) "link-refcount"
14) "1"
15) "last-ping-sent"
16) "0"
17) "last-ok-ping-reply"
18) "287"
19) "last-ping-reply"
20) "287"
21) "down-after-milliseconds"
22) "60000"
23) "info-refresh"
24) "8834"
25) "role-reported"
26) "slave"
27) "role-reported-time"
28) "510682"
29) "master-link-down-time"
30) "0"
31) "master-link-status"
32) "ok"
33) "master-host"
34) "redisgraph-master"
35) "master-port"
36) "6379"
37) "slave-priority"
38) "100"
39) "slave-repl-offset"
40) "100353"
41) "replica-announced"
42) "1"- Simulate primary node downtime
docker-compose stop
redisgraph-master- View master node information
127.0.0.1:26379> SENTINEL get-master-addr-by-name mymaster- The primary node has been transferred
- Start the down host
docker-compose start redisgraph-master- View the current master node information
127.0.0.1:26379> SENTINEL get-master-addr-by-name mymaster- When the down node starts , It does not affect the currently elected master node
- View master node information
info replication - You can see the previous master node (172.25.0.2) Transfer to slave node
- A functional test
- establish
127.0.0.1:6380> GRAPH.QUERY MotoGP "CREATE (:Rider {name:'Valentino Rossi'})-[:rides]->(:Team {name:'Yamaha'}), (:Rider {name:'Dani Pedrosa'})-[:rides]->(:Team {name:'Honda'}), (:Rider {name:'Andrea Dovizioso'})-[:rides]->(:Team {name:'Ducati'})"- Inquire about
127.0.0.1:6380> GRAPH.QUERY MotoGP "MATCH (r:Rider)-[:rides]->(t:Team) WHERE t.name = 'Yamaha' RETURN r.name, t.name"- Lord
- from
Remember to pay attention to , Communication is not lost
边栏推荐
- How to convert the world coordinates of unity's camera into view matrix
- Review the code implementation of memcpy function
- Alibaba cloud technology expert Yang Zeqiang: building observable capabilities on elastic computing cloud
- Siyuan notes V2.1.2 synchronization problem
- Zooinspector Download
- Detailed explanation of ELF format (I)
- Conversion between VC string and timestamp
- Reading notes: you only look once:unified, real time object detection
- Interface component devaxpress asp Net v22.1 - new office 365 dark theme
- Literature reading: gopose 3D human pose estimation using WiFi
猜你喜欢

Hold the C pointer

Conversion between VC string and timestamp

Convolutional neural network CNN
![[resolved] CVC datatype valid. 1.2.1: '' is not a valid value for 'ncname'.](/img/27/ae15e553eba99acf19beb93a3e9939.jpg)
[resolved] CVC datatype valid. 1.2.1: '' is not a valid value for 'ncname'.

【JVM学习03】类加载与字节码技术

Pay close attention! List of the latest agenda of 2022 open atom open source Summit

Setting up a dual machine debugging environment for drive development (vs2017)
![[face to face experience of school recruitment] 8 real questions of pointer interview. Come and test how many you have mastered.](/img/2c/e687b224285aeee66dacace6331161.png)
[face to face experience of school recruitment] 8 real questions of pointer interview. Come and test how many you have mastered.
思源笔记 v2.1.2 同步问题
![[laser principle and application -6]:q switching element and Q drive circuit board](/img/30/e199b73fb9b0ad335f26f2378cfc45.png)
[laser principle and application -6]:q switching element and Q drive circuit board
随机推荐
Look at the interface control devaxpress WinForms - how to customize auxiliary function properties (Part 2)
Sword finger offer 50. the first character that appears only once
Zooinspector Download
Leetcode402 remove K digits
Day 10 (inheritance, rewriting and use of super)
LSTM and Gru of RNN_ Attention mechanism
Taokeeper environment setup
He has been in charge of the British Society of engineering and technology for 13 years, and van nugget officially retired
How does PostgreSQL decide PG's backup strategy
MySQL8.0学习记录19 - 页区段与表空间
PostgreSQL Elementary / intermediate / advanced certification examination (7.16) passed the candidates' publicity
6.0 holes stepped by fragment request permission in the system
day 1
Introduction to WDK development 1- basic environment construction and the first driver (VS2010)
pyhanlp安装教程
How to encrypt your own program with dongle
Detailed explanation of ELF format (I)
Elastomer simulation (elasticity)
Hide the middle digit of ID number
Rotation matrix derivation process