[Yazlist] Yazproxy | PHP / YAZ

Richard MAHONEY r.mahoney at iconz.co.nz
Tue Sep 16 12:52:41 CEST 2008


Readers,

I've been having trouble with the performance of Zebra while under load
so I want to try running two instances and to load balance between
them.

Yazproxy is sitting in front of the Zebra instances receiving requests
from a PHP / YAZ search interface. Yazproxy's config.xml file contains:

...
   <target name="localhost" default="1">
    <url>localhost:9998</url>
    <url>localhost:9999</url>
...

Currently the PHP / YAZ search interface contains:

...
yaz_connect('localhost:9999/sch1', array('charset' => 'UTF-8', \
 'proxy' => 'localhost:9000', 'cookie' => 'ScholiaCookie', 'piggyback' => 'true'));
...

What I was wondering was if the `yaz_connect' function currently
supports -- or can be made to support -- load balancing. At present it
seems that the function can only take one destination string, in this
case `localhost:9999/zebradb'. Is this right, or can
`localhost:9998/zebradb' somehow also be incorporated? All suggestions
most welcome ...



Kind regards,

 Richard



-- 
Richard MAHONEY | internet: http://indica-et-buddhica.org/
Littledene      | telephone/telefax (man.): +64 3 312 1699
Bay Road        | cellular: +64 275 829 986
OXFORD, NZ      | email: r.mahoney at indica-et-buddhica.org
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Indica et Buddhica: Materials for Indology and Buddhology




More information about the Yazlist mailing list