在HAProxy我试图跟踪连接到一个特定的页面与随机键值。 我使用的configuration是:
stick-table type string size 200 store gpc0 acl test_page url_reg -i test.php tcp-request inspect-delay 30s tcp-request content track-sc1 rand if test_page
实际上将条目添加到粘贴表中:
# table: varnish_cluster-01, type: string, size:200, used:10 0x2f05d54: key=1191905894 use=0 exp=0 gpc0=0 0x2ec4524: key=1588367676 use=0 exp=0 gpc0=0 0x34e3ab4: key=1768543047 use=0 exp=0 gpc0=0 0x3b3cd94: key=1938692325 use=0 exp=0 gpc0=0 0x380bcf4: key=2016928663 use=0 exp=0 gpc0=0 0x39535e4: key=2095442698 use=0 exp=0 gpc0=0 0x3cb3824: key=396763764 use=0 exp=0 gpc0=0 0x39d6644: key=500760259 use=0 exp=0 gpc0=0 0x3994e14: key=945137186 use=0 exp=0 gpc0=0 0x34a2284: key=995489922 use=0 exp=0 gpc0=0
但是我从后端得到一个空的回应。
任何想法为什么?
我试图达到我在这里描述的: HAProxy / Varnish:redirect一定比例的stream量