You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@trafficserver.apache.org by "Petzel, David" <Da...@disney.com> on 2011/11/21 17:25:47 UTC

A Couple of noob questions

Am a *REALLY* new user to ATS and having a few issues I believe or probably really noob questions, but I'm so far stumped. I'm running 3.0.1 on CENTOS 5.7. I've managed to get traffic_server started and a simple remap entry created and it appears to work. However I wanted to look more into stats and hit ratios and stuff. From the admin guide I tried "traffic_line -r proxy.node.http.cache_hit_ratio" however that produces:

traffic_line: Variable Not Found

Also from the admin guide I was trying to get traffic_shell to work, however I get the following error:
TSInit 5: Failed to initialize MgmtAPI in /usr/local/var/trafficserver


At the moment I'm running all commands as root as this is just a VM I setup to get a feel for ATS

Thanks

RE: A Couple of noob questions

Posted by "Petzel, David" <Da...@disney.com>.
Traffic_server is running, I don't see any mention of the others:

[root@localhost trafficserver]# ps aux | grep traffic

nobody    4249  0.8  4.8 169228 49400 tty1     Sl+  13:13   0:00 traffic_server

root      4277  0.0  0.0  61224   748 pts/0    R+   13:14   0:00 grep traffic



Process Manager Section of the records.config

CONFIG proxy.config.admin.autoconf_port INT 8083

CONFIG proxy.config.process_manager.mgmt_port INT 8084



Traffic_server appears to the whats listening on 8084

[root@localhost trafficserver]# netstat -anp | grep 808

tcp        0      0 0.0.0.0:8080                0.0.0.0:*                   LISTEN      4249/traffic_server

tcp        0      0 127.0.0.1:8084              0.0.0.0:*                   LISTEN      4249/traffic_server





-----Original Message-----
From: Alan M. Carroll [mailto:amc@network-geographics.com]
Sent: Monday, November 21, 2011 12:57 PM
To: Petzel, David
Subject: Re: A Couple of noob questions



Double check that ATS is really running using ps. There should be three processes, traffic_cop, traffic_manager, and traffic_server. Also, check records.config for proxy.config.process_manager.mgmt_port and verify that there isn't anything already on that port.





Monday, November 21, 2011, 11:14:12 AM, you wrote:



> Using that variable seems to have the same result. I think I must have something messed up. I was trying a few more of the traffic_line commands and they all error (except version and help). Here are some samples:



> [root@localhost trafficserver]# traffic_line -r proxy.node.hostname

> traffic_line: Variable Not Found



> [root@localhost trafficserver]# traffic_line -x

> error: the requested command failed



> [root@localhost trafficserver]# traffic_line -c

> error: the requested command failed



> [root@localhost trafficserver]# traffic_line -V Apache Traffic Server

> - traffic_line - 3.0.1 - (build # 101821 on Nov 18 2011 at 21:35:51)



RE: A Couple of noob questions

Posted by "Petzel, David" <Da...@disney.com>.
OK thanks to your feedback, I think I see where I went wrong. I was doing traffic_server start instead of trafficserver start (no underscore). After re-reading the INSTALL txt file I realized my mistake. Variables are now found, and traffic_shell is loaded.

Thanks again.

From: Petzel, David
Sent: Monday, November 21, 2011 1:20 PM
To: Petzel, David
Subject: RE: A Couple of noob questions


Traffic_server is running, I don't see any mention of the others:

[root@localhost trafficserver]# ps aux | grep traffic

nobody    4249  0.8  4.8 169228 49400 tty1     Sl+  13:13   0:00 traffic_server

root      4277  0.0  0.0  61224   748 pts/0    R+   13:14   0:00 grep traffic



Process Manager Section of the records.config

CONFIG proxy.config.admin.autoconf_port INT 8083

CONFIG proxy.config.process_manager.mgmt_port INT 8084



Traffic_server appears to the whats listening on 8084

[root@localhost trafficserver]# netstat -anp | grep 808

tcp        0      0 0.0.0.0:8080                0.0.0.0:*                   LISTEN      4249/traffic_server

tcp        0      0 127.0.0.1:8084              0.0.0.0:*                   LISTEN      4249/traffic_server





-----Original Message-----
From: Alan M. Carroll [mailto:amc@network-geographics.com]
Sent: Monday, November 21, 2011 12:57 PM
To: Petzel, David
Subject: Re: A Couple of noob questions



Double check that ATS is really running using ps. There should be three processes, traffic_cop, traffic_manager, and traffic_server. Also, check records.config for proxy.config.process_manager.mgmt_port and verify that there isn't anything already on that port.





Monday, November 21, 2011, 11:14:12 AM, you wrote:



> Using that variable seems to have the same result. I think I must have something messed up. I was trying a few more of the traffic_line commands and they all error (except version and help). Here are some samples:



> [root@localhost trafficserver]# traffic_line -r proxy.node.hostname

> traffic_line: Variable Not Found



> [root@localhost trafficserver]# traffic_line -x

> error: the requested command failed



> [root@localhost trafficserver]# traffic_line -c

> error: the requested command failed



> [root@localhost trafficserver]# traffic_line -V Apache Traffic Server

> - traffic_line - 3.0.1 - (build # 101821 on Nov 18 2011 at 21:35:51)



Re: A Couple of noob questions

Posted by "Alan M. Carroll" <am...@network-geographics.com>.
Double check that ATS is really running using ps. There should be three processes, traffic_cop, traffic_manager, and traffic_server. Also, check records.config for
proxy.config.process_manager.mgmt_port and verify that there isn't anything already on that port.


Monday, November 21, 2011, 11:14:12 AM, you wrote:

> Using that variable seems to have the same result. I think I must have something messed up. I was trying a few more of the traffic_line commands and they all error (except version and help). Here are some samples:

> [root@localhost trafficserver]# traffic_line -r proxy.node.hostname
> traffic_line: Variable Not Found

> [root@localhost trafficserver]# traffic_line -x
> error: the requested command failed

> [root@localhost trafficserver]# traffic_line -c
> error: the requested command failed

> [root@localhost trafficserver]# traffic_line -V
> Apache Traffic Server - traffic_line - 3.0.1 - (build # 101821 on Nov 18 2011 at 21:35:51)


RE: A Couple of noob questions

Posted by "Petzel, David" <Da...@disney.com>.
Using that variable seems to have the same result. I think I must have something messed up. I was trying a few more of the traffic_line commands and they all error (except version and help). Here are some samples:

[root@localhost trafficserver]# traffic_line -r proxy.node.hostname
traffic_line: Variable Not Found

[root@localhost trafficserver]# traffic_line -x
error: the requested command failed

[root@localhost trafficserver]# traffic_line -c
error: the requested command failed

[root@localhost trafficserver]# traffic_line -V
Apache Traffic Server - traffic_line - 3.0.1 - (build # 101821 on Nov 18 2011 at 21:35:51)




-----Original Message-----
From: Eric Balsa [mailto:ericb@apache.org] 
Sent: Monday, November 21, 2011 11:33 AM
To: users@trafficserver.apache.org
Subject: Re: A Couple of noob questions

I believe this was changed in the recent past to "proxy.node.cache_hit_ratio" to remove the inferred dependance on anything 'http'.

--Eric

On Mon, Nov 21, 2011 at 9:25 AM, Petzel, David <Da...@disney.com> wrote:
>
>
> Am a *REALLY* new user to ATS and having a few issues I believe or 
> probably really noob questions, but I'm so far stumped. I'm running 
> 3.0.1 on CENTOS 5.7. I've managed to get traffic_server started and a 
> simple remap entry created and it appears to work. However I wanted to 
> look more into stats and hit ratios and stuff. From the admin guide I 
> tried "traffic_line -r proxy.node.http.cache_hit_ratio" however that produces:
>
>
>
> traffic_line: Variable Not Found
>
>
>
> Also from the admin guide I was trying to get traffic_shell to work, 
> however I get the following error:
>
> TSInit 5: Failed to initialize MgmtAPI in /usr/local/var/trafficserver
>
>
>
>
>
> At the moment I'm running all commands as root as this is just a VM I 
> setup to get a feel for ATS
>
>
>
> Thanks

Re: A Couple of noob questions

Posted by Eric Balsa <er...@apache.org>.
I believe this was changed in the recent past to
"proxy.node.cache_hit_ratio" to remove the inferred dependance on
anything 'http'.

--Eric

On Mon, Nov 21, 2011 at 9:25 AM, Petzel, David <Da...@disney.com> wrote:
>
>
> Am a *REALLY* new user to ATS and having a few issues I believe or probably
> really noob questions, but I’m so far stumped. I’m running 3.0.1 on CENTOS
> 5.7. I’ve managed to get traffic_server started and a simple remap entry
> created and it appears to work. However I wanted to look more into stats and
> hit ratios and stuff. From the admin guide I tried “traffic_line -r
> proxy.node.http.cache_hit_ratio” however that produces:
>
>
>
> traffic_line: Variable Not Found
>
>
>
> Also from the admin guide I was trying to get traffic_shell to work, however
> I get the following error:
>
> TSInit 5: Failed to initialize MgmtAPI in /usr/local/var/trafficserver
>
>
>
>
>
> At the moment I’m running all commands as root as this is just a VM I setup
> to get a feel for ATS
>
>
>
> Thanks