# This is a test configuration for "hash-preserve-affinity" parameter
global
	log		127.0.0.1 local0

defaults
	mode http
	timeout client 10s
	timeout server 10s
	timeout connect 10s

listen  vip1
	log		global
	option		httplog
	bind		:8001
	mode		http
	maxconn		100
	balance		url_param foo
	server		srv1 127.0.0.1:80
	server		srv2 127.0.0.1:80

listen  vip2
	log		global
	option		httplog
	bind		:8002
	mode		http
	maxconn		100
	balance		url_param foo check_post
	server		srv1 127.0.0.1:80
	server		srv2 127.0.0.1:80
	hash-preserve-affinity always

listen  vip3
	log		global
	option		httplog
	bind		:8003
	mode		http
	maxconn		100
	balance		url_param foo check_post
	server		srv1 127.0.0.1:80
	server		srv2 127.0.0.1:80
	hash-preserve-affinity maxconn

listen  vip4
	log		global
	option		httplog
	bind		:8004
	mode		http
	maxconn		100
	balance		url_param foo check_post
	server		srv1 127.0.0.1:80
	server		srv2 127.0.0.1:80
	hash-preserve-affinity maxqueue
