4 Example opensrf config file for OpenILS
5 See opensrf.xml.example for core config documentation
6 For non-core config info, see the inline documentation within this file
9 <opensrf version='0.0.1'>
15 <log>/path/to/log</log>
16 <sock>/path/to/sock</sock>
17 <pid>/path/to/pid</pid>
19 <!-- xsl stylesheets go here -->
20 <xsl>/path/to/xsl</xsl>
21 <conf>/path/to/conf</conf>
24 <server_type>prefork</server_type>
26 <!-- script for exception strings -->
27 <ex_script>/path/to/templates/strings/ex.ttk</ex_script>
28 <perm_script>/path/to/templates/strings/perm.ttk</perm_script>
32 <!-- OpenILS currently only searches the 'oclc' database when
33 doing Z39.50 importing... -->
35 <host>zcat.oclc.org</host>
38 <attr>12</attr> <!-- which @attr (tcn search) we're searching -->
39 <username>my_username</username>
40 <password>my_password</password>
43 <loc> <!-- loc has not been incorporated into the system yet -->
45 <host>z3950.loc.gov</host>
60 <server>127.0.0.1:1010</server>
62 <max_cache_time>86400</max_cache_time>
69 <keepalive>1</keepalive>
70 <stateless>1</stateless>
71 <implementation>OpenSRF::Application::Persist</implementation>
72 <max_requests>97</max_requests>
74 <unix_sock>opensrf.persist_unix.sock</unix_sock>
75 <unix_pid>opensrf.persist_unix.pid</unix_pid>
76 <max_requests>1000</max_requests>
77 <unix_log>opensrf.persist_unix.log</unix_log>
78 <min_children>5</min_children>
79 <max_children>25</max_children>
80 <min_spare_children>2</min_spare_children>
81 <max_spare_children>5</max_spare_children>
85 <dbfile>/path/to/dbfile/persist.db</dbfile>
90 <!-- Authentication server -->
92 <keepalive>5</keepalive>
93 <stateless>1</stateless>
94 <implementation>OpenILS::Application::Auth</implementation>
95 <max_requests>93</max_requests>
98 <unix_sock>open-ils.auth_unix.sock</unix_sock>
99 <unix_pid>open-ils.auth_unix.pid</unix_pid>
100 <max_requests>1000</max_requests>
101 <unix_log>open-ils.auth_unix.log</unix_log>
102 <min_children>5</min_children>
103 <max_children>35</max_children>
104 <min_spare_children>2</min_spare_children>
105 <max_spare_children>5</max_spare_children>
109 <!-- if true, user sessions will be persisted via the OpenSRF persist
110 server in addition to memcache -->
111 <persist_users>0</persist_users>
117 <!-- Generic search server -->
119 <keepalive>5</keepalive>
120 <stateless>1</stateless>
121 <implementation>OpenILS::Application::Search</implementation>
122 <max_requests>93</max_requests>
125 <unix_sock>open-ils.search_unix.sock</unix_sock>
126 <unix_pid>open-ils.search_unix.pid</unix_pid>
127 <max_requests>1000</max_requests>
128 <unix_log>open-ils.search_unix.log</unix_log>
129 <min_children>5</min_children>
130 <max_children>35</max_children>
131 <min_spare_children>2</min_spare_children>
132 <max_spare_children>5</max_spare_children>
136 <memcache>127.0.0.1:10101</memcache>
137 <max_cache_time>3600</max_cache_time>
138 <marc_html_xsl>oilsMARC21slim2HTML.xsl</marc_html_xsl>
144 <!-- server for accessing user info -->
146 <keepalive>5</keepalive>
147 <stateless>1</stateless>
148 <implementation>OpenILS::Application::Actor</implementation>
149 <max_requests>93</max_requests>
152 <unix_sock>open-ils.actor_unix.sock</unix_sock>
153 <unix_pid>open-ils.actor_unix.pid</unix_pid>
154 <max_requests>1000</max_requests>
155 <unix_log>open-ils.actor_unix.log</unix_log>
156 <min_children>5</min_children>
157 <max_children>35</max_children>
158 <min_spare_children>2</min_spare_children>
159 <max_spare_children>5</max_spare_children>
166 <!-- server for editing title, etc... -->
168 <keepalive>5</keepalive>
169 <stateless>1</stateless>
170 <implementation>OpenILS::Application::Cat</implementation>
171 <max_requests>199</max_requests>
174 <unix_sock>open-ils.cat_unix.sock</unix_sock>
175 <unix_pid>open-ils.cat_unix.pid</unix_pid>
176 <max_requests>1000</max_requests>
177 <unix_log>open-ils.cat_unix.log</unix_log>
178 <min_children>5</min_children>
179 <max_children>25</max_children>
180 <min_spare_children>2</min_spare_children>
181 <max_spare_children>5</max_spare_children>
188 <keepalive>3</keepalive>
189 <stateless>1</stateless>
190 <implementation>OpenSRF::Application::Demo::Math</implementation>
191 <max_requests>97</max_requests>
193 <unix_sock>opensrf.math_unix.sock</unix_sock>
194 <unix_pid>opensrf.math_unix.pid</unix_pid>
195 <max_requests>1000</max_requests>
196 <unix_log>opensrf.math_unix.log</unix_log>
197 <min_children>5</min_children>
198 <max_children>15</max_children>
199 <min_spare_children>2</min_spare_children>
200 <max_spare_children>5</max_spare_children>
205 <keepalive>3</keepalive>
206 <stateless>1</stateless>
207 <implementation>OpenSRF::Application::Demo::MathDB</implementation>
208 <max_requests>99</max_requests>
210 <max_requests>1000</max_requests>
211 <unix_log>opensrf.dbmath_unix.log</unix_log>
212 <unix_sock>opensrf.dbmath_unix.sock</unix_sock>
213 <unix_pid>opensrf.dbmath_unix.pid</unix_pid>
214 <min_children>5</min_children>
215 <max_children>15</max_children>
216 <min_spare_children>2</min_spare_children> <max_spare_children>5</max_spare_children>
220 <!-- Circulation server -->
222 <keepalive>3</keepalive>
223 <stateless>1</stateless>
224 <implementation>OpenILS::Application::Circ</implementation>
225 <max_requests>99</max_requests>
227 <max_requests>1000</max_requests>
228 <unix_log>open-ils.circ_unix.log</unix_log>
229 <unix_sock>open-ils.circ_unix.sock</unix_sock>
230 <unix_pid>open-ils.circ_unix.pid</unix_pid>
231 <min_children>5</min_children>
232 <max_children>25</max_children>
233 <min_spare_children>2</min_spare_children> <max_spare_children>5</max_spare_children>
238 <main>/path/to/circ/circ_main.rules</main>
239 <permission>/path/to/circ/permit_circ.rules</permission>
240 <duration>/path/to/circ/calculate_duration.rules</duration>
241 <recurring_fines>/path/to/circ/calculate_recurring_fines.rules</recurring_fines>
242 <max_fines>/path/to/circ/calculate_max_fines.rules</max_fines>
243 <permit_hold>/path/to/circ/permit_hold.rules</permit_hold>
244 <permit_renew>/path/to/circ/permit_renew.rules</permit_renew>
250 <!-- Database storage server -->
252 <keepalive>3</keepalive>
253 <stateless>1</stateless>
254 <implementation>OpenILS::Application::Storage</implementation>
256 <max_requests>1000</max_requests>
257 <unix_log>storage_unix.log</unix_log>
258 <unix_sock>storage_unix.sock</unix_sock>
259 <unix_pid>storage_unix.pid</unix_pid>
260 <max_requests>1000</max_requests>
261 <min_children>10</min_children>
262 <max_children>50</max_children>
263 <min_spare_children>2</min_spare_children>
264 <max_spare_children>5</max_spare_children>
273 <user>postgres</user>
274 <host>127.0.0.1</host>
277 <client_encoding>SQL_ASCII</client_encoding>
285 <keepalive>1</keepalive>
286 <stateless>0</stateless>
287 <implementation>OpenSRF::Application::Settings</implementation>
288 <max_requests>17</max_requests>
290 <unix_sock>opensrf.settings_unix.sock</unix_sock>
291 <unix_pid>opoensrf.settings_unix.pid</unix_pid>
292 <max_requests>1000</max_requests>
293 <unix_log>opensrf.settings_unix.log</unix_log>
294 <min_children>5</min_children>
295 <max_children>15</max_children>
296 <min_spare_children>3</min_spare_children>
297 <max_spare_children>5</max_spare_children>
308 <!-- single host install, everything goes into one host section -->
309 <myhost.mydomain.com> <!-- must match 'hostname -f' -->
312 <!-- opensrf builtin apps -->
313 <appname>opensrf.math</appname>
314 <appname>opensrf.dbmath</appname>
315 <appname>opensrf.settings</appname>
317 <!-- openils apps -->
318 <appname>open-ils.cat</appname>
319 <appname>open-ils.search</appname>
320 <appname>open-ils.circ</appname>
321 <appname>open-ils.actor</appname>
322 <appname>open-ils.auth</appname>
323 <appname>open-ils.storage</appname>
326 </myhost.mydomain.com>