Re: [tor-dev] Guardiness: Yet another external dirauth script

2014-10-09 Thread George Kadianakis
George Kadianakis writes: > George Kadianakis writes: > >> ==Guardiness: Yet another external dirauth script== >> >> >> > > FWIW, a weasel suggested to me a potentially better solution than the > iffy summary files. > > He suggested parsing consensuses and putting them in an sqlite3 > database.

Re: [tor-dev] Guardiness: Yet another external dirauth script

2014-09-22 Thread George Kadianakis
George Kadianakis writes: > ==Guardiness: Yet another external dirauth script== > > Introduction > > One well-known problem with Tor relays, is that Guards will suffer a > big loss of traffic as soon as they get the Guard flag. This happens > because clients pick guards every 2-3 months,

Re: [tor-dev] Guardiness: Yet another external dirauth script

2014-09-17 Thread Damian Johnson
> FWIW, turning off validation helps a bit but not too much. For > example, my laptop parsing 24 consensuses with validation takes 25 > seconds, and if we disable validation it takes 22 seconds. > > This means that to reach the rate of 120~ consensuses a second with > parse_file(), we need to make

Re: [tor-dev] Guardiness: Yet another external dirauth script

2014-09-17 Thread Damian Johnson
>> This should also be possible with the guardiness stuff, as long as you >> can arrange fresh consensuses to arrive on the second host. > > tor supports consensus downloads without being a router, but it's a bit of a > hack: > > A tor instance configured with a DirPort and no ORPort will act as a

Re: [tor-dev] Guardiness: Yet another external dirauth script

2014-09-17 Thread George Kadianakis
George Kadianakis writes: > Damian Johnson writes: > >>> - Q: Why do you slow stem instead of parsing consensuses with Python on >>> your own? >>> >>> This is another part where I might have taken the wrong design >>> decision, but I decided to not get into the consensus parsing business >>> an

Re: [tor-dev] Guardiness: Yet another external dirauth script

2014-09-17 Thread Tim
On 17 Sep 2014, at 22:00 , George Kadianakis wrote: > Sebastian Hahn writes: > >> On 16 Sep 2014, at 16:15, George Kadianakis wrote: >> >>> How the guardiness script will be deployed >>> >>> The idea is that dirauths will add another script to their crontab >>> that is called every h

Re: [tor-dev] Guardiness: Yet another external dirauth script

2014-09-17 Thread George Kadianakis
Sebastian Hahn writes: > On 16 Sep 2014, at 16:15, George Kadianakis wrote: >> How guardiness works >> The idea was that the guardiness script will be an external script >> that is run by Tor in a similar fashion to the bandwidth auth >> scripts. We chose that because we could write the

Re: [tor-dev] Guardiness: Yet another external dirauth script

2014-09-17 Thread George Kadianakis
Damian Johnson writes: >> - Q: Why do you slow stem instead of parsing consensuses with Python on your >> own? >> >> This is another part where I might have taken the wrong design >> decision, but I decided to not get into the consensus parsing business >> and just rely on stem. >> >> This is al

Re: [tor-dev] Guardiness: Yet another external dirauth script

2014-09-16 Thread Damian Johnson
> - Q: Why do you slow stem instead of parsing consensuses with Python on your > own? > > This is another part where I might have taken the wrong design > decision, but I decided to not get into the consensus parsing business > and just rely on stem. > > This is also because I was hoping to use st

Re: [tor-dev] Guardiness: Yet another external dirauth script

2014-09-16 Thread Sebastian Hahn
On 16 Sep 2014, at 16:15, George Kadianakis wrote: > How guardiness works > The idea was that the guardiness script will be an external script > that is run by Tor in a similar fashion to the bandwidth auth > scripts. We chose that because we could write the script in a > high-level langu

[tor-dev] Guardiness: Yet another external dirauth script

2014-09-16 Thread George Kadianakis
==Guardiness: Yet another external dirauth script== Introduction One well-known problem with Tor relays, is that Guards will suffer a big loss of traffic as soon as they get the Guard flag. This happens because clients pick guards every 2-3 months, so young guards will not get picked by o