当前位置:网站首页>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
边栏推荐
- 信道状态信息(CSI)共轭相乘去噪法
- This visual analysis library makes it easy for you to play with data science!
- Sword finger offer 47. the maximum value of gifts
- How to convert the world coordinates of unity's camera into view matrix
- [untitled]
- 思源笔记 v2.1.2 同步问题
- Elastomer simulation (elasticity)
- Description of large and small end mode
- 【无标题】
- Getaverse, a distant bridge to Web3
猜你喜欢

Xiaomi 12s ultra products are so powerful, but foreigners can't buy Lei Jun: first concentrate on the Chinese market

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

C # shelling tool for code encryption protection

Flink window & time principle

In the spring of domestic databases

day 3

Hucang integrated release of full data value, sequoiadb V5.2 online conference heavy attack

Why are there loopholes in the website to be repaired
![[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.
Siyuan notes V2.1.2 synchronization problem
随机推荐
Flink window & time principle
Is the incremental update of SQL Server database identified according to the where clause? Can't do stream update? Each table should
[understanding of opportunity-48]: Guiguzi - Chapter 7 - collect information in advance, make predictions and implementation plans in advance
Excuse me: is Flink 1.14.5 compatible with MySQL CDC 2.1.0
《自尊的6大支柱》自尊来源于自身的感受
Classic interview questions of interface testing: what is the difference between session, cookie and token?
Install SSL Certificate in Litespeed web server
Machine learning_ Data processing and model evaluation
Elastomer simulation (elasticity)
纯C实现----------尼科彻斯定理
2019 Hangdian multi school first 6581 vacation [thinking]
[untitled]
A circle is displayed and can be moved
Sword finger offer 46. translate numbers into strings
SSL Error: Unable to verify the first certificate
Hidden Markov model HMM
Unity code imports packages through package manager
Jedi survive and eat chicken F12 screenshot save path reference
Taokeeper environment setup
Unity2d~ game practice of decrypting Zhou mu (completed in three days)