set pqf
[yazpp-moved-to-github.git] / etc / voyager.xml
1 <?xml version="1.0"?>
2 <!-- $Id: voyager.xml,v 1.4 2004-01-05 11:30: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
9     <!-- set session timeout between proxy and backend target -->
10     <target-timeout>300</target-timeout>
11
12     <!-- set session timeout between client and proxy.
13     Should be lower than target-timeout -->
14     <client-timeout>180</client-timeout>
15
16     <!-- if either bandwidth or pdu limit is reached the session is no
17     longer kept alive -->
18     <keepalive>
19       <bandwidth>500000</bandwidth>
20       <pdu>500</pdu>
21     </keepalive>
22
23     <!-- client limits .. -->
24     <limit>
25       <bandwidth>200000</bandwidth>
26       <pdu>31</pdu>
27       <retrieve>50</retrieve>
28     </limit>
29
30     <!-- use attributes -->
31     <attribute type="1" value="1-11,13-1010,1013-1023,1025-1030"/>
32     <attribute type="1" value="*" error="114"/>
33
34     <!-- relation attributes -->
35     <attribute type="2" value="1,2,3,4,5,6"/>
36     <attribute type="2" value="*" error="117"/>
37     
38     <!-- position attributes -->
39     <attribute type="3" value="1,2,3"/>
40     <attribute type="3" value="*" error="119"/>
41
42     <!-- structure attributes -->
43     <attribute type="4" value="1,2,3,4,5,6"/>
44     <attribute type="4" value="*" error="118"/>
45
46     <!-- truncation attributes -->
47     <attribute type="5" value="1,100"/>
48     <attribute type="5" value="*" error="120"/>
49
50     <!-- completeness attributes -->
51     <attribute type="6" value="1,2,3"/>
52     <attribute type="6" value="*" error="122"/>
53
54     <!-- other types -->
55     <attribute type="*" value="*" error="113"/>
56
57     <!-- list allowed record syntaxes and possible schemas (if any);
58     reject all others at the end -->
59     <syntax type="opac"/>
60     <syntax type="usmarc"/>
61     <syntax type="none"/>
62
63     <syntax type="xml" marcxml="1" stylesheet="MARC21slim2DC.xsl">
64       dc
65       http://www.loc.gov/zing/srw/dcschema/v1.0/
66     </syntax>
67     <syntax type="xml" marcxml="1">
68       marcxml
69       http://www.loc.gov/marcxml/
70     </syntax>
71     <syntax type="xml" marcxml="1" stylesheet="MARC21slim2MODS.xsl">
72       mods
73       http://www.loc.gov/mods/v3
74     </syntax>
75
76     <syntax type="*" error="238"/>
77
78     <!-- keep this number of spare sessions for future sessions -->
79     <preinit>2</preinit>
80
81     <explain>
82       <serverInfo>
83         <host>indexdata.dk</host>
84         <port>9000</port>
85       </serverInfo>
86     </explain>
87    <cql2rpn>pqf.properties</cql2rpn>
88   </target>
89
90
91   <!-- maximum number of client sessions. Remember to allow for
92      at least max-clients*2+5 sockets. Use 'ulimit -n 1040' on bash -->
93   <max-clients>500</max-clients>
94   
95   <!-- what we log. Allowed tokens: client-apdu, server-apdu,
96   client-requests, server-requests -->
97   <log>client-requests server-requests</log>
98 </proxy>