Performance implications of using dynamic maps

2014-11-29 Thread Sachin Shetty
Hi,

In our architecture, we have thousands of host names resolving to a single
haproxy, we dynamically decide a sticky backend based on our own custom
sharding. To determine the shard info, we let the request flow in to a
default apache proxy  that processes  the requests and also responds with
the shard info. To be able to serve the consequent requests directly
bypassing the apache, we want to store the shard info received in the first
request in a map and use it for subsequent request

1. Store the shard info from apache
backend apache_l1
mode http
http-response set-map(/opt/haproxy/current/conf/proxy.map)
%[res.hdr(X-Request-Host)]  %[res.hdr(X-Backend-Id)]
server apache_l1 IP:80

2. Use the backend directly for subsequent requests:
acl is_a_v-1 hdr(host),map(/opt/haproxy/current/conf/proxy.map) a_v-1
use_backend l2_haproxy if is_a_v-1

I have tested this config and it works well, but I am not sure about the
performance. For every request sent to Apache, we will be adding a key,
value to the map and we will be looking up the key value for every requests
that is coming in to haproxy ­ is that ok considering that this is very high
performance stack? The haproxy servers are pretty powerful and dedicated to
just doing proxy.

Thanks
Sachin




http-keep-alive with SSL backend

2014-11-29 Thread Sachin Shetty
Hi,

We have SSL backends which are remote, so we want to use http-keep-alive to
pool connections to the the SSL backends, however it does not seem to be
working:

backend qa
  option http-keep-alive
  timeout http-keep-alive 30s
  server qa IP:443 maxconn 100 ssl verify none

I am monitoring connections to backend using netstat and I see the
connection to the backend immediately drops as soon as my front end request
finishes, any suggestions? Is it because of SSL backend?

Thanks
Sachin






WEEK END MIX Les meilleures marques aux meilleurs prix

2014-11-29 Thread 24 KRONOS
 
Version en ligne
 

Ajouter nous à votre carnet d’adresses

LA KOURSE AUX BONS PLANS


 
Vente du Dimanche 30 Novembre
Les marques aux 
meilleures prix !
 
Jusqu'à -60%
 



à partir de 8,40€Jusqu'à -60%Durée : 48H


BIENTÔT

  Ouverture
Lundi 01/12
Chaussettes
sports d'hiver


à partir de 5,94€-40%Durée : 48H


  
ENTREPRISE FRANCAISESATISFAIT OU REMBOURSÉPAIEMENT 100% SECUREPAIEMENT
PAYPALSUIVEZ-NOUS
SUR FACEBOOK



Veuillez me retirer de votre liste de diffusion