@@ -68,8 +68,6 @@ Sakura-DBCは、以下のコンポーネントを利用します。
68
68
```
69
69
- /etc/frr/daemons ファイルを作成します
70
70
```
71
- # vi /etc/frr/daemons
72
- ----
73
71
bgpd=yes
74
72
vtysh_enable=yes
75
73
zebra_options=" -A 127.0.0.1 -s 90000000"
@@ -78,35 +76,58 @@ Sakura-DBCは、以下のコンポーネントを利用します。
78
76
```
79
77
- /etc/frr/frr.conf ファイルを作成します
80
78
```
81
- # vi /etc/frr/frr.conf
82
- ----
83
79
hostname test-server 【自身のホスト名を記入】
80
+ log stdout
84
81
log syslog informational
85
82
no ip forwarding
86
83
no ipv6 forwarding
87
- ip nht resolve-via-default
88
84
bgp no-rib
89
85
!
90
- router bgp 65001
86
+ router bgp 65003
91
87
bgp router-id xx.xx.xx.xx 【自身のIPアドレスを記入】
92
88
bgp log-neighbor-changes
89
+ no bgp ebgp-requires-policy
90
+ bgp disable-ebgp-connected-route-check
93
91
no bgp network import-check
94
92
neighbor yy.yy.yy.yy remote-as 65001 【DBサーバ(1台目)のIPアドレスを記入】
95
93
neighbor yy.yy.yy.yy timers 3 9
96
- neighbor yy.yy.yy.yy route-reflector-client
97
- neighbor zz.zz.zz.zz remote-as 65001 【DBサーバ(2台目)のIPアドレスを記入】
94
+ neighbor zz.zz.zz.zz remote-as 65002 【DBサーバ(2台目)のIPアドレスを記入】
98
95
neighbor zz.zz.zz.zz timers 3 9
99
- neighbor zz.zz.zz.zz route-reflector-client
100
- network xx.xx.xx.xx/32 route-map anchor 【自身のIPアドレスを記入】
96
+ !
97
+ address-family ipv4 unicast
98
+ network xx.xx.xx.xx/32 route-map anchor 【自身のIPアドレスを記入】
99
+ neighbor yy.yy.yy.yy soft-reconfiguration inbound 【DBサーバ(1台目)のIPアドレスを記入】
100
+ neighbor zz.zz.zz.zz soft-reconfiguration inbound 【DBサーバ(2台目)のIPアドレスを記入】
101
+ exit-address-family
102
+ exit
103
+ !
104
+ bgp community-list standard anchor seq 5 permit 65000:10
105
+ bgp community-list standard candidate seq 5 permit 65000:2
106
+ bgp community-list standard fault seq 5 permit 65000:1
107
+ bgp community-list standard primary seq 5 permit 65000:3
108
+ bgp community-list standard replica seq 5 permit 65000:4
109
+ !
110
+ route-map fault permit 10
111
+ set community 65000:1
112
+ exit
113
+ !
114
+ route-map candidate permit 10
115
+ set community 65000:2
116
+ exit
101
117
!
102
- bgp community-list standard fault seq 5 permit 65001:1
103
- bgp community-list standard candidate seq 5 permit 65001:2
104
- bgp community-list standard primary seq 5 permit 65001:3
105
- bgp community-list standard replica seq 5 permit 65001:4
106
- bgp community-list standard anchor seq 5 permit 65001:10
118
+ route-map primary permit 10
119
+ set community 65000:3
120
+ exit
121
+ !
122
+ route-map replica permit 10
123
+ set community 65000:4
124
+ exit
107
125
!
108
126
route-map anchor permit 10
109
- set community 65001:10
127
+ set community 65000:10
128
+ exit
129
+ !
130
+ ip nht resolve-via-default
110
131
```
111
132
- FRRを起動します
112
133
```
@@ -126,8 +147,6 @@ Sakura-DBCは、以下のコンポーネントを利用します。
126
147
127
148
- /etc/yum.repos.d/MariaDB.repo ファイルを作成します
128
149
```
129
- # vi /etc/yum.repos.d/MariaDB.repo
130
- ----
131
150
[mariadb]
132
151
name = MariaDB
133
152
baseurl = https://rpm.mariadb.org/10.11/rhel/$releasever/$basearch
@@ -141,8 +160,6 @@ Sakura-DBCは、以下のコンポーネントを利用します。
141
160
```
142
161
- /etc/my.cnf ファイルを作成します
143
162
```
144
- # vi /etc/my.cnf
145
- ----
146
163
[mariadb]
147
164
148
165
character_set_server = utf8mb4
@@ -234,15 +251,13 @@ Sakura-DBCは、以下のコンポーネントを利用します。
234
251
注: コンパイルが成功すると、実行バイナリが ` /root/distributed-mariadb-controller/bin/db-controller ` に生成されます
235
252
- /etc/systemd/system/db-controller.service ファイルを作成します
236
253
```
237
- # vi /etc/systemd/system/db-controller.service
238
- ----
239
254
[Unit]
240
255
Description=Database Controller
241
256
After=network-online.target
242
257
243
258
[Service]
244
259
Type=simple
245
- ExecStart=/root/distributed-mariadb-controller/bin/db-controller --log-level info --db-repilica-password-filepath /root/.db-replica-password --db-replica-source-port 13306 --bgp-peer-addresses= xx.xx.xx.xx,yy.yy.yy.yy 【アンカーともう一台のDBサーバのIPアドレスを記入 】
260
+ ExecStart=/root/distributed-mariadb-controller/bin/db-controller --log-level info --db-repilica-password-filepath /root/.db-replica-password --db-replica-source-port 13306 --bgp-local-asn XXXX --bgp-peer1-addr xx.xx.xx.xx --bgp-peer1-asn XXXX --bgp-peer2-addr xx.xx.xx.xx --bgp-peer2-asn XXXX 【アンカーともう一台のDBサーバのIPアドレスとAS番号を記入 】
246
261
WorkingDirectory = /root/distributed-mariadb-controller
247
262
248
263
[Install]
@@ -260,8 +275,8 @@ Sakura-DBCは、以下のコンポーネントを利用します。
260
275
- gobgpをインストールします
261
276
(db-controllerの動作上必要になるものではありませんが、CLIによりBGPの状態確認ができるためインストールを推奨します)
262
277
```
263
- # wget https://github.com/osrg/gobgp/releases/download/v3.35.0/gobgp_3.35 .0_linux_amd64.tar.gz
264
- # tar -C /usr/local/bin -xzf gobgp_3.35 .0_linux_amd64.tar.gz
278
+ # wget https://github.com/osrg/gobgp/releases/download/v3.35.0/gobgp_3.36 .0_linux_amd64.tar.gz
279
+ # tar -C /usr/local/bin -xzf gobgp_3.36 .0_linux_amd64.tar.gz
265
280
```
266
281
267
282
### 5. GSLBのセットアップ
0 commit comments