chain prune hot -- hotstore online gc
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
* [ChainGetTipSetByHeight](#ChainGetTipSetByHeight)
|
||||
* [ChainHasObj](#ChainHasObj)
|
||||
* [ChainHead](#ChainHead)
|
||||
* [ChainHotGC](#ChainHotGC)
|
||||
* [ChainNotify](#ChainNotify)
|
||||
* [ChainPrune](#ChainPrune)
|
||||
* [ChainPutObj](#ChainPutObj)
|
||||
@@ -1074,6 +1075,25 @@ Response:
|
||||
}
|
||||
```
|
||||
|
||||
### ChainHotGC
|
||||
ChainHotGC does online (badger) GC on the hot store; only supported if you are using
|
||||
the splitstore
|
||||
|
||||
|
||||
Perms: admin
|
||||
|
||||
Inputs:
|
||||
```json
|
||||
[
|
||||
{
|
||||
"Threshold": 12.3,
|
||||
"Periodic": true
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
Response: `{}`
|
||||
|
||||
### ChainNotify
|
||||
ChainNotify returns channel with chain head updates.
|
||||
First message is guaranteed to be of len == 1, and type == 'current'.
|
||||
@@ -1098,7 +1118,7 @@ Response:
|
||||
```
|
||||
|
||||
### ChainPrune
|
||||
ChainPrune prunes the stored chain state and garbage collects; only supported if you
|
||||
ChainPrune forces compaction on cold store and garbage collects; only supported if you
|
||||
are using the splitstore
|
||||
|
||||
|
||||
|
||||
@@ -2117,7 +2117,7 @@ COMMANDS:
|
||||
decode decode various types
|
||||
encode encode various types
|
||||
disputer interact with the window post disputer
|
||||
prune prune the stored chain state and perform garbage collection
|
||||
prune splitstore gc
|
||||
help, h Shows a list of commands or help for one command
|
||||
|
||||
OPTIONS:
|
||||
@@ -2465,10 +2465,28 @@ OPTIONS:
|
||||
### lotus chain prune
|
||||
```
|
||||
NAME:
|
||||
lotus chain prune - prune the stored chain state and perform garbage collection
|
||||
lotus chain prune - splitstore gc
|
||||
|
||||
USAGE:
|
||||
lotus chain prune [command options] [arguments...]
|
||||
lotus chain prune command [command options] [arguments...]
|
||||
|
||||
COMMANDS:
|
||||
compact-cold force splitstore compaction on cold store state and run gc
|
||||
hot run online (badger vlog) garbage collection on hotstore
|
||||
help, h Shows a list of commands or help for one command
|
||||
|
||||
OPTIONS:
|
||||
--help, -h show help (default: false)
|
||||
|
||||
```
|
||||
|
||||
#### lotus chain prune compact-cold
|
||||
```
|
||||
NAME:
|
||||
lotus chain prune compact-cold - force splitstore compaction on cold store state and run gc
|
||||
|
||||
USAGE:
|
||||
lotus chain prune compact-cold [command options] [arguments...]
|
||||
|
||||
OPTIONS:
|
||||
--moving-gc use moving gc for garbage collecting the coldstore (default: false)
|
||||
@@ -2477,6 +2495,20 @@ OPTIONS:
|
||||
|
||||
```
|
||||
|
||||
#### lotus chain prune hot
|
||||
```
|
||||
NAME:
|
||||
lotus chain prune hot - run online (badger vlog) garbage collection on hotstore
|
||||
|
||||
USAGE:
|
||||
lotus chain prune hot [command options] [arguments...]
|
||||
|
||||
OPTIONS:
|
||||
--periodic Run periodic gc over multiple vlogs. Otherwise run gc once (default: false)
|
||||
--threshold value Threshold of vlog garbage for gc (default: 0.01)
|
||||
|
||||
```
|
||||
|
||||
## lotus log
|
||||
```
|
||||
NAME:
|
||||
|
||||
Reference in New Issue
Block a user