forked from mbroome/ogslb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
34 lines (22 loc) · 1.4 KB
/
INSTALL
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
Installing ogslb
Requirements:
python
redis
powerdns
Install:
Currently, ogslb has some hard coded paths that require it to live under /opt/ogslb.
Redis needs to be running on 'localhost'.
Powerdns needs to be configured to use the ogslb backend. Typically, ogslb will be configured to handle requests first in powerdns and if it doesn't have any matching data, the request will fall through to the next available backend such as bind style zone files. Additionally, you will typically want to disable caching of dns records in powerdns to make sure you have the latest version of data from ogslb.
Powerdns config (often /etc/pdns/pdns.conf):
launch=pipe,bind # launch the backends in order of the ogslb pipe, then the bind zone files
pipe-command=/opt/ogslb/bin/backend.py # where the ogslb backend lives
cache-ttl=0 # and now we disable all of the caching
negquery-cache-ttl=0 #
query-cache-ttl=0 #
recursive-cache-ttl=0 #
Running:
Once powerdns is configured, it will need to be restarted to pick up the new ogslb backend.
Now, you will need to configure oglsb to tell it what to monitor. Take a look at the POLLERS text file to understand how to configure etc/pollers.xml.
Once etc/pollers.xml has been configured, simply start bin/ogslbd. The ogslb daemon logs to /var/log/ogslbd.log.
Testing:
You can use bin/view.py to get a basic idea of what has been collected by ogslbd and stored in redis.