mirror of
https://github.com/taoky/shadowmire.git
synced 2025-07-08 09:12:43 +00:00
Set default IOWORKERS to 2
5 might be too high for HDD setup, which makes packages/ iterating even slower than only 1 thread in local testing. Use a smaller value for this now.
This commit is contained in:
parent
7d78d998ba
commit
20c1462ec7
@ -101,7 +101,7 @@ If you already have a PyPI repo, use `genlocal` first to generate a local db:
|
|||||||
`verify` command accepts same arguments as sync, and accepts some new arguments. Please check `./shadowmire.py verify --help` for more information.
|
`verify` command accepts same arguments as sync, and accepts some new arguments. Please check `./shadowmire.py verify --help` for more information.
|
||||||
|
|
||||||
> [!TIP]
|
> [!TIP]
|
||||||
> You could set `SHADOWMIRE_IOWORKERS` environment variable to a number to set threads to do local I/O. Defaults to 5.
|
> You could set `SHADOWMIRE_IOWORKERS` environment variable to a number to set threads to do local I/O. Defaults to 2.
|
||||||
|
|
||||||
> [!IMPORTANT]
|
> [!IMPORTANT]
|
||||||
> For users switching from Bandersnatch to Shadowmire, you **MUST** run the following commands (with exclusion, of course) before regular syncing:
|
> For users switching from Bandersnatch to Shadowmire, you **MUST** run the following commands (with exclusion, of course) before regular syncing:
|
||||||
|
@ -37,7 +37,7 @@ USER_AGENT = "Shadowmire (https://github.com/taoky/shadowmire)"
|
|||||||
# Note that it's suggested to use only 3 workers for PyPI.
|
# Note that it's suggested to use only 3 workers for PyPI.
|
||||||
WORKERS = int(os.environ.get("SHADOWMIRE_WORKERS", "3"))
|
WORKERS = int(os.environ.get("SHADOWMIRE_WORKERS", "3"))
|
||||||
# Use threads to parallelize verification local IO
|
# Use threads to parallelize verification local IO
|
||||||
IOWORKERS = int(os.environ.get("SHADOWMIRE_IOWORKERS", "5"))
|
IOWORKERS = int(os.environ.get("SHADOWMIRE_IOWORKERS", "2"))
|
||||||
# A safety net -- to avoid upstream issues casuing too many packages removed when determinating sync plan.
|
# A safety net -- to avoid upstream issues casuing too many packages removed when determinating sync plan.
|
||||||
MAX_DELETION = int(os.environ.get("SHADOWMIRE_MAX_DELETION", "50000"))
|
MAX_DELETION = int(os.environ.get("SHADOWMIRE_MAX_DELETION", "50000"))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user