[Yazlist] Metaproxy <route> always takes <route "id=start">

Stefan Lohrum lohrum at zib.de
Mon May 22 11:55:40 UTC 2017


Hello,

I want to use Metaproxy as a Z39 proxy for multiple
Solr servers having different XSLT for presentation.

For this reason I want to use different routes through
Metaproxy. In this example I define two routes
  <route id="first">
  <route id="start">
having different message tags in order to distinguish
the request processing in the logfile.

 From my unterstanding <start route="first"/> should
direct the request to <route id="first">.

Now I'm wondering that the request is directed to
<route id="start">, see logfile (1).

If I rename <route id="start"> to <route id="second">
Metaproxy won't startup at all, see logfile (1).


Pondering ...

Stefan


# ----Metaproxy Example Configuration ----------------------
<?xml version="1.0"?>
<metaproxy xmlns="http://indexdata.com/metaproxy" version="1.0">
   <dlpath>/usr/lib64/metaproxy6/modules</dlpath>
   <start route="first"/>
   <filters>
     <filter id="frontend" type="frontend_net">
       <threads>10</threads>
       <port>@:210</port>
     </filter>

     <filter type="log">
       <message>Default</message>
       <category apdu="true" session="true"/>
     </filter>

     <filter id="backend" type="zoom">
       <torus>
         <records>
           <record>
             <udb>ocs-test</udb>
             <cclmap_term>t=z</cclmap_term>
             <cclmap_ti>u=title t=z</cclmap_ti>
             <sru>solr</sru>
             <zurl>ocs-test.indexdata.com/solr/select</zurl>
           </record>
         </records>
       </torus>
       <fieldmap cql="cql.serverChoice"/>
       <fieldmap ccl="ti" cql="dc.title"/>
       <log apdu="true" />
       <zoom timeout="300"/>
     </filter>
   </filters>

   <routes>
     <route id="first">
       <filter refid="frontend"/>

       <filter type="log">
         <message>Z39/Solr:first</message>
         <category apdu="true" access="true" line="true"
                   session="true" />
       </filter>
       <filter refid="backend"/>
       <filter type="bounce"/>
     </route>

     <route id="start">
       <filter refid="frontend"/>
       <filter type="log">
         <message>Z39/Solr:second</message>
         <category apdu="true" access="true" line="true"
                   session="true" />
       </filter>
       <filter refid="backend"/>
       <filter type="bounce"/>
     </route>
   </routes>
</metaproxy>

# -- Yaz-client command -------------------------------------
[lohrum at sl49 log]$ yaz-client localhost/ocs-test
Connecting...OK.
Sent initrequest.
Connection accepted by v3 target.
ID     : 81
Name   : Metaproxy/YAZ
Version: 1.11.9/5.21.1 45b3c27d3df0705d9e86f8af0651c359f5a31171
Options: search present
Elapsed: 0.002209

# -- Metaproxy Logfile --------------------------------------
[metaproxy]# metaproxy -c route.xml
[root at sl49 metaproxy]# metaproxy  -c route-2.xml
13:40:21-22/05 25171 [log] metaproxy start 1.11.9 
87cb65a44b3f466d9eaeb95b725daa5d7f5f3e3e
13:40:21-22/05 25171 [log] YAZ 5.21.1 
45b3c27d3df0705d9e86f8af0651c359f5a31171
13:40:21-22/05 25171 [log] getrlimit NOFILE cur=1024 max=4096
13:40:21-22/05 25171 [log] getrlimit NOFILE cur=1024 max=4096
13:40:25-22/05 25171 [log] Z39/Solr:second 127.0.0.1:2 2 0.000000 Z3950 
initRequest - - 81 YAZ 5.21.1 45b3c27d3df0705d9e86f8af0651c359f5a31171
13:40:25-22/05 25171 [log] Z39/Solr:second request id=2 close=no
initRequest {
   protocolVersion BITSTRING(len=1) 111
   options BITSTRING(len=2) 11101001-1010001
   preferredMessageSize 67108864
   maximumRecordSize 67108864
   implementationId '81'
   implementationName 'YAZ'
   implementationVersion '5.21.1 45b3c27d3df0705d9e86f8af0651c359f5a31171'
}
13:40:25-22/05 25171 [log] Z39/Solr:second 127.0.0.1:2 2 0.000262 Init 
OK - ID:81 Name:YAZ Version:5.21.1 45b3c27d3df0705d9e86f8af0651c359f5a31171
13:40:25-22/05 25171 [log] Z39/Solr:second 127.0.0.1:2 2 0.000262 Z3950 
initResponse OK 81 Metaproxy/YAZ 1.11.9/5.21.1 
45b3c27d3df0705d9e86f8af0651c359f5a31171
13:40:25-22/05 25171 [log] Z39/Solr:second response id=2 close=no 
duration=0.000262
initResponse {
   protocolVersion BITSTRING(len=1) 111
   options BITSTRING(len=1) 11
   preferredMessageSize 67108864
   maximumRecordSize 67108864
   result TRUE
   implementationId '81'
   implementationName 'Metaproxy/YAZ'
   implementationVersion '1.11.9/5.21.1 
45b3c27d3df0705d9e86f8af0651c359f5a31171'
}

# -- Metaproxy Logfile (2) -----------------------------------
[root at sl49 metaproxy]# metaproxy  -c route-2.xml
13:48:47-22/05 25319 [log] metaproxy start 1.11.9 
87cb65a44b3f466d9eaeb95b725daa5d7f5f3e3e
13:48:47-22/05 25319 [log] YAZ 5.21.1 
45b3c27d3df0705d9e86f8af0651c359f5a31171
13:48:47-22/05 25319 [log] getrlimit NOFILE cur=1024 max=4096
13:48:47-22/05 25319 [log] getrlimit NOFILE cur=1024 max=4096
13:48:47-22/05 25319 [log] metaproxy stop




-- 
+ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
| Stefan Lohrum               | Zuse Institute Berlin (ZIB)     |
|                             | Takustrasse 7                   |
| Cooperative Library Network | D-14195 Berlin-Dahlem           |
| Berlin-Brandenburg (KOBV)   | Germany                         |
| - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - |
| Phone: +49 (30) 841 85-197  | Email: lohrum at zib.de            |
| Fax:   +49 (30) 841 85-269  | Web:   http://www.zib.de/lohrum |
+ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +



More information about the Yazlist mailing list