proxy.sh start/stop script
[yazpp-moved-to-github.git] / src / voyager.xml
1 <?xml version="1.0"?>
2 <!-- $Id: voyager.xml,v 1.1 2003-10-23 08:46:17 adam Exp $ -->
3 <proxy>
4   <!-- define default target and name it voyager -->
5   <target default="1" name="voyager">
6     <!-- all backend addresses as seen from this proxy .. -->
7     <url>z3950.loc.gov:7090</url>
8     <url>z3950.loc.gov:7094</url>
9
10     <!-- set session timeout between proxy and backend target -->
11     <target-timeout>300</target-timeout>
12
13     <!-- set session timeout between client and proxy.
14     Should be lower than target-timeout -->
15     <client-timeout>180</client-timeout>
16
17     <!-- if either bandwidth or pdu limit is reached the session is no
18     longer kept alive -->
19     <keepalive>
20       <bandwidth>500000</bandwidth>
21       <pdu>500</pdu>
22     </keepalive>
23
24     <!-- client limits .. -->
25     <limit>
26       <bandwidth>200000</bandwidth>
27       <pdu>31</pdu>
28       <retrieve>20</retrieve>
29     </limit>
30
31     <!-- list allowed attributes; reject all others at the end -->
32     <attribute type="1" value="1-11,13-1010"/>
33     <attribute type="1" value="*" error="114"/>
34
35     <!-- list allowed record syntaxes; reject all others at the end -->
36     <syntax type="opac"/>
37     <syntax type="usmarc"/>
38     <syntax type="none"/>
39     <syntax type="xml" marcxml="1"/>
40     <syntax type="*" error="238"/>
41
42     <!-- keep this number of spare sessions for future sessions -->
43     <preinit>2</preinit>
44   </target>
45
46   <!-- maximum number of client sessions. Remember to allow for
47      at least max-clients*2+5 sockets. Use 'ulimit -n 1040' on bash -->
48   <max-clients>500</max-clients>
49   
50   <!-- what we log. Allowed tokens: client-apdu, server-apdu,
51   client-requests, server-requests -->
52   <log>client-requests server-requests</log>
53 </proxy>