Note
UNIT3D 9.1.7+ is required if using the new unix socket listening feature.
Important
A new configuration option is required. It's recommended to set it to the new default configuration.
| Environment variable | Old | New |
|---|---|---|
MAX_BATCHES_PER_FLUSH
| - | 1
|
Notable changes:
- Initial startup memory usage reduced to 33% of previous version.
- Duplicate announces will no longer send a warning message to the user.
- History no longer marked as inactive when a user stops 1 out of 2+ peers on the same torrent.
- New configuration option to listen on a unix socket instead of the previous TCP socket configuration. This reduces CPU usage by ~10-15% or increases throughput by ~40%. Tested on a machine concurrently running all 3 of UNIT3D-Announce, MariaDB, and an http load generator with connection re-use. TLS connection handshakes remain to be the primary bottleneck, however unix sockets also offer unix permissions, which is useful for security hardening.
- New configuration options to control the max records per upsert batch, and the max batches per flush. These two configuration options can be tuned alongside the database to increase upsertion throughput and/or decrease upsertion latency. All hardware is different and will require different parameters. These settings will only be useful for servers dealing with over ~10 000 announces per second otherwise it is more useful to decrease the flush interval.
Full Changelog: v0.2...v0.3