Return-Path: X-Original-To: apmail-trafficserver-users-archive@www.apache.org Delivered-To: apmail-trafficserver-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 72E4019E01 for ; Thu, 10 Mar 2016 16:22:47 +0000 (UTC) Received: (qmail 81353 invoked by uid 500); 10 Mar 2016 16:22:47 -0000 Delivered-To: apmail-trafficserver-users-archive@trafficserver.apache.org Received: (qmail 81293 invoked by uid 500); 10 Mar 2016 16:22:47 -0000 Mailing-List: contact users-help@trafficserver.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@trafficserver.apache.org Delivered-To: mailing list users@trafficserver.apache.org Received: (qmail 81284 invoked by uid 99); 10 Mar 2016 16:22:47 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Mar 2016 16:22:47 +0000 Received: from [17.115.108.13] (unknown [17.115.108.13]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id E4BD41A04AC for ; Thu, 10 Mar 2016 16:22:46 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.1 \(3096.5\)) Subject: Re: Unable to use Balancer plugin From: James Peach In-Reply-To: <1E72FBF508057746831C74E0A885DAF8845BB11AB5@EXSERVER5.cougarnet.uh.edu> Date: Thu, 10 Mar 2016 08:22:45 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: <66C73321-1776-4575-875B-0E3B136A47E0@apache.org> References: <1E72FBF508057746831C74E0A885DAF8845BB11AB5@EXSERVER5.cougarnet.uh.edu> To: users@trafficserver.apache.org X-Mailer: Apple Mail (2.3096.5) > On Mar 9, 2016, at 11:44 AM, Velusamy, Gandhimathi = wrote: >=20 > 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 balance.so, hash.so and roundrobin.so files under = /usr/local/libexec/trafficserver/ folder. > I have set =E2=80=9Cproxy.config.plugin.plugin_dir=E2=80=9D to the = above folder. > My remap.config contains: > map http://px206.perk http://px206.perk \ > @plugin=3Dbalancer.so @pparam=3D--policy=3Droundrobin, url = @pparam=3Dhttp://px205.perk:80 @pparam=3Dhttp://py205.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: > =20 > root@px207:~# wget http://px206.perk:80/ > --2016-03-09 13:35:43-- http://px206.perk/ > Resolving px206.perk (px206.perk)... 10.0.101.6 > Connecting to px206.perk (px206.perk)|10.0.101.6|: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)|10.0.101.6|:80... failed: = Connection refused. > Resolving px206.perk (px206.perk)... 10.0.101.6 > Connecting to px206.perk (px206.perk)|10.0.101.6|:80... failed: = Connection refused. > root@px207:~# > =20 > 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. > =20 > When I tested with reverse proxy configuration it worked for me for = both origin servers. > Am I missing something here. Kindly help me.=20 > =20 > Thanks > Gandhimathi