Re: Requests per second

Sviatoslav Feshchenko <[email protected]> Mon, 11 Aug 2025 15:28:04 +0000
Newsgroups gmane.comp.time.chrony.user
Message-ID <ZmMZ5o1e2sjhMan2AMckjJdElTNyybhdRS9RrEUaAgBIIMXUTbVSPmBVcX5xW4zzN74rzrmu-o1K-tj8ic2MFlKqc7zA063hfUPidlNQycU=@proton.me>
Thank you for the info!

On Monday, August 11th, 2025 at 6:18 AM, Miroslav Lichvar <mlichvar@redhat.=
com> wrote:

> On Sun, Aug 10, 2025 at 12:45:01AM +0000, Sviatoslav Feshchenko wrote:
>=20
> > My server, running chrony 4.3, is part of the NTP Pool Project. Is ther=
e a way to determine how many requests per second it is receiving or respon=
ding to on average?
>=20
>=20
> By observing the difference in values reported by chronyc serverstats
> over the interval you want the average apply to. For example, this
> shell script would print averages over one-minute intervals:
>=20
> while chronyc -c serverstats; do sleep 60; done | \
> awk -F , '{if (l>0) print ($1-l)/60; l=3D$1}'
>=20
> > It would seem logical to have this statistic displayed as part of "serv=
erstats" command to chronyc. Is that something that can be implemented easi=
ly?
>=20
>=20
> No, not easily. If the reported averages should be accurate, chronyd
> would need to save the counters in a queue.
>=20
> This is better done externally by tools specialized in processing time
> series data like rrdtool.
>=20
> --
> Miroslav Lichvar
>=20
>=20
> --
> To unsubscribe email chrony-users-request-kWFZVVI9zxvPqho9SqqRMmD2FQJk+8+b@public.gmane.org
> with "unsubscribe" in the subject.
> For help email chrony-users-request-kWFZVVI9zxvPqho9SqqRMmD2FQJk+8+b@public.gmane.org
> with "help" in the subject.
> Trouble? Email [email protected]

-- 
To unsubscribe email chrony-users-request-kWFZVVI9zxvPqho9SqqRMmD2FQJk+8+b@public.gmane.org 
with "unsubscribe" in the subject.
For help email chrony-users-request-kWFZVVI9zxvPqho9SqqRMmD2FQJk+8+b@public.gmane.org 
with "help" in the subject.
Trouble?  Email [email protected]