trafficserver-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Peach <>
Subject Re: Unable to use Balancer plugin
Date Thu, 10 Mar 2016 16:22:45 GMT

> On Mar 9, 2016, at 11:44 AM, Velusamy, Gandhimathi <gvelusam@Central.UH.EDU> wrote:
> Hi,
> I started using Traffic server recently for my graduate research. I want to use balancer
plugin for my experiment.

That sounds great. A word of caution, the balancer is very simple, it might not be suitable
for your experiment :)

> I configured traffic server with configure enable-experimental plugin option.
> I could see, and files under /usr/local/libexec/trafficserver/
> I have set “proxy.config.plugin.plugin_dir” to the above folder.
> My remap.config contains:
> map http://px206.perk http://px206.perk \
> @pparam=--policy=roundrobin, url @pparam=http://px205.perk:80

The targets for the balancer plugin are hostnames or IP addreses not URLs. You should be able
to  verify what is happening in Traffic Server error logs or by using the "http_hdr" diagnostic
tags, but I'd bet it ends up trying to send the request to a host named "http".

> I tested with hash policy too. I am getting connection refused error as below:
> root@px207:~# wget http://px206.perk:80/
> --2016-03-09 13:35:43--  http://px206.perk/
> Resolving px206.perk (px206.perk)...
> Connecting to px206.perk (px206.perk)||:80... connected.
> HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers.
> Retrying.
> --2016-03-09 13:36:42--  (try: 2)  http://px206.perk/
> Connecting to px206.perk (px206.perk)||:80... failed: Connection refused.
> Resolving px206.perk (px206.perk)...
> Connecting to px206.perk (px206.perk)||:80... failed: Connection refused.
> root@px207:~#
> My client is px207.perk. Proxy is running from px206.perk and I want to load balance
between px205.perk and py205.perk.
> On both px205 and py205 apache2 is running. I am just trying to get index.html file.
> When I tested with reverse proxy configuration it worked for me for both origin servers.
> Am I missing something here. Kindly help me. 
> Thanks
> Gandhimathi

View raw message