[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #9321 [Tor]: Load balance right when we have higher guard rotation periods
#9321: Load balance right when we have higher guard rotation periods
-------------------------+-------------------------------------------------
Reporter: arma | Owner:
Type: project | Status: new
Priority: normal | Milestone: Tor: 0.2.6.x-final
Component: Tor | Version:
Resolution: | Keywords: needs-proposal, tor-auth, tor-
Actual Points: | client, 026-triaged-1
Points: | Parent ID: #11480
-------------------------+-------------------------------------------------
Comment (by nickm):
Replying to [comment:14 asn]:
> Also, any ideas on the format of the file that the script should output?
> What would be the easiest format for little-t-tor to parse these days?
>
> I'm looking at `dirserv_read_measured_bandwidths()` but the file format
of the bw auths looks a bit arbitrary. It's pretty easy to parse but it's
not something that can be reused. Can I reuse a file parser of
little-t-tor, or should I write yet another file format?
>
> The information that needs to be transmitted could be something like
> this (maybe I'm forgetting some info, or adding redundant info):
>
> {{{
> <date and time>
> <number of consesuses parsed> <number of months considered>
>
> <guard fpr 1> <number of times seen in a consensus>
> <guard fpr 2> <number of times seen in a consensus>
> <guard fpr 3> <number of times seen in a consensus>
> <guard fpr 4> <number of times seen in a consensus>
> <guard fpr 5> <number of times seen in a consensus>
> ...
> }}}
Generally, a file full of "key value\n" lines are easiest to parse with
Tor right now. So let me suggest:
{{{
written-at <date and time>
n-inputs <number of consesuses parsed> <number of months considered>
guard-seen <guard fpr 1> <number of times seen in a consensus> ...
guard-seen <guard fpr 2> <number of times seen in a consensus> ...
guard-seen <guard fpr 3> <number of times seen in a consensus> ...
guard-seen <guard fpr 4> <number of times seen in a consensus> ...
guard-seen <guard fpr 5> <number of times seen in a consensus> ...
...
}}}
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/9321#comment:18>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs