Skip to content

Commit

Permalink
Merge pull request #9 from INFURA/tune_default_rates
Browse files Browse the repository at this point in the history
Tunes default rate limits.
  • Loading branch information
EnchanterIO authored Nov 30, 2021
2 parents 1e8e3a4 + a216b07 commit 9eb85d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions MigrationExistingUsers.md
Original file line number Diff line number Diff line change
Expand Up @@ -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=<YOUR_PROJECT_ID> --project-secret=<YOUR_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
Expand Down
4 changes: 2 additions & 2 deletions MigrationNewUsers.md
Original file line number Diff line number Diff line change
Expand Up @@ -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=<YOUR_PROJECT_ID> --project-secret=<YOUR_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
Expand Down

0 comments on commit 9eb85d7

Please sign in to comment.