Skip to content

Feature/limit net bw#11

Merged
vbp1 merged 4 commits intomainfrom
feature/limit-net-bw
Jul 18, 2025
Merged

Feature/limit net bw#11
vbp1 merged 4 commits intomainfrom
feature/limit-net-bw

Conversation

@vbp1
Copy link
Copy Markdown
Owner

@vbp1 vbp1 commented Jul 18, 2025

No description provided.

vbp1 added 4 commits July 18, 2025 17:01
…cover with test

Introduce configurable aggregate network bandwidth cap for all rsync traffic via --limit-net-bw.
The script splits the total limit evenly across parallel workers and applies the full cap to single-threaded rsync invocations. A minimum of 10 KB/s is enforced.

Changes:
* Export RSYNC_BIN correctly inside remote rsyncd bootstrap.
* Calculate per-worker and total --bwlimit values; inject them into every rsync call.
* Update README with usage details, examples, and constraints.
* Add integration test tests/11-net-bw.bats that verifies:
    - per-worker limit is computed as expected (400 K total / 4 workers → 100 KB/s each);
    - actual transfer speed does not exceed the configured cap (+10 % tolerance).
@vbp1 vbp1 merged commit e9830b6 into main Jul 18, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant