From e491ea665dc7ecea96e46cb242e633637f7b68a7 Mon Sep 17 00:00:00 2001 From: Jakub Skoczen Date: Tue, 26 Jan 2010 15:02:24 +0100 Subject: [PATCH] Add load_balancing config --- perf/load_balancing/pz2-lb.conf | 43 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 perf/load_balancing/pz2-lb.conf diff --git a/perf/load_balancing/pz2-lb.conf b/perf/load_balancing/pz2-lb.conf new file mode 100644 index 0000000..a0d7524 --- /dev/null +++ b/perf/load_balancing/pz2-lb.conf @@ -0,0 +1,43 @@ +# Pazpar2 load-balancing example using mod_proxy_load_balancer +# ============================================================================== +# This example uses pazpar2's serverIDs as the load-balancing routes +# to keep pazpar2 sessions sticky. +# Pazpar2 serverID can be set in the pazpar2's server config file (server.xml) +# by placing an ID attribute on the 'server' element: +# .. + + ServerName satay.index + ServerAlias satay + + LogLevel debug + CustomLog /var/log/apache2/pz2-lb-access.log combined + ErrorLog /var/log/apache2/pz2-lb-error.log + + + AddDefaultCharset off + Order deny,allow + Allow from all + + ProxyVia Off + + # 'route' has to match the configured pazpar2 server ID + + BalancerMember http://localhost:8004 route=metasearch1 + BalancerMember http://localhost:8005 route=metasearch2 + BalancerMember http://localhost:8006 route=metasearch3 + BalancerMember http://localhost:8007 route=metasearch4 + + + # route is resent in the 'session' param which has the form: + # 'sessid.serverid', understandable by the mod_proxy_load_balancer + # this is not going to work if the client tampers with the 'session' param + ProxyPass /pazpar2/search.pz2 balancer://pz2cluster lbmethod=byrequests stickysession=session nofailover=On + + # load balancer manager & statistic - for developing and testing only + + SetHandler balancer-manager + Order Deny,Allow + Deny from all + + + -- 1.7.10.4