Re: Is there other methods or APIs to monitor qps?

2015-12-01 Thread Tony Finch
Mark Andrews  wrote:
>
> Curl speaks http/1.0.

The manual for the version I have says:

   -0/--http1.0
  (HTTP) Forces curl to issue its requests using HTTP 1.0 instead
  of using its internally preferred: HTTP 1.1.

Tony.
-- 
f.anthony.n.finch    http://dotat.at/
Forties, Cromarty, Forth: West 4 or 5, occasionally 6 at first in Forties,
backing south or southeast 6 to gale 8. Moderate or rough, occasionally very
rough in Forties. Showers then rain. Good, occasionally poor.
___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


Re: Is there other methods or APIs to monitor qps?

2015-11-30 Thread Mark Andrews

Curl speaks http/1.0.  We have fixed the server to better support http/1.0
clients.

4188.   [bug]   Support HTTP/1.0 client properly on the statistics
channel. [RT #40261]

Mark

In message , Tony Fin
ch writes:
> liumingxing  wrote:
> 
> > It means that the statistics channel should be opened?
> 
> Yes.
> 
> > Is there timeout mechanism? May curl query be not stucked?
> 
> The curl manual says:
> 
>--connect-timeout 
>   Maximum  time  in  seconds  that you allow the connection to th
> e
>   server to take.  This only limits  the  connection  phase,  onc
> e
>   curl  has  connected this option is of no more use. See also th
> e
>   -m/--max-time option.
> 
>-m/--max-time 
>   Maximum  time  in  seconds that you allow the whole operation t
> o
>   take.  This is useful for preventing your batch jobs from  hang
> -
>   ing  for  hours  due  to slow networks or links going down.  Se
> e
>   also the --connect-timeout option.
> 
> Other HTTP clients will have similar options.
> 
> Tony.
> -- 
> f.anthony.n.finch    http://dotat.at/
> Dover, Wight, Portland, Plymouth: Southwest 6 to gale 8, increasing severe
> gale 9 at times. Rough or very rough. Occasional rain. Good, occasionally
> poor.
> ___
> Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe
>  from this list
> 
> bind-users mailing list
> bind-users@lists.isc.org
> https://lists.isc.org/mailman/listinfo/bind-users
-- 
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742 INTERNET: ma...@isc.org
___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


Re: Re: Is there other methods or APIs to monitor qps?

2015-11-30 Thread liumingxing
Ok, I have gotten it. curl has timeout mechanism and we can use it.:)
 



Mingxing, Liu
CNNIC
 
 
From: Tony Finch
Date: 2015-11-30 19:07
To: liumingxing
CC: bind-users
Subject: Re: Re: Is there other methods or APIs to monitor qps?
liumingxing <liumingx...@cnnic.cn> wrote:
 
> It means that the statistics channel should be opened?
 
Yes.
 
> Is there timeout mechanism? May curl query be not stucked?
 
The curl manual says:
 
   --connect-timeout 
  Maximum  time  in  seconds  that you allow the connection to the
  server to take.  This only limits  the  connection  phase,  once
  curl  has  connected this option is of no more use. See also the
  -m/--max-time option.
 
   -m/--max-time 
  Maximum  time  in  seconds that you allow the whole operation to
  take.  This is useful for preventing your batch jobs from  hang-
  ing  for  hours  due  to slow networks or links going down.  See
  also the --connect-timeout option.
 
Other HTTP clients will have similar options.
 
Tony.
-- 
f.anthony.n.finch  <d...@dotat.at>  http://dotat.at/
Dover, Wight, Portland, Plymouth: Southwest 6 to gale 8, increasing severe
gale 9 at times. Rough or very rough. Occasional rain. Good, occasionally
poor.
___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Re: Re: Is there other methods or APIs to monitor qps?

2015-11-30 Thread Tony Finch
liumingxing  wrote:

> It means that the statistics channel should be opened?

Yes.

> Is there timeout mechanism? May curl query be not stucked?

The curl manual says:

   --connect-timeout 
  Maximum  time  in  seconds  that you allow the connection to the
  server to take.  This only limits  the  connection  phase,  once
  curl  has  connected this option is of no more use. See also the
  -m/--max-time option.

   -m/--max-time 
  Maximum  time  in  seconds that you allow the whole operation to
  take.  This is useful for preventing your batch jobs from  hang-
  ing  for  hours  due  to slow networks or links going down.  See
  also the --connect-timeout option.

Other HTTP clients will have similar options.

Tony.
-- 
f.anthony.n.finch    http://dotat.at/
Dover, Wight, Portland, Plymouth: Southwest 6 to gale 8, increasing severe
gale 9 at times. Rough or very rough. Occasional rain. Good, occasionally
poor.
___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


Re: Re: Is there other methods or APIs to monitor qps?

2015-11-29 Thread liumingxing
It means that the statistics channel should be opened? Is there timeout 
mechanism? May curl query be not stucked?



Mingxing, Liu
CNNIC
 
From: Tony Finch
Date: 2015-11-27 22:37
To: bind-users
Subject: Re: Is there other methods or APIs to monitor qps?
Ray Bellis <r...@isc.org> wrote:
> On 27/11/2015 13:02, Tony Finch wrote:
> > Use the statistics channel, e.g.
> >
> > curl --silent http://nameserver:853/json/v1/server | jq -r .opcodes.QUERY
>
> Note that this gives you the absolute total since startup - you need to
> take two measurements and divide by the time between them to convert
> that into something like QPS.
 
Indeed. Actually, I forgot I have a blog article about this:
http://fanf.livejournal.com/134571.html
 
Tony.
-- 
f.anthony.n.finch  <d...@dotat.at>  http://dotat.at/
Thames, Dover, Wight: Southwest veering northwest for a time, 5 to 7,
increasing gale 8 at times. Slight or moderate, becoming moderate or rough.
Rain for a time, showers later. Moderate or good.
___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list
 
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users
___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Re: Is there other methods or APIs to monitor qps?

2015-11-27 Thread Tony Finch
Use the statistics channel, e.g.

curl --silent http://nameserver:853/json/v1/server | jq -r .opcodes.QUERY

Tony.
-- 
f.anthony.n.finch    http://dotat.at/
Trafalgar: Northerly or northwesterly 5 to 7, decreasing 4 at times. Moderate
or rough. Rain at times. Moderate or good.
___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


Re: Is there other methods or APIs to monitor qps?

2015-11-27 Thread Tony Finch
Ray Bellis  wrote:
> On 27/11/2015 13:02, Tony Finch wrote:
> > Use the statistics channel, e.g.
> >
> > curl --silent http://nameserver:853/json/v1/server | jq -r .opcodes.QUERY
>
> Note that this gives you the absolute total since startup - you need to
> take two measurements and divide by the time between them to convert
> that into something like QPS.

Indeed. Actually, I forgot I have a blog article about this:
http://fanf.livejournal.com/134571.html

Tony.
-- 
f.anthony.n.finch    http://dotat.at/
Thames, Dover, Wight: Southwest veering northwest for a time, 5 to 7,
increasing gale 8 at times. Slight or moderate, becoming moderate or rough.
Rain for a time, showers later. Moderate or good.
___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


Re: Is there other methods or APIs to monitor qps?

2015-11-27 Thread Ray Bellis
On 27/11/2015 13:02, Tony Finch wrote:
> Use the statistics channel, e.g.
> 
> curl --silent http://nameserver:853/json/v1/server | jq -r .opcodes.QUERY

Note that this gives you the absolute total since startup - you need to
take two measurements and divide by the time between them to convert
that into something like QPS.

Ray

___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


Is there other methods or APIs to monitor qps?

2015-11-27 Thread liumingxing
Hi, all
 I want to monitor query rate of BIND. It is problematic to use rndc status 
because the command has no timeout. 
Is there other methods or APIs to monitor qps? 



Mingxing, Liu
CNNIC
___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users