Documentation error for building on Mac OS X

2011-07-07 Thread Alan D. Cabrera
https://cwiki.apache.org/confluence/display/TS/Mac+OS+X Seems to be wrong when building from the release directory. I get all sorts of errors. The server does build correctly of I configure and build from the source directory. Is this to be expected? Regards, Alan

Trying to get trafficserver running on mac os x

2011-07-14 Thread Alan D. Cabrera
I noticed that the documentation seems to be 2x. But if I try to compiled 2.0.1 I get: g++ -DPACKAGE_NAME=\"Apache\ Traffic\ Server\" -DPACKAGE_TARNAME=\"trafficserver\" -DPACKAGE_VERSION=\"2.0.1\" -DPACKAGE_STRING=\"Apache\ Traffic\ Server\ 2.0.1\" -DPACKAGE_BUGREPORT=\"dev@trafficserver.apa

Re: Trying to get trafficserver running on mac os x

2011-07-14 Thread Alan D. Cabrera
Ok, because the docs refer to ./start_traffic_server and I cannot find that command in the 3.0.0 distribution. Regards, Alan On Jul 14, 2011, at 10:34 AM, Leif Hedstrom wrote: > On 07/14/2011 11:28 AM, Alan D. Cabrera wrote: >> I noticed that the documentation seems to be 2x. But if

Re: Trying to get trafficserver running on mac os x

2011-07-14 Thread Alan D. Cabrera
On Jul 14, 2011, at 10:36 AM, Leif Hedstrom wrote: > On 07/14/2011 11:35 AM, Alan D. Cabrera wrote: >> Ok, because the docs refer to ./start_traffic_server and I cannot find that >> command in the 3.0.0 distribution. > > Yeah, those docs are wrong. Use trafficserver (no

Re: Trying to get trafficserver running on mac os x

2011-07-14 Thread Alan D. Cabrera
On Jul 14, 2011, at 10:40 AM, Leif Hedstrom wrote: > On 07/14/2011 11:39 AM, Alan D. Cabrera wrote: >> On Jul 14, 2011, at 10:36 AM, Leif Hedstrom wrote: >> >>> On 07/14/2011 11:35 AM, Alan D. Cabrera wrote: >>>> Ok, because the docs refer to ./start_traffic

Error when starting 3.0.0 on Mac OS X

2011-07-15 Thread Alan D. Cabrera
I get this error when I attempt to start a newly minted trafficserver: (linkedin)[acabrera-mn:trafficserver 557]$ cat /opt/trafficserver/var/log/trafficserver/traffic.out [E. Mgmt] log ==> [TrafficManager] using root directory '/opt/trafficserver' [Jul 15 11:56:46.220] {140735080934560} STATUS: o

traffic_logstats

2011-07-16 Thread Alan D. Cabrera
I'm trying to get statistics from my traffic server much in the same was as was shown in http://www.ogre.com/node/357 But when I run [daruma:trafficserver 592]$ ./bin/traffic_logstats -h Usage: traffic_logstats [-l logfile] [-o origin[,...]] [-O originfile] [-m minhits] [-inshv] switch

Re: traffic_logstats

2011-07-16 Thread Alan D. Cabrera
On Jul 16, 2011, at 7:34 AM, Igor Galić wrote: > > > - Original Message - >> I'm trying to get statistics from my traffic server much in the same >> was as was shown in >> >> http://www.ogre.com/node/357 >> >> But when I run >> >> [daruma:trafficserver 592]$ ./bin/traffic_logstats -

Re: traffic_logstats

2011-07-16 Thread Alan D . Cabrera
On Jul 16, 2011, at 8:57 AM, Igor Galić wrote: > > > - Original Message - >> >> On Jul 16, 2011, at 7:34 AM, Igor Galić wrote: >> >>> >>> >>> - Original Message - I'm trying to get statistics from my traffic server much in the same was as was shown in >>

Re: Should we make Posix Capabilities "required" ?

2011-07-17 Thread Alan D. Cabrera
On Jul 16, 2011, at 10:11 AM, Leif Hedstrom wrote: > On platforms that provides this feature, should we make it mandatory for v3.2 > ("trunk")? I think it'd simplify things, and avoid bug reports / problems > related to it. Granted, we still have to clean up our code mess here (with > duplicate

Re: traffic_logstats

2011-07-17 Thread Alan D. Cabrera
Thanks. https://issues.apache.org/jira/browse/TS-882 Regards, Alan On Jul 17, 2011, at 2:57 PM, Leif Hedstrom wrote: > Sorry for the late reply, but I've reproduced this on my OSX machine. Yeah, > it's crashing (both logstats and logcat crashes). :/ Unless you already did > so, you should fi

Re: Error when starting 3.0.0 on Mac OS X

2011-07-18 Thread Alan D. Cabrera
ilding interface, all binary > release is adviced to change the default config to loopback interface, > in linux lo, in bsd mac solaris, lo0 > > this problem have been fixed in the trunk, please try the svn version > and feed back. > > thanks > > 在 2011-07-15五的 11:59

Re: traffic_logstats

2011-07-18 Thread Alan D. Cabrera
On Jul 18, 2011, at 4:50 PM, Leif Hedstrom wrote: > On 07/17/2011 06:43 PM, Alan D. Cabrera wrote: >> Thanks. >> >> https://issues.apache.org/jira/browse/TS-882 > > Fixed on trunk, I *think*. Can you please verify / test? Fixed. Thanks! Regards, Alan

Unable to stop traffic server

2011-07-19 Thread Alan D. Cabrera
trunk mac os x (linkedin)[acabrera-mn:trafficserver 541]$ sudo ./bin/traffic_server stop [TrafficServer] using root directory '/opt/trafficserver' WARNING: Can't acquire lockfile '/opt/trafficserver/var/trafficserver/server.lock' (Lock file held by process ID 86188) (linkedin)[acabrera-mn:traffi

Re: Unable to stop traffic server

2011-07-19 Thread Alan D. Cabrera
Thanks! On Jul 19, 2011, at 7:34 AM, Leif Hedstrom wrote: > You have to use the trafficserver script to stop/start the servers. Notice > there is no _ in this scripts name. > > Cheers, > > Leif > > On Jul 19, 2011, at 6:50 AM, "Alan D. Cabrera&quo

Never seem to get a cache hit

2011-07-19 Thread Alan D. Cabrera
I reran my program twice which gets the same set of files but I'm getting 100% miss rate. I have 1G cache in memory and 10G disk. I'm downloading about 15M of files. What should I be looking at to debug this? Regards, Alan

Re: Never seem to get a cache hit

2011-07-19 Thread Alan D. Cabrera
On Jul 19, 2011, at 12:06 PM, Igor Galić wrote: > > > - Original Message - >> I reran my program twice which gets the same set of files but I'm >> getting 100% miss rate. I have 1G cache in memory and 10G disk. >> I'm downloading about 15M of files. >> >> What should I be looking at t

Re: Never seem to get a cache hit

2011-07-19 Thread Alan D. Cabrera
hitting it with a single request and > then > repeating it again after a pause as it will print out a trace for each > request. > > john > > On Tue, Jul 19, 2011 at 11:02 AM, Alan D. Cabrera wrote: > >> I reran my program twice which gets the same set of files bu

Re: Never seem to get a cache hit

2011-07-20 Thread Alan D. Cabrera
19, 2011, at 3:57 PM, Leif Hedstrom wrote: > If I read that right, that response is not cacheable with default ATS > configs. Look for required headers config in records.config, or ideally > modify the origin to send cache-control headers. > > -- leif > > On Jul 19, 2011

Re: Never seem to get a cache hit

2011-07-21 Thread Alan D. Cabrera
On Jul 21, 2011, at 10:00 AM, Leif Hedstrom wrote: > On 07/20/2011 09:44 AM, Alan D. Cabrera wrote: >> I have no control over the origin. >> >> According to the documentation it says that headers are ignored by default >> and items are cached. The records.config

Current trunk fails to build

2011-07-22 Thread Alan D . Cabrera
Mac OS X 10.7 g++ -DHAVE_CONFIG_H -I. -I../../lib/ts -I../../iocore/eventsystem -I../../iocore/net -I../../iocore/aio -I../../iocore/hostdb -I../../iocore/cache -I../../iocore/cluster -I../../iocore/utils -I../../iocore/dns -I../../lib -I../../lib/records -I../../proxy -I../../proxy/hdrs -I.

Scheduling a recurrent task

2013-12-16 Thread Alan D. Cabrera
I'm writing a plugin that performs a recurrent task, i.e. watches a file system for changes. What's the best way to do this in a ATS plugin? Regards, Alan

Re: Scheduling a recurrent task

2013-12-17 Thread Alan D. Cabrera
On Dec 16, 2013, at 7:47 AM, Leif Hedstrom wrote: > > >> On Dec 16, 2013, at 8:33 AM, "Alan D. Cabrera" wrote: >> >> I'm writing a plugin that performs a recurrent task, i.e. watches a file >> system for changes. What's the best way to d

Re: Scheduling a recurrent task

2013-12-17 Thread Alan D. Cabrera
On Dec 17, 2013, at 9:38 AM, James Peach wrote: > On Dec 17, 2013, at 9:32 AM, Alan D. Cabrera wrote: > >> >> On Dec 16, 2013, at 7:47 AM, Leif Hedstrom wrote: >> >>> >>> >>>> On Dec 16, 2013, at 8:33 AM, "Alan D. Cabrera&quo

TSPluginInit() only being called once

2013-12-29 Thread Alan D. Cabrera
Can I count on TSPluginInit() being called only once in the lifetime of a plugin? Regards, Alan

TDD/Unit testing ATS plugins

2013-12-31 Thread Alan D. Cabrera
I'm looking for an example of an ATS plugin that has extensive unit tests. I'm having problems linking my Boost unit tests against the plugin library for obvious reasons, it's a module not a shared library. I tried setting up an internal static library that the tests would link against but can'

TDD/Unit testing ATS plugins

2013-12-31 Thread Alan D. Cabrera
I'm looking for an example of an ATS plugin that has extensive unit tests. I'm having problems linking my Boost unit tests against the plugin library, for obvious reasons, it's a module not a shared library. I tried setting up an internal static library that the tests would link against but can

Re: TDD/Unit testing ATS plugins

2013-12-31 Thread Alan D. Cabrera
On Dec 31, 2013, at 10:11 AM, Leif Hedstrom wrote: > > On Dec 31, 2013, at 9:44 AM, Alan D. Cabrera wrote: > >> I'm looking for an example of an ATS plugin that has extensive unit tests. >> >> I'm having problems linking my Boost unit tests against the p

Re: TDD/Unit testing ATS plugins

2013-12-31 Thread Alan D. Cabrera
On Dec 31, 2013, at 1:53 PM, James Peach wrote: > On Dec 31, 2013, at 8:44 AM, Alan D. Cabrera wrote: > >> I'm looking for an example of an ATS plugin that has extensive unit tests. > > There are none. > >> I'm having problems linking my Boost unit tes

Re: TDD/Unit testing ATS plugins

2014-01-03 Thread Alan D. Cabrera
On Jan 2, 2014, at 9:04 AM, James Peach wrote: > On Dec 31, 2013, at 2:44 PM, Alan D. Cabrera wrote: > >> >> On Dec 31, 2013, at 1:53 PM, James Peach wrote: >> >>> On Dec 31, 2013, at 8:44 AM, Alan D. Cabrera wrote: >>> >>>> I'm