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 4079A989A for ; Fri, 6 Apr 2012 00:19:32 +0000 (UTC) Received: (qmail 1439 invoked by uid 500); 6 Apr 2012 00:19:32 -0000 Delivered-To: apmail-trafficserver-users-archive@trafficserver.apache.org Received: (qmail 1336 invoked by uid 500); 6 Apr 2012 00:19:32 -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 1322 invoked by uid 99); 6 Apr 2012 00:19:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Apr 2012 00:19:31 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of TVaillancourt@ea.com designates 159.153.6.7 as permitted sender) Received: from [159.153.6.7] (HELO smtp-na3.ea.com) (159.153.6.7) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Apr 2012 00:19:26 +0000 Received: from NA-CASHT1.rws.ad.ea.com (na-casht1.rws.ad.ea.com [10.30.204.158]) by smtp-na3.ea.com (Switch-3.3.0/Switch-3.3.0) with ESMTP id q360J5I0002387; Thu, 5 Apr 2012 17:19:05 -0700 Received: from NA-MAIL-1-2.rws.ad.ea.com ([10.30.204.151]) by NA-CASHT1.rws.ad.ea.com ([10.30.204.158]) with mapi; Thu, 5 Apr 2012 17:19:05 -0700 From: "Vaillancourt, Tim" To: Leif Hedstrom , "users@trafficserver.apache.org" Date: Thu, 5 Apr 2012 17:19:05 -0700 Subject: RE: Multiple Trafficserver Instances on one system Thread-Topic: Multiple Trafficserver Instances on one system Thread-Index: Ac0SHjV7R5Olgl1TQkunQSHwD2XBvABafvNg Message-ID: <0D2FC643BEBA3C46A66F59441B45D9F12739B550EE@NA-MAIL-1-2.rws.ad.ea.com> References: <0D2FC643BEBA3C46A66F59441B45D9F12739DF5E89@NA-MAIL-1-2.rws.ad.ea.com> <4F7BC77E.5010302@apache.org> <4F7BD22A.2090909@apache.org> In-Reply-To: <4F7BD22A.2090909@apache.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Hey Leif/list, > I am e-mailing the list due to an issue (or PEBKAC) I am experiencing=20 > when running several instances of Trafficserver on one system, under=20 > custom directories. > > No PEBKAC, not even an ID-10T issue. I think we simply don't support=20 > what you are trying to do :-/. We used to have some environment=20 > variables dealing with this, but as far as I can tell, it's all=20 > eliminated with code like Good news you DO support what I am trying to do, and this WAS a PEBKAC :). I was setting the environment with my 'ts-defaults' script, but was not exp= orting the values. After adding 'export VALUE=3Dsomething' to the beginning= of each variable I override, everything magically worked as planned once I= cleaned up my mess of guesses to fix this. Unresolved issues bother the hell out of me, so in case you guys are the sa= me way I wanted you to know that my logic was broken and not your code :). For those interested, I was able to clean up my implementation once I got t= his working a lot. I removed the modifications I made to bin/trafficserver = ("added if test -e ; then . ; fi" for my custom-p= ath defaults file) and merged the environment variable setting I did in 'ts= -defaults' script into a single init script. Now the modified variables are= exported before bin/trafficserver is ran, who will use those values to sta= rt the 3 daemons: "#!/bin/bash set -e export TS_ROOT=3D/opt/instances/ts_uploadprx export TC_NAME=3Dtraffic_cop export TC_DAEMON=3D$TS_ROOT/bin/$TC_NAME export TC_DAEMON_ARGS=3D"" export TM_NAME=3Dtraffic_manager export TM_DAEMON=3D$TS_ROOT/bin/$TM_NAME export TM_DAEMON_ARGS=3D"" export TS_NAME=3Dtraffic_server export TS_DAEMON=3D$TS_ROOT/bin/$TS_NAME export TS_DAEMON_ARGS=3D"" export TC_PIDFILE=3D$TS_ROOT/logs/cop.lock export TM_PIDFILE=3D$TS_ROOT/logs/manager.lock export TS_PIDFILE=3D$TS_ROOT/logs/server.lock export PIDFILE_CHECK_RETRIES=3D30 export STDOUTLOG=3D$TS_ROOT/logs/$TS_NAME.stdout export STDERRLOG=3D$TS_ROOT/logs/$TS_NAME.stderr $TS_ROOT/bin/trafficserver $@" Using this, trafficserver spawns entirely out of my special instance dir wi= th no other modifications! I am sorry to waste the lists time on this now = non-issue and am glad to see that this use case is in fact 100% supported b= y trafficserver! Thanks everyone, and have a nice Easter weekend! We look forward to impleme= nting ATS in the future. Tim Vaillancourt tvaillancourt@ea.com Electronic Arts - www.ea.com