added lotus-worker run env vars
This commit is contained in:
parent
e61ae91e6f
commit
67ef0b3af4
@ -120,97 +120,115 @@ var runCmd = &cli.Command{
|
||||
Usage: "Start lotus worker",
|
||||
Flags: []cli.Flag{
|
||||
&cli.StringFlag{
|
||||
Name: "listen",
|
||||
Usage: "host address and port the worker api will listen on",
|
||||
Value: "0.0.0.0:3456",
|
||||
Name: "listen",
|
||||
Usage: "host address and port the worker api will listen on",
|
||||
Value: "0.0.0.0:3456",
|
||||
EnvVars: []string{"LOTUS_WORKER_LISTEN"},
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "address",
|
||||
Hidden: true,
|
||||
},
|
||||
&cli.BoolFlag{
|
||||
Name: "no-local-storage",
|
||||
Usage: "don't use storageminer repo for sector storage",
|
||||
Name: "no-local-storage",
|
||||
Usage: "don't use storageminer repo for sector storage",
|
||||
EnvVars: []string{"LOTUS_WORKER_NO_LOCAL_STORAGE"},
|
||||
},
|
||||
&cli.BoolFlag{
|
||||
Name: "no-swap",
|
||||
Usage: "don't use swap",
|
||||
Value: false,
|
||||
Name: "no-swap",
|
||||
Usage: "don't use swap",
|
||||
Value: false,
|
||||
EnvVars: []string{"LOTUS_WORKER_NO_SWAP"},
|
||||
},
|
||||
&cli.BoolFlag{
|
||||
Name: "addpiece",
|
||||
Usage: "enable addpiece",
|
||||
Value: true,
|
||||
Name: "addpiece",
|
||||
Usage: "enable addpiece",
|
||||
Value: true,
|
||||
EnvVars: []string{"LOTUS_WORKER_ADDPIECE"},
|
||||
},
|
||||
&cli.BoolFlag{
|
||||
Name: "precommit1",
|
||||
Usage: "enable precommit1 (32G sectors: 1 core, 128GiB Memory)",
|
||||
Value: true,
|
||||
Name: "precommit1",
|
||||
Usage: "enable precommit1 (32G sectors: 1 core, 128GiB Memory)",
|
||||
Value: true,
|
||||
EnvVars: []string{"LOTUS_WORKER_PRECOMMIT1"},
|
||||
},
|
||||
&cli.BoolFlag{
|
||||
Name: "unseal",
|
||||
Usage: "enable unsealing (32G sectors: 1 core, 128GiB Memory)",
|
||||
Value: true,
|
||||
Name: "unseal",
|
||||
Usage: "enable unsealing (32G sectors: 1 core, 128GiB Memory)",
|
||||
Value: true,
|
||||
EnvVars: []string{"LOTUS_WORKER_UNSEAL"},
|
||||
},
|
||||
&cli.BoolFlag{
|
||||
Name: "precommit2",
|
||||
Usage: "enable precommit2 (32G sectors: all cores, 96GiB Memory)",
|
||||
Value: true,
|
||||
Name: "precommit2",
|
||||
Usage: "enable precommit2 (32G sectors: all cores, 96GiB Memory)",
|
||||
Value: true,
|
||||
EnvVars: []string{"LOTUS_WORKER_PRECOMMIT2"},
|
||||
},
|
||||
&cli.BoolFlag{
|
||||
Name: "commit",
|
||||
Usage: "enable commit (32G sectors: all cores or GPUs, 128GiB Memory + 64GiB swap)",
|
||||
Value: true,
|
||||
Name: "commit",
|
||||
Usage: "enable commit (32G sectors: all cores or GPUs, 128GiB Memory + 64GiB swap)",
|
||||
Value: true,
|
||||
EnvVars: []string{"LOTUS_WORKER_COMMIT"},
|
||||
},
|
||||
&cli.BoolFlag{
|
||||
Name: "replica-update",
|
||||
Usage: "enable replica update",
|
||||
Value: true,
|
||||
Name: "replica-update",
|
||||
Usage: "enable replica update",
|
||||
Value: true,
|
||||
EnvVars: []string{"LOTUS_WORKER_REPLICA_UPDATE"},
|
||||
},
|
||||
&cli.BoolFlag{
|
||||
Name: "prove-replica-update2",
|
||||
Usage: "enable prove replica update 2",
|
||||
Value: true,
|
||||
Name: "prove-replica-update2",
|
||||
Usage: "enable prove replica update 2",
|
||||
Value: true,
|
||||
EnvVars: []string{"LOTUS_WORKER_PROVE_REPLICA_UPDATE2"},
|
||||
},
|
||||
&cli.BoolFlag{
|
||||
Name: "regen-sector-key",
|
||||
Usage: "enable regen sector key",
|
||||
Value: true,
|
||||
Name: "regen-sector-key",
|
||||
Usage: "enable regen sector key",
|
||||
Value: true,
|
||||
EnvVars: []string{"LOTUS_WORKER_REGEN_SECTOR_KEY"},
|
||||
},
|
||||
&cli.BoolFlag{
|
||||
Name: "windowpost",
|
||||
Usage: "enable window post",
|
||||
Value: false,
|
||||
Name: "windowpost",
|
||||
Usage: "enable window post",
|
||||
Value: false,
|
||||
EnvVars: []string{"LOTUS_WORKER_WINDOWPOST"},
|
||||
},
|
||||
&cli.BoolFlag{
|
||||
Name: "winningpost",
|
||||
Usage: "enable winning post",
|
||||
Value: false,
|
||||
Name: "winningpost",
|
||||
Usage: "enable winning post",
|
||||
Value: false,
|
||||
EnvVars: []string{"LOTUS_WORKER_WINNINGPOST"},
|
||||
},
|
||||
&cli.BoolFlag{
|
||||
Name: "no-default",
|
||||
Usage: "disable all default compute tasks, use the worker for storage/fetching only",
|
||||
Value: false,
|
||||
Name: "no-default",
|
||||
Usage: "disable all default compute tasks, use the worker for storage/fetching only",
|
||||
Value: false,
|
||||
EnvVars: []string{"LOTUS_WORKER_NO_DEFAULT"},
|
||||
},
|
||||
&cli.IntFlag{
|
||||
Name: "parallel-fetch-limit",
|
||||
Usage: "maximum fetch operations to run in parallel",
|
||||
Value: 5,
|
||||
Name: "parallel-fetch-limit",
|
||||
Usage: "maximum fetch operations to run in parallel",
|
||||
Value: 5,
|
||||
EnvVars: []string{"LOTUS_WORKER_PARALLEL_FETCH_LIMIT"},
|
||||
},
|
||||
&cli.IntFlag{
|
||||
Name: "post-parallel-reads",
|
||||
Usage: "maximum number of parallel challenge reads (0 = no limit)",
|
||||
Value: 128,
|
||||
Name: "post-parallel-reads",
|
||||
Usage: "maximum number of parallel challenge reads (0 = no limit)",
|
||||
Value: 128,
|
||||
EnvVars: []string{"LOTUS_WORKER_POST_PARALLEL_READS"},
|
||||
},
|
||||
&cli.DurationFlag{
|
||||
Name: "post-read-timeout",
|
||||
Usage: "time limit for reading PoSt challenges (0 = no limit)",
|
||||
Value: 0,
|
||||
Name: "post-read-timeout",
|
||||
Usage: "time limit for reading PoSt challenges (0 = no limit)",
|
||||
Value: 0,
|
||||
EnvVars: []string{"LOTUS_WORKER_POST_READ_TIMEOUT"},
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "timeout",
|
||||
Usage: "used when 'listen' is unspecified. must be a valid duration recognized by golang's time.ParseDuration function",
|
||||
Value: "30m",
|
||||
Name: "timeout",
|
||||
Usage: "used when 'listen' is unspecified. must be a valid duration recognized by golang's time.ParseDuration function",
|
||||
Value: "30m",
|
||||
EnvVars: []string{"LOTUS_WORKER_TIMEOUT"},
|
||||
},
|
||||
},
|
||||
Before: func(cctx *cli.Context) error {
|
||||
|
Loading…
Reference in New Issue
Block a user