Hello Andrew,

My goal was to check every gstream event generate on the
file XrdPfc/XrdPfc.cc by:

644 int len = snprintf(buf, 4096, "{\"event\":\"file_close\","
645
"\"lfn\":\"%s\",\"size\":%lld,\"blk_size\":%d,\"n_blks\":%d,\"n_blks_done\":%d,"
646
"\"access_cnt\":%lu,\"attach_t\":%lld,\"detach_t\":%lld,\"remotes\":%s,"
647
"\"b_hit\":%lld,\"b_miss\":%lld,\"b_bypass\":%lld}",
648 f->GetLocalPath().c_str(),
f->GetFileSize(), f->GetBlockSize(),
649 f->GetNBlocks(),
f->GetNDownloadedBlocks(),
650 (unsigned long) f->GetAccessCnt(),
(long long) as->AttachTime, (long long) as->DetachTime,
651 f->GetRemoteLocations().c_str(),
652 as->BytesHit, as->BytesMissed,
as->BytesBypassed
654 setvbuf(stdout, NULL, _IONBF, 0);
655 bool suc = false;
656 ct++;
657
658 cout << "GSTREAM" << ct << endl;

And the test was to request a file using xrdcopy, receive the event (json)
on the collector (there is another counter here), send it to the rabbitmq,
and, read it from rabbitmq (count again).



*--Fábio Andrijauskas*


On Mon, Oct 4, 2021 at 6:00 PM Andrew Hanushevsky ***@***.***>
wrote:

> The counter here is only measuring pfc records that were inserted into the
> gstream. There are many other records that can be generated and the counter
> does not account for them. I'm not quite sure how you count "requests" vs
> the "ct" counter but neeless to say the number of UDP packets actually sent
> may be larger or smaller that what "ct" counts.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/xrootd/xrootd/issues/1525#issuecomment-933972775>, or
> unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ACEEH7ZBQFTCIW6RGKIQMFDUFJEZ3ANCNFSM5FKQTC3A>
> .
> Triage notifications on the go with GitHub Mobile for iOS
> <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
> or Android
> <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
>
>


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/xrootd/xrootd/issues/1525#issuecomment-933977316", "url": "https://github.com/xrootd/xrootd/issues/1525#issuecomment-933977316", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1