Somewhat related, though mostly as a motivation why this ticket matters, here's a graph of temporary downtimes of the primary CollecTor host in the first quarter of 2018:
Much lower. But I can't make a graph of that. I took the data for this graph from consensus tarballs by plotting time differences between consensus valid-after time and the file's last-modified time. We don't have a similar archive from collector2, AFAIK.
As Onionooo should be made easier to configure soon and we decided on having one config file (in #24041 (moved)) maybe the construction of directories and supplying the hosts could be put in one place? This would also avoid repeating the path concatenation. Something like a list of host URL and in directory?
(Just prepare and enable future config file use, not yet implementing it, of course.)
Much lower. But I can't make a graph of that. I took the data for this graph from consensus tarballs by plotting time differences between consensus valid-after time and the file's last-modified time. We don't have a similar archive from collector2, AFAIK.
I just made the first two changes, but while looking into the third change I discovered a potential bug: it might be that we're reading and parsing the entire set of recent descriptors 7 times and throwing away all but one descriptor type in each execution. I need to look closer at that, but I have to leave for lunch now.
I just made the first two changes, but while looking into the third change I discovered a potential bug: it might be that we're reading and parsing the entire set of recent descriptors 7 times and throwing away all but one descriptor type in each execution. I need to look closer at that, but I have to leave for lunch now.
False alarm. I overlooked a line that prevents just that. Phew.
Alright, please find commit 5c96f5c in my task-25700 branch. I think that addresses all things you mentioned above. If not, please consider providing a fix, so that we can get this merged by end of today, if possible. I'm also currently running a local test.