I had the need to set a custom HTTP request header in haproxy. For versions up to 1.4.x, the way to do this is :
reqadd X-Custom-Header:\ some_string
However, some_string is just a static string, and I could see no way of interpolating a variable in the string. Googling around, this is possible in haproxy 1.5.x with this method:
http-request set-header X-Custom-Header %[dst_port]
where dst_port is the variable we want to interpolate and %[variable] is the syntax for interpolation.
Other examples of variables available for you in haproxy.cfg are in Section 7.3 "Fetching samples" in the haproxy 1.5 configuration manual.
Thursday, December 12, 2013
If you run your infrastructure in AWS, then you can use CloudWatch Logs and AWS ElasticSearch + Kibana for log aggregation/searching/visuali...
Here's a good interview question for a tester: how do you define performance/load/stress testing? Many times people use these terms inte...
Gatling is a modern load testing tool written in Scala. As part of the Jenkins setup I am in charge of , I wanted to run load tests using Ga...
I first saw nsupdate mentioned on the devops-toolchain mailing list as a tool for dynamically updating DNS zone files from the command line....