internal/Anycast-Wiki.md
... ...
@@ -1,10 +1,14 @@
1
-#####exabgp watchdog script
1
+The idea is to setup mirrors of this wiki across dn42, using [anycast](https://en.wikipedia.org/wiki/Anycast) to provide redundancy and load-balancing.
2
+The local webserver is monitored with a simple shell script (below) working in conjuction with [ExaBGP](https://github.com/Exa-Networks/exabgp), announcing/withdrawing the assigned route if the service is up/down.
3
+
4
+#####gollum-watchdog.sh:
2 5
3 6
```
4 7
5 8
#!/bin/bash
6 9
7 10
URL=( "http://172.23.0.80" "https://172.23.0.80" )
11
+
8 12
VALIDATE_KEYWORD='gollum'
9 13
ROUTE='172.23.0.80/28'
10 14
NEXTHOP='172.22.177.72'