lotus/api
Clint Armstrong 93e4656a27 Use a float to represent GPU utilization
Before this change workers can only be allocated one GPU task,
regardless of how much of the GPU resources that task uses, or how many
GPUs are in the system.

This makes GPUUtilization a float which can represent that a task needs
a portion, or multiple GPUs. GPUs are accounted for like RAM and CPUs so
that workers with more GPUs can be allocated more tasks.

A known issue is that PC2 cannot use multiple GPUs. And even if the
worker has multiple GPUs and is allocated multiple PC2 tasks, those
tasks will only run on the first GPU.

This could result in unexpected behavior when a worker with multiple
GPUs is assigned multiple PC2 tasks. But this should not suprise any
existing users who upgrade, as any existing users who run workers with
multiple GPUs should already know this and be running a worker per GPU
for PC2. But now those users have the freedom to customize the GPU
utilization of PC2 to be less than one and effectively run multiple PC2
processes in a single worker.

C2 is capable of utilizing multiple GPUs, and now workers can be
customized for C2 accordingly.
2021-11-30 02:06:58 +01:00
..
client api: Separate the Net interface from Common 2021-07-15 11:41:30 +02:00
docgen Use a float to represent GPU utilization 2021-11-30 02:06:58 +01:00
docgen-openrpc api: Separate the Net interface from Common 2021-07-15 11:41:30 +02:00
mocks make gen 2021-11-22 12:46:15 +01:00
types API proxy struct codegen (#5854) 2021-03-23 13:42:56 +01:00
v0api retrieval: DagSpec.MatchPath -> ExportMerkleProof 2021-11-29 21:14:00 +01:00
v1api Merge apistruct with the api package 2021-03-25 15:10:08 +01:00
api_common.go cli for checking alerts 2021-08-26 15:45:17 +02:00
api_full.go retrieval: Update some API comments 2021-11-22 14:19:03 +01:00
api_gateway.go add additional methods to lotus gateway 2021-11-22 12:19:27 +01:00
api_net.go address net interface split review 2021-07-15 15:51:47 +02:00
api_storage.go cli: add retry for deals stuck in Publish with no funds 2021-10-11 14:03:55 +02:00
api_test.go integrate DAG store and CARv2 in deal-making (#6671) 2021-08-16 23:34:32 +01:00
api_wallet.go lotus-wallet: Support permissioned api 2021-05-31 13:56:35 +02:00
api_worker.go remove read task type and run gen and docsgen 2021-06-07 15:03:06 +05:30
cbor_gen.go integrate DAG store and CARv2 in deal-making (#6671) 2021-08-16 23:34:32 +01:00
checkstatuscode_string.go implement MessagePool.CheckMessages 2021-05-07 15:30:04 +02:00
miner_subsystems.go fix docs and nits. 2021-07-28 20:03:25 +01:00
permissioned.go api: Separate the Net interface from Common 2021-07-15 11:41:30 +02:00
proxy_gen.go more retrieval api work 2021-11-22 12:46:02 +01:00
proxy_util_test.go address net interface split review 2021-07-15 15:51:47 +02:00
proxy_util.go api: Separate the Net interface from Common 2021-07-15 11:41:30 +02:00
README.md api: Add basic package readme 2021-03-25 18:00:29 +01:00
types.go gofmt 2021-11-29 21:39:27 +01:00
utils.go Update to specs v0.9.6 2020-09-07 15:48:41 -04:00
version.go Use a float to represent GPU utilization 2021-11-30 02:06:58 +01:00
wrap.go api: Fix Wrap for nested proxy structs 2021-06-28 19:00:37 +02:00

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