From a216b073e222923f349f2609c5e7571acf479395 Mon Sep 17 00:00:00 2001 From: Lukas Lukac Date: Tue, 30 Nov 2021 17:30:10 +0100 Subject: [PATCH] Tunes default rate limits. --- MigrationExistingUsers.md | 4 ++-- MigrationNewUsers.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/MigrationExistingUsers.md b/MigrationExistingUsers.md index e027c54..b9e950e 100644 --- a/MigrationExistingUsers.md +++ b/MigrationExistingUsers.md @@ -42,8 +42,8 @@ The `ipfs-copy` command will read your file with all the IPFS hashes (CIDs) and ```bash ipfs-copy --cids=/home/xxx/Documents/ipfs-cids.txt --project-id= --project-secret= ``` -- optional flag `--workers=1` defines how many CIDs to pin in parallel (**default:** 1) -- optional flag `--max-req-per-sec=10` defines the maximum amount of CIDs a worker can pin per second to avoid getting rate limited (**default:** 10) +- optional flag `--workers=20` defines how many CIDs to pin in parallel (**default:** 20) +- optional flag `--max-req-per-sec=50` defines the maximum amount of CIDs a worker can pin per second to avoid getting rate limited (**default:** 50) - optional flag `--cids-failed=/tmp/failed_pins.txt` defines an absolute path where failed pins will be logged #### Using ENV values diff --git a/MigrationNewUsers.md b/MigrationNewUsers.md index 66baa89..6d43757 100644 --- a/MigrationNewUsers.md +++ b/MigrationNewUsers.md @@ -32,8 +32,8 @@ The `ipfs-copy` command **will iterate all pins from the source node, copy the b ```bash ipfs-copy --source-api-url=http://localhost:5001 --project-id= --project-secret= ``` -- optional flag `--workers=1` defines how many CIDs to pin in parallel (**default:** 1) -- optional flag `--max-req-per-sec=10` defines the maximum amount of CIDs a worker can pin per second to avoid getting rate limited (**default:** 10) +- optional flag `--workers=20` defines how many CIDs to pin in parallel (**default:** 20) +- optional flag `--max-req-per-sec=50` defines the maximum amount of CIDs a worker can pin per second to avoid getting rate limited (**default:** 50) - optional flag `--cids-failed=/tmp/failed_pins.txt` defines an absolute path where failed pins will be logged ### Run `ipfs-copy` using ENV variables