Commit b5ceef6
committed
replicators: Pass replica parameters to MySQL server
When Readyset is registering as a replica in the MySQL
server, it provides an option to provide replica paramters
such as hostname, port, username and password. These are
shown when SHOW REPLICAS is run in the master database.
This commit adds following arguments to Readyset:
```
--report-host
--report-port
--report-user
--report-password
```
These are passed to the MySQL server with replica
registration.
The arguments are intentionally kept same as the MySQL
arguments for replica registration. The variable names use
the "replica" prefix to indicate that these are replica
parameters.
Fixes: #REA-4690
Closes: #1357
Release-Note-Core: Add `--report-host`, `--report-port`,
`--report-user` and `--report-password` arguments to
Readyset. These are used to show the replica parameters
when SHOW REPLICAS is run in the master database.
Change-Id: I7596fadb056fd39c2701f095cfed19a1a712efd4
Reviewed-on: https://gerrit.readyset.name/c/readyset/+/10282
Reviewed-by: Marcelo Altmann <marcelo@readyset.io>
Tested-by: Buildkite CI1 parent 8d15521 commit b5ceef6
File tree
3 files changed
+80
-17
lines changed- database-utils/src
- replicators/src
- mysql_connector
3 files changed
+80
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
96 | 120 | | |
97 | 121 | | |
98 | 122 | | |
| |||
320 | 344 | | |
321 | 345 | | |
322 | 346 | | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
323 | 351 | | |
324 | 352 | | |
325 | 353 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
174 | 175 | | |
175 | 176 | | |
176 | 177 | | |
177 | | - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
178 | 185 | | |
179 | 186 | | |
180 | 187 | | |
| |||
191 | 198 | | |
192 | 199 | | |
193 | 200 | | |
194 | | - | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
195 | 219 | | |
196 | 220 | | |
197 | 221 | | |
| |||
243 | 267 | | |
244 | 268 | | |
245 | 269 | | |
246 | | - | |
247 | 270 | | |
248 | 271 | | |
249 | 272 | | |
| 273 | + | |
250 | 274 | | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
251 | 287 | | |
252 | 288 | | |
253 | 289 | | |
| |||
263 | 299 | | |
264 | 300 | | |
265 | 301 | | |
266 | | - | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
267 | 314 | | |
268 | 315 | | |
269 | 316 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
428 | 428 | | |
429 | 429 | | |
430 | 430 | | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | 431 | | |
444 | 432 | | |
445 | 433 | | |
446 | 434 | | |
447 | 435 | | |
448 | | - | |
449 | 436 | | |
450 | 437 | | |
451 | 438 | | |
| 439 | + | |
452 | 440 | | |
453 | 441 | | |
454 | 442 | | |
| |||
0 commit comments