Commit graph

210 commits

Author SHA1 Message Date
yggverse
e6b37c1c5f implement Display trait for InfoHash #226 2025-06-03 13:02:44 +03:00
Joakim Frostegård
2df331c5ab udp: don't add messages to resend queue more than once (bugfix) 2025-02-03 00:08:30 +01:00
Joakim Frostegård
94e3af2463
http: use separate sockets for IPv4 and IPv6 (#221) 2025-01-16 22:53:56 +01:00
Joakim Frostegård
048c297fc7
udp: open one socket each for IPv4 and IPv6 (#220)
* tmp work on udp double sockets

* WIP: udp: open two sockets (one for ipv4, one for ipv6)

io_uring not ported yet

* udp: open one socket each for IPv4 and IPv6

Config file now has one setting for each

* file transfer ci: fix udp network.address_ipv4
2025-01-16 20:13:28 +01:00
Joakim Frostegård
0eb66f150c Improve network address config documentation, update TODO 2025-01-13 22:14:15 +01:00
Joakim Frostegård
24897dd73d Improve documentation around IPv4/IPv6 address binding 2025-01-12 23:09:05 +01:00
Joakim Frostegård
fe4761d289 udp: update io_uring dependency 2025-01-12 22:41:06 +01:00
Joakim Frostegård
34902048d9 Update async-tungstenite version 2025-01-12 22:35:07 +01:00
Joakim Frostegård
edc85a0f66 Update more deps 2025-01-12 22:22:25 +01:00
Joakim Frostegård
19448fbc84 Upgrade metrics dependencies 2025-01-12 22:15:27 +01:00
Joakim Frostegård
ea06ffd513 Update to hashbrown v0.15 2025-01-12 22:10:29 +01:00
Joakim Frostegård
86ff9cd577 http: fix enclose macro invocation error 2025-01-12 22:10:16 +01:00
Alexander Lopatin
751ef7966e
Fix #211: memlock 73728 is the smallest limit that works for Alpine Linux 3.20.3 x86_64 build (#212) 2024-10-20 14:42:50 +02:00
Jose Celano
88b1292672
Update the Bencher README with the latest Torrust Tracker commit (#209)
compatible with the current benchmarking configuration.

How to install the Torrust Tracker to run the benchmarking:

```console
git clone git@github.com:torrust/torrust-tracker.git
cd torrust-tracker
git checkout eaa86a76fc2bca837172e0e5c0221ee14b16b122
cargo build --release
sudo cp ./target/release/torrust-tracker /usr/local/bin/
sudo chmod +x /usr/local/bin/torrust-tracker
```

How to test the configration:

TORRUST_TRACKER_CONFIG_TOML=$(cat << EOF
            [metadata]
            schema_version = "2.0.0"

            [logging]
            threshold = "error"

            [core]
            listed = false
            private = false
            tracker_usage_statistics = false

            [core.database]
            driver = "sqlite3"
            path = "./sqlite3.db"

            [core.tracker_policy]
            persistent_torrent_completed_stat = false
            remove_peerless_torrents = false

            [[udp_trackers]]
            bind_address = "0.0.0.0:3000"
EOF
) torrust-tracker
2024-08-09 12:24:43 +02:00
Jose Celano
c254605d60
fix: update torrust tracker config in bencher (#208)
Now, some configuration options have default values. So we only need to
disable options that make the tracker slower.

Some options are still mandatory like:

- logging.threshold
- metadata.schema_version
- core.listed
- core.private
2024-08-07 16:39:05 +02:00
Cameron Garnham
a4c1bbfe55
dev: add ordinal compare to udp primitive types 2024-07-15 20:25:42 +02:00
Joakim Frostegård
67210fbb10 Fix some README typos 2024-05-03 22:51:19 +02:00
Joakim Frostegård
19df20e03f Fully remove udp cpu pinning support 2024-05-03 22:49:20 +02:00
Joakim Frostegård
215a22c95b Run cargo fmt 2024-05-03 22:38:47 +02:00
Joakim Frostegård
7795a1a532 Make mimalloc optional for udp and http 2024-05-03 22:38:25 +02:00
Joakim Frostegård
755281d340 udp protocol: test that parsing slices of various lengths doesn't panic 2024-05-03 22:29:15 +02:00
Joakim Frostegård
b1848c361d Update glommio to v0.9 2024-04-25 22:50:41 +02:00
Joakim Frostegård
6c4b2d384d Update metrics-exporter-prometheus to v0.14 2024-04-25 22:41:13 +02:00
Joakim Frostegård
ec95f7e73c Fix a ws Cargo.toml comment 2024-04-25 22:39:21 +02:00
Joakim Frostegård
efa10015e5 Upgrade async-tungstenite to v0.25 2024-04-25 22:38:41 +02:00
Joakim Frostegård
69294ea201 Update rustls to v0.23 2024-04-25 22:36:47 +02:00
Joakim Frostegård
79d8a3b6f3 http: don't always close connection after sending error response 2024-04-25 22:31:02 +02:00
Joakim Frostegård
921fb57e9e http: improve peer addr extraction logic 2024-04-20 10:27:48 +02:00
Joakim Frostegård
3e7ad2a9e7 http socket worker, connection module: add comment about peer addr 2024-04-14 00:47:57 +02:00
Joakim Frostegård
b898c53ae1 http: don't require peer addr to have been set in send_response 2024-04-14 00:46:02 +02:00
Val Packett
2d18eb6686 udp: fix msghdr creation on musl libc
Right now building for musl also requires updating glommio to a git
version.
2024-03-30 10:31:16 +01:00
Joakim Frostegård
5ef2ea2745 bencher: update README 2024-03-21 17:07:34 +01:00
Joakim Frostegård
cc800a8416 bencher: add 2 threads per core entries for aquatic and opentracker
Use low priority to enable skipping them
2024-03-21 17:04:26 +01:00
Joakim Frostegård
51fe398708 Update bencher README 2024-03-21 17:00:00 +01:00
Jose Celano
c5843eedce
bencher: add new tracker, torrust-tracker
Adds a new tracker to the bencher.

https://github.com/torrust/torrust-tracker
2024-03-20 09:11:22 +00:00
Joakim Frostegård
9f000abb52 Add separate READMEs for load testers 2024-03-16 10:50:52 +01:00
Joakim Frostegård
61bc4f0d9d udp: swarm: extract_response_peers: improve docs, add .copied() to iters 2024-02-11 01:02:16 +01:00
Joakim Frostegård
f455e58251 udp: swarm cleaning: send statistics messages after releasing locks 2024-02-11 00:59:23 +01:00
Joakim Frostegård
14c973f72f udp: Config.socket_workers: make value 0 auto-use available vCPUs 2024-02-10 23:07:59 +01:00
Joakim Frostegård
f4ef9fcfc9 udp: fix test_connection_validator 2024-02-10 22:56:37 +01:00
Joakim Frostegård
680da048b8 udp: add ConnectionValidator.update_elapsed, call regularly
This is faster than doing it for each request
2024-02-10 22:47:36 +01:00
Joakim Frostegård
94247b8e35 udp: mio: don't recalculate PeerUntil every announce request 2024-02-10 22:22:19 +01:00
Joakim Frostegård
19533b3f8e udp: mio: make send_response a method 2024-02-10 22:13:01 +01:00
Joakim Frostegård
7116fdd862 udp: io_uring: improve docs 2024-02-10 21:55:39 +01:00
Joakim Frostegård
b1908329e5 udp: improve config docs and key order 2024-02-10 21:48:55 +01:00
Joakim Frostegård
ebf4ecbf6a udp: fix torrent count statistics 2024-02-10 21:45:34 +01:00
Joakim Frostegård
68e951cf79 Improve udp README and latest load test md 2024-02-10 21:29:12 +01:00
Joakim Frostegård
6384e3401b Move architectural overview image to ws and http crate READMEs 2024-02-10 21:24:14 +01:00
Joakim Frostegård
a7ad3266d8 Update UDP benchmarks 2024-02-10 21:22:49 +01:00
Joakim Frostegård
21a530189e bencher: fix udp sets 2024-02-10 20:00:17 +01:00