forked from gao-feng/colo-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
topology.txt
50 lines (43 loc) · 3.81 KB
/
topology.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
+--------+
|client |
master +----+---+ slave
-----------------------------------+ | -----------------------------------+
| + | |
+-------+ +----------[eth0] ---------------[switch]-------------- [eth0]-----------+ |
|guest | +---+-+ | | +---+-+ |
| [tap0]--+ br0 | | | | br0 | |
| | +-----+ [eht1] ---------------[forward]-------------- [eth1]--+ +-----+ |
+-------+ | | | +-------+ |
| | | +-----+ | guest | |
[eth2] -------------[checkpoint]------------- [eth2] +----|br1 |---[tap0] | |
| | +-----+ | | |
| | +-------+ |
| | |
-----------------------------------+ +----------------------------------+
e.g.
master:
br0: 192.168.0.33
eth1: 192.168.1.33
eth2: 192.168.2.33
slave:
br0: 192.168.0.88
br1: no ip address
eth1: 192.168.1.88
eth2: 192.168.2.88
====================================================after failover======================================================
+--------+
|client |
master (dead) +----+---+ slave(alive)
-----------------------------------+ | -----------------------------------+
| + | |
+-------+ +----------[eth0] -------x-------[switch]--------------- [eth0]-----------+ |
|guest | +---+-+ | | +---+-+ |
| [tap0]--+ br0 | | | | br0 |--+ |
| | +-----+ [eht1] -------x-------[forward]-------------- [eth1] +-----+ | |
+-------+ | | | +-------+ |
| | +-----+ | | guest | |
[eth2] -------x-----[checkpoint]------------- [eth2] |br1 | +[tap0] | |
| | +-----+ | | |
| | +-------+ |
| | |
-----------------------------------+ +----------------------------------+