98355e4c6b21db5fa489526ed02b58ab5fe3ac7f
services/Distributed-Wiki.md
| ... | ... | @@ -1,4 +1,4 @@ |
| 1 | -The idea is to deploy mirrors across dn42 using [anycast](https://en.wikipedia.org/wiki/Anycast) addressing (BGP), thus providing redundancy, load-balancing and improved access times for the site. |
|
| 1 | +The idea is to deploy mirrors across dn42 using [anycast](https://en.wikipedia.org/wiki/Anycast) addressing (BGP), thus providing redundancy, load-balancing and improved access times to the site. |
|
| 2 | 2 | The local webserver is monitored with a simple [[shell script|Distributed-Wiki#exabgp_watchdog-script]] working [[in conjunction|Distributed-Wiki#exabgp]] with [ExaBGP](https://github.com/Exa-Networks/exabgp), announcing/withdrawing the assigned route if the service is up/down. |
| 3 | 3 | |
| 4 | 4 | ## Network |
| ... | ... | @@ -126,7 +126,7 @@ Watchdog runs in an infinite loop, sending the appropriate commands to stdout. [ |
| 126 | 126 | |
| 127 | 127 | Run `gollum-watchdog.sh` in a shell first to validate it's working: |
| 128 | 128 | |
| 129 | -``` |
|
| 129 | +```sh |
|
| 130 | 130 | #!/bin/bash |
| 131 | 131 | |
| 132 | 132 | CURL=curl |
| ... | ... | @@ -193,7 +193,7 @@ exit 0 |
| 193 | 193 | |
| 194 | 194 | `USAGE: /etc/exabgp/run.sh [start|stop|restart]` |
| 195 | 195 | |
| 196 | -``` |
|
| 196 | +```sh |
|
| 197 | 197 | |
| 198 | 198 | #!/bin/bash |
| 199 | 199 |