~ubuntu-branches/debian/sid/resource-agents/sid

« back to all changes in this revision

Viewing changes to debian/ldirectord.cf.example

  • Committer: Bazaar Package Importer
  • Author(s): Martin Loschwitz
  • Date: 2011-08-24 09:32:00 UTC
  • Revision ID: james.westby@ubuntu.com-20110824093200-s8b8oxtn5a9xy3gq
Tags: 1:3.9.2-1
* Package rename due to restructuring from upstream
* Added resource-agents-dev package to hold the important header file
* New upstream release from new repository
* Updated to new Policy version, no changes necessary
* Adapt patches to work with the new upstream version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Sample ldirectord configuration file to configure various virtual services.
 
3
#
 
4
# Ldirectord will connect to each real server once per second and request
 
5
# /index.html. If the data returned by the server does not contain the
 
6
# string "Test Message" then the test fails and the real server will be
 
7
# taken out of the available pool. The real server will be added back into
 
8
# the pool once the test succeeds. If all real servers are removed from the
 
9
# pool then localhost:80 is added to the pool as a fallback measure.
 
10
 
 
11
# Global Directives
 
12
checktimeout=3
 
13
checkinterval=1
 
14
#fallback=127.0.0.1:80
 
15
autoreload=yes
 
16
#logfile="/var/log/ldirectord.log"
 
17
#logfile="local0"
 
18
#emailalert="admin@x.y.z"
 
19
#emailalertfreq=3600
 
20
#emailalertstatus=all
 
21
quiescent=yes
 
22
 
 
23
# Sample for an http virtual service
 
24
virtual=192.168.6.240:80
 
25
        real=192.168.6.2:80 gate
 
26
        real=192.168.6.3:80 gate
 
27
        real=192.168.6.6:80 gate
 
28
        fallback=127.0.0.1:80 gate
 
29
        service=http
 
30
        request="index.html"
 
31
        receive="Test Page"
 
32
        virtualhost=some.domain.com.au
 
33
        scheduler=rr
 
34
        #persistent=600
 
35
        #netmask=255.255.255.255
 
36
        protocol=tcp
 
37
        checktype=negotiate
 
38
        checkport=80
 
39
        request="index.html"
 
40
        receive="Test Page"
 
41
        virtualhost=www.x.y.z
 
42
 
 
43
# Sample configuration for a fwmark based service For an explination of
 
44
# fwmark see the ipvsadm(8) man page
 
45
#virtual=1
 
46
#       real=192.168.6.2 gate
 
47
#       real=192.168.6.3 gate
 
48
#       real=192.168.6.6 gate
 
49
#       fallback=127.0.0.1:80 gate
 
50
#       service=http
 
51
#       scheduler=rr
 
52
#       #persistent=600
 
53
#       #netmask=255.255.255.255
 
54
#       protocol=fwm
 
55
#       checktype=negotiate
 
56
#       checkport=80
 
57
#       request="index.html"
 
58
#       receive="Test Page"
 
59
#       virtualhost=x.y.z
 
60
 
 
61
# Sample configuration for a service using a range of real servers
 
62
# and a single real server for a virtual service
 
63
#virtual=192.168.6.240:80
 
64
#       real=192.168.6.2->192.168.6.7:80 gate
 
65
#       real=192.168.6.32:80 gate
 
66
#       fallback=127.0.0.1:80 gate
 
67
#       service=http
 
68
#       scheduler=rr
 
69
#       #persistent=600
 
70
#       #netmask=255.255.255.255
 
71
#       protocol=tcp
 
72
#       checktype=negotiate
 
73
#       checkport=80
 
74
#       request="index.html"
 
75
#       receive="Test Page"
 
76
#       virtualhost=x.y.z
 
77
 
 
78
#Sample configuration for an https virtual service.
 
79
#Fallback setting overides global
 
80
#virtual=192.168.6.240:443
 
81
#       real=192.168.16.3:443 masq
 
82
#       real=192.168.16.5:443 masq
 
83
#       fallback=127.0.0.1:443
 
84
#       service=https
 
85
#       scheduler=rr
 
86
#       #persistent=600
 
87
#       #netmask=255.255.255.255
 
88
#       protocol=tcp
 
89
#       checktype=negotiate
 
90
#       checkport=443
 
91
#       request="index.html"
 
92
#       receive="Test Page"
 
93
#       virtualhost=x.y.z
 
94
 
 
95
#Sample configuration for an ftp virtual service.
 
96
#Fallback setting overides global
 
97
#virtual=192.168.6.240:21
 
98
#       real=192.168.16.3:21 masq
 
99
#       real=192.168.16.5:21 masq
 
100
#       fallback=127.0.0.1:21
 
101
#       service=ftp
 
102
#       checkport=21
 
103
#       scheduler=wlc
 
104
#       scheduler=rr
 
105
#       #persistent=600
 
106
#       #netmask=255.255.255.255
 
107
#       protocol=tcp
 
108
#       checktype=negotiate
 
109
#       login="anonymous"
 
110
#       passwd="ldirectord@localhost"
 
111
#       request="welcome.msg"
 
112
#       receive="test"
 
113
 
 
114
#Sample configuration for an smtp virtual service.
 
115
#Fallback setting overides global
 
116
#virtual=192.168.6.240:25
 
117
#       real=192.168.16.3:25 masq
 
118
#       real=192.168.16.5:25 masq
 
119
#       fallback=127.0.0.1:25
 
120
#       service=smtp
 
121
#       scheduler=wlc
 
122
#       protocol=tcp
 
123
#       persistent=600
 
124
#       #netmask=255.255.255.255
 
125
#       checktype=negotiate
 
126
#       checkport=25
 
127
 
 
128
#Sample configuration for a pop virtual service.
 
129
#Fallback setting overides global
 
130
#virtual=192.168.6.240:110
 
131
#       real=192.168.16.3:110 masq
 
132
#       real=192.168.16.5:110 masq
 
133
#       fallback=127.0.0.1:110
 
134
#       service=pop
 
135
#       scheduler=wlc
 
136
#       persistent=600
 
137
#       #netmask=255.255.255.255
 
138
#       protocol=tcp
 
139
#       checktype=negotiate
 
140
#       checkport=110
 
141
#       #login="test"
 
142
#       #passwd="test"
 
143
 
 
144
##Sample configuration for an imap virtual service.
 
145
#Fallback setting overides global
 
146
#virtual=192.168.6.240:143
 
147
#       real=127.0.0.1:143 masq
 
148
#       real=192.168.16.3:143 masq
 
149
#       real=192.168.16.5:143 masq
 
150
#       fallback=127.0.0.1:143
 
151
#       service=imap
 
152
#       scheduler=wlc
 
153
#       #persistent=600
 
154
#       #netmask=255.255.255.255
 
155
#       protocol=tcp
 
156
#       checktype=negotiate
 
157
#       checkport=143
 
158
#       #login="test"
 
159
#       #passwd="test"
 
160
 
 
161
#Sample configuration for an ldap virtual service.
 
162
#Fallback setting overides global
 
163
#virtual=192.168.84.5:389
 
164
#       real=10.0.1.4:389 masq
 
165
#       real=10.0.1.6:389 masq
 
166
#       fallback=127.0.0.1:389
 
167
#       service=ldap
 
168
#       scheduler=wlc
 
169
#       #persistent=600
 
170
#       #netmask=255.255.255.255
 
171
#       protocol=tcp
 
172
#       checktype=negotiate
 
173
#       checkport=369
 
174
#       request="dc=upmc, dc=fr"
 
175
#       receive="dc=upmc, dc=fr"
 
176
#       #login="test"
 
177
#       #passwd="test"
 
178
 
 
179
#Sample configuration for an nntp virtual service.
 
180
#Fallback setting overides global
 
181
#virtual=192.168.84.5:119
 
182
#       real=10.0.1.4:119 masq
 
183
#       real=10.0.1.6:119 masq
 
184
#       fallback=127.0.0.1:119
 
185
#       service=nntp
 
186
#       scheduler=wlc
 
187
#       #persistent=600
 
188
#       #netmask=255.255.255.255
 
189
#       protocol=tcp
 
190
#       checktype=negotiate
 
191
#       checkport=119
 
192
 
 
193
#Sample configuration for a UDP DNS virtual service.
 
194
#Fallback setting overides global
 
195
#virtual=192.168.84.5:53
 
196
#       real=10.0.1.4:53 masq
 
197
#       real=10.0.1.6:53 masq
 
198
#       fallback=127.0.0.1:53
 
199
#       service=dns
 
200
#       scheduler=wlc
 
201
#       #persistent=600
 
202
#       #netmask=255.255.255.255
 
203
#       protocol=udp
 
204
#       checktype=negotiate
 
205
#       checkport=53
 
206
#       request="x.y.z"
 
207
#       receive="127.0.0.1"
 
208
 
 
209
#Sample configuration for a MySQL virtual service.
 
210
#virtual = 192.168.10.74:3306
 
211
#       real=sql01->sql03:3306 gate 10
 
212
#       fallback=127.0.0.1:3306
 
213
#       service=mysql
 
214
#       scheduler=wrr
 
215
#       #persistent=600
 
216
#       #netmask=255.255.255.255
 
217
#       protocol=tcp
 
218
#       checktype=negotiate
 
219
#       login="readuser"
 
220
#       passwd="genericpassword"
 
221
#       database="portal"
 
222
#       request="SELECT * FROM link"
 
223
 
 
224
#Sample configuration for a PostgreSQL virtual service.
 
225
#virtual = 192.168.10.74:5432
 
226
#       real=sql01->sql03:5432 gate 10
 
227
#       fallback=127.0.0.1:5432
 
228
#       service=pgsql
 
229
#       scheduler=wrr
 
230
#       #persistent=600
 
231
#       #netmask=255.255.255.255
 
232
#       protocol=tcp
 
233
#       checktype=negotiate
 
234
#       login="readuser"
 
235
#       passwd="genericpassword"
 
236
#       database="portal"
 
237
#       request="SELECT * FROM link"
 
238
 
 
239
#Sample configuration for a Oracle virtual service.
 
240
#virtual = 192.168.10.74:1521
 
241
#       real=sql01->sql03:1521 gate 10
 
242
#       fallback=127.0.0.1:1521
 
243
#       service=oracle
 
244
#       scheduler=wrr
 
245
#       #persistent=600
 
246
#       #netmask=255.255.255.255
 
247
#       protocol=tcp
 
248
#       checktype=negotiate
 
249
#       login="readuser"
 
250
#       passwd="genericpassword"
 
251
#       database="portal"
 
252
#       request="SELECT * FROM link"
 
253
 
 
254
#Sample configuration for an unsuported protocol
 
255
#The real servers will just be brought up without checking for availability
 
256
#virtual=192.168.6.240:23
 
257
#       real=192.168.16.3:23 masq 
 
258
#       real=192.168.16.5:23 masq
 
259
#       fallback=127.0.0.1:23
 
260
#       service=none
 
261
#       scheduler=wlc
 
262
#       persistent=600
 
263
#       #netmask=255.255.255.255
 
264
#       protocol=tcp
 
265
#       checktype=on
 
266
 
 
267
# A sample virtual services that uses a ping check.
 
268
# Note that using checktype=connect and protocol=udp
 
269
# will also effect ping checks
 
270
#virtual=192.168.6.240:53
 
271
#       real=192.168.6.2:53 gate
 
272
#       real=192.168.6.3:53 gate
 
273
#       real=192.168.6.6:53 gate
 
274
#       fallback=127.0.0.1:53 gate
 
275
#       scheduler=rr
 
276
#       #persistent=600
 
277
#       #netmask=255.255.255.255
 
278
#       protocol=udp
 
279
#       checktype=ping
 
280
#       checkcount=3
 
281
 
 
282
# A sample virtual services that uses a Radius check on UDP.
 
283
# Note that using checktype=connect and protocol=udp
 
284
# will also effect ping checks
 
285
#virtual=192.168.6.240:1812
 
286
#       real=192.168.6.2::1812 gate
 
287
#       real=192.168.6.3::1812 gate
 
288
#       real=192.168.6.6::1812 gate
 
289
#       fallback=127.0.0.1:1812 gate
 
290
#       scheduler=rr
 
291
#       #persistent=600
 
292
#       #netmask=255.255.255.255
 
293
#       protocol=udp
 
294
#       checktype=negotiate
 
295
#       service=radius
 
296
#       password="readuser"
 
297
#       passwd="genericpassword"
 
298
#       secret="somesecret"
 
299
#       checktimeout=1
 
300
 
 
301
# A sample virtual services that uses a SIP check on UDP.
 
302
# Note that using checktype=connect and protocol=udp
 
303
# will also effect ping checks
 
304
#virtual=192.168.6.240:5060
 
305
#       real=192.168.6.2::5060 gate
 
306
#       real=192.168.6.3::5060 gate
 
307
#       real=192.168.6.6::5060 gate
 
308
#       fallback=127.0.0.1:5060 gate
 
309
#       scheduler=rr
 
310
#       #persistent=600
 
311
#       #netmask=255.255.255.255
 
312
#       protocol=udp
 
313
#       checktype=negotiate
 
314
#       service=sip
 
315
#       checktimeout=1
 
316