Timing info and updated docs
This commit is contained in:
parent
5534755f2d
commit
a2d331536b
Binary file not shown.
14
cli/chain.go
14
cli/chain.go
@ -1595,6 +1595,7 @@ var ChainPruneCmd = &cli.Command{
|
|||||||
Subcommands: []*cli.Command{
|
Subcommands: []*cli.Command{
|
||||||
chainPruneColdCmd,
|
chainPruneColdCmd,
|
||||||
chainPruneHotGCCmd,
|
chainPruneHotGCCmd,
|
||||||
|
chainPruneHotMovingGCCmd,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1616,7 +1617,11 @@ var chainPruneHotGCCmd = &cli.Command{
|
|||||||
opts.Periodic = cctx.Bool("periodic")
|
opts.Periodic = cctx.Bool("periodic")
|
||||||
opts.Threshold = cctx.Float64("threshold")
|
opts.Threshold = cctx.Float64("threshold")
|
||||||
|
|
||||||
return api.ChainHotGC(ctx, opts)
|
gcStart := time.Now()
|
||||||
|
err = api.ChainHotGC(ctx, opts)
|
||||||
|
gcTime := time.Since(gcStart)
|
||||||
|
fmt.Printf("Online GC took %v (periodic <%t> threshold <%f>)", gcTime, opts.Periodic, opts.Threshold)
|
||||||
|
return err
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1632,7 +1637,12 @@ var chainPruneHotMovingGCCmd = &cli.Command{
|
|||||||
ctx := ReqContext(cctx)
|
ctx := ReqContext(cctx)
|
||||||
opts := lapi.HotGCOpts{}
|
opts := lapi.HotGCOpts{}
|
||||||
opts.Moving = true
|
opts.Moving = true
|
||||||
return api.ChainHotGC(ctx, opts)
|
|
||||||
|
gcStart := time.Now()
|
||||||
|
err = api.ChainHotGC(ctx, opts)
|
||||||
|
gcTime := time.Since(gcStart)
|
||||||
|
fmt.Printf("Moving GC took %v", gcTime)
|
||||||
|
return err
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1087,7 +1087,8 @@ Inputs:
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"Threshold": 12.3,
|
"Threshold": 12.3,
|
||||||
"Periodic": true
|
"Periodic": true,
|
||||||
|
"Moving": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
```
|
```
|
||||||
|
@ -2473,6 +2473,7 @@ USAGE:
|
|||||||
COMMANDS:
|
COMMANDS:
|
||||||
compact-cold force splitstore compaction on cold store state and run gc
|
compact-cold force splitstore compaction on cold store state and run gc
|
||||||
hot run online (badger vlog) garbage collection on hotstore
|
hot run online (badger vlog) garbage collection on hotstore
|
||||||
|
hot-moving run moving gc on hotstore
|
||||||
help, h Shows a list of commands or help for one command
|
help, h Shows a list of commands or help for one command
|
||||||
|
|
||||||
OPTIONS:
|
OPTIONS:
|
||||||
@ -2509,6 +2510,19 @@ OPTIONS:
|
|||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### lotus chain prune hot-moving
|
||||||
|
```
|
||||||
|
NAME:
|
||||||
|
lotus chain prune hot-moving - run moving gc on hotstore
|
||||||
|
|
||||||
|
USAGE:
|
||||||
|
lotus chain prune hot-moving [command options] [arguments...]
|
||||||
|
|
||||||
|
OPTIONS:
|
||||||
|
--help, -h show help (default: false)
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
## lotus log
|
## lotus log
|
||||||
```
|
```
|
||||||
NAME:
|
NAME:
|
||||||
|
Loading…
Reference in New Issue
Block a user