summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Include OnionPerf analysis files when syncing.HEADmasterKarsten Loesing2020-12-14
|
* Include certs when syncing from another instance.Karsten Loesing2020-12-14
|
* Only clean up a single time during sync.Karsten Loesing2020-12-11
|
* Fix a few paths for cleaning up.Karsten Loesing2020-12-11
|
* Add log statement for current memory usage.Karsten Loesing2020-12-11
|
* Include microdescriptors when syncing.Karsten Loesing2020-12-11
|
* Make sure that the DirectoryStream gets closed.Karsten Loesing2020-12-11
| | | | | | | | | | As the docs say, "If timely disposal of file system resources is required, the try-with-resources construct should be used to ensure that the stream's close method is invoked after the stream operations are completed." Turns out that without closing the stream, the JVM runs out of memory pretty quickly. Doing this is not optional but mandatory.
* Use persist package for writing bridge descriptors.Karsten Loesing2020-12-02
| | | | Implements #25307.
* Use java8 datetime classes in bridgedesc module.Karsten Loesing2020-12-01
| | | | Implements #25309.
* Move sanitizing code to one class per type.Karsten Loesing2020-12-01
| | | | Part of #20542.
* Make some minor optimizations to bridgedescs code.Karsten Loesing2020-11-30
| | | | Part of #20542.
* Move lower-level sanitizing code to its own class.Karsten Loesing2020-11-30
| | | | Part of #20542.
* Update most of the bridgedescs module to NIO.Karsten Loesing2020-11-29
| | | | | | | Replace all File references with their Path equivalents, and use Files methods wherever feasible. Part of #20542.
* Simplify the bridgedescs module.Karsten Loesing2020-11-28
| | | | | | | | | | | | | | | | | | | | The separation between BridgeSnapshotReader, BridgeDescriptorParser, and SanitizedBridgesWriter doesn't make much sense anymore: - BridgeSnapshotReader only has a constructor of more than 200 lines of code. - BridgeDescriptorParser actually only determines the descriptor type and - SanitizedBridgesWriter performs parsing and obfuscation. There are better ways to structure this code. The first step in that direction is to remove clutter by moving the code to read bridge snapshots to SanitizedBridgesWriter and deleting the other two classes. Part of #20542.
* Add change log entry for #34030 fix.Karsten Loesing2020-11-28
|
* Correctly index files that are moved away and back.Karsten Loesing2020-11-28
| | | | | | | | | | | The indexer did not handle a (mostly theoretic) edge case of a file being moved away and then moved back shortly after. In such a case the file should not be marked for deletion anymore and it should be included in the index again. That's what this commit does. The other minor changes to unit tests are just cosmetic. Fixes #34030.
* Fix minor issue with cleaning up directories.Karsten Loesing2020-11-28
| | | | | | | | | | | | | | | One of the previously made changes to cleaning up directories was that empty directories were deleted. This was necessary, because otherwise there would be a growing number of directories as files get deleted after reaching an age of seven weeks. However, this change should not have included deleting the cleaned up directory itself. In practice, this will not happen. But in tests it's certainly possible that a directory is empty and then gets deleted. This leads to all sorts of problems in tests. The fix is to limit deleting empty directories to subdirectories. That's what this commit does.
* Delete files in out/ that are older than 7 weeks.Karsten Loesing2020-11-27
| | | | Fixes #21219.
* Bump version to 1.16.1-dev.Karsten Loesing2020-11-25
|
* Prepare for 1.16.1 release.collector-1.16.1Karsten Loesing2020-08-16
|
* Update to metrics-lib 2.14.0.Karsten Loesing2020-08-16
|
* Prepare for 1.16.0 release.collector-1.16.0Karsten Loesing2020-08-05
|
* Update to latest metrics-base.Karsten Loesing2020-08-05
|
* Retain ipv6- lines in bridge extra-infos.Karsten Loesing2020-08-05
| | | | | | | | These lines have been added by proposal 313 and are usually not included by bridges. But apparently some bridges include them anyway, probably bridges that have been configured as non-bridge relays before. We should retain them just like we retain other statistics lines.
* Bump version to 1.15.2-dev.Karsten Loesing2020-05-17
|
* Prepare for 1.15.2 release.collector-1.15.2releaseKarsten Loesing2020-05-17
|
* Bump version to 1.15.1-dev.Karsten Loesing2020-04-30
|
* Prepare for 1.15.1 release.collector-1.15.1Karsten Loesing2020-04-30
|
* Bump version to 1.15.0-dev.Karsten Loesing2020-04-30
|
* Prepare for 1.15.0 release.collector-1.15.0Karsten Loesing2020-04-30
|
* Archive OnionPerf analysis .json files.Karsten Loesing2020-04-30
| | | | Implements #34072.
* Extend descriptorCutOff by 6 hours.Karsten Loesing2020-04-28
| | | | Fixes #19828.
* Set default locale US and default time zone UTC.Karsten Loesing2020-04-01
| | | | Part of #33655.
* Simplify logging configuration.Karsten Loesing2020-03-31
| | | | Implements #33549.
* Bump version to 1.14.1-dev.Karsten Loesing2020-01-16
|
* Prepare for 1.14.1 release.collector-1.14.1Karsten Loesing2020-01-16
|
* Fix smoke test for recent scheduler changes.Karsten Loesing2020-01-16
|
* Fix non-RunOnce mode.Karsten Loesing2020-01-16
| | | | | | This was accidentally broken in #32554. The RunOnce mode worked just fine, but the non-RunOnce mode terminated immediately after scheduling tasks.
* Bump version to 1.14.0-dev.Karsten Loesing2020-01-15
|
* Prepare for 1.14.0 release.collector-1.14.0Karsten Loesing2020-01-15
|
* Update to metrics-lib 2.10.0.Karsten Loesing2020-01-15
|
* Remember processed files between module runs.Karsten Loesing2020-01-15
| | | | | | | | | | | | | | | | | | | | | The three recently added modules to archive Snowflake statistics, bridge pool assignments, and BridgeDB metrics have in common that they process any input files regardless of whether they already processed them before. The problem is that the input files processed by these modules are either never removed (Snowflake statistics) or only removed manually by the operator (bridge pool assignments and BridgeDB statistics). The effect is that non-recent BridgeDB metrics and bridge pool assignments are being placed in the indexed/recent/ directory in the next execution after they are deleted for being older than 72 hours. The same would happen with Snowflake statistics after the operator removes them from the out/ directory. The fix is to use a state file containing file names of previously processed files and only process a file not found in there. This is the same approach as taken for bridge descriptor tarballs.
* Update copyright to 2020.Karsten Loesing2020-01-15
|
* Avoid reprocessing webstats files.Karsten Loesing2020-01-14
| | | | | | | | | | | | | | | | | | Web servers typically provide us with the last 14 days of request logs. We shouldn't process the whole 14 days over and over. Instead we should only process new logs files and any other log files containing log lines from newly written dates. In some cases web servers stop serving a given virtual host or stop acting as web server at all. However, in these cases we're left with 14 days of logs per virtual host. Ideally, these logs would get cleaned up, but until that's the case, we should at least not reprocess these files over and over. In order to avoid reprocessing webstats files, we need a new state file with log dates contained in given input files. We use that state file to determine which of the previously processed webstats files to re-process, so that we can write complete daily logs.
* Add some real tests for the webstats module.Karsten Loesing2020-01-14
|
* Remove dependency on metrics-lib's log package (4/4).task-32605Karsten Loesing2019-11-25
| | | | - Remove package-internal abstract class.
* Remove dependency on metrics-lib's log package (3/4).Karsten Loesing2019-11-25
| | | | | - Remove package-internal interfaces InternalLogDescriptor and InternalWebServerAccessLog.
* Remove dependency on metrics-lib's log package (2/4).Karsten Loesing2019-11-25
| | | | - Remove unused code.
* Remove dependency on metrics-lib's log package (1/4).Karsten Loesing2019-11-25
| | | | | | - Copy types from metrics-lib to this code base. - Update package and import statements. - Copy remaining parts of metrics-lib's FileType.
* Remove dependency on DescriptorIndexCollector.Karsten Loesing2019-11-22
|