4ef8543128
In an environment with heterogenious worker nodes, a universal resource table for all workers does not allow effective scheduling of tasks. Some workers may have different proof cache settings, changing the required memory for different tasks. Some workers may have a different count of CPUs per core-complex, changing the max parallelism of PC1. This change allows workers to customize these parameters with environment variables. A worker could set the environment variable PC1_MIN_MEMORY for example to customize the minimum memory requirement for PC1 tasks. If no environment variables are specified, the resource table on the miner is used, except for PC1 parallelism. If PC1_MAX_PARALLELISM is not specified, and FIL_PROOFS_USE_MULTICORE_SDR is set, PC1_MAX_PARALLELSIM will automatically be set to FIL_PROOFS_MULTICORE_SDR_PRODUCERS + 1. |
||
---|---|---|
.. | ||
client | ||
docgen | ||
docgen-openrpc | ||
mocks | ||
types | ||
v0api | ||
v1api | ||
api_common.go | ||
api_full.go | ||
api_gateway.go | ||
api_net.go | ||
api_storage.go | ||
api_test.go | ||
api_wallet.go | ||
api_worker.go | ||
cbor_gen.go | ||
checkstatuscode_string.go | ||
miner_subsystems.go | ||
permissioned.go | ||
proxy_gen.go | ||
proxy_util_test.go | ||
proxy_util.go | ||
README.md | ||
types.go | ||
utils.go | ||
version.go | ||
wrap.go |
Lotus API
This package contains all lotus API definitions. Interfaces defined here are exposed as JsonRPC 2.0 endpoints by lotus programs.
Versions
File | Alias File | Interface | Exposed by | Version | HTTP Endpoint | Status | Docs |
---|---|---|---|---|---|---|---|
api_common.go |
v0api/latest.go |
Common |
lotus; lotus-miner | v0 | /rpc/v0 |
Latest, Stable | Methods |
api_full.go |
v1api/latest.go |
FullNode |
lotus | v1 | /rpc/v1 |
Latest, Work in progress | Methods |
api_storage.go |
v0api/latest.go |
StorageMiner |
lotus-miner | v0 | /rpc/v0 |
Latest, Stable | Methods |
api_worker.go |
v0api/latest.go |
Worker |
lotus-worker | v0 | /rpc/v0 |
Latest, Stable | Methods |
v0api/full.go |
FullNode |
lotus | v0 | /rpc/v0 |
Stable | Methods |