Updated Master Server API (markdown)

Chris Lu 2021-03-09 17:45:57 -08:00
parent c71f796a9e
commit 4008dbf78b

@ -66,6 +66,8 @@ curl "http://localhost:9333/dir/lookup?volumeId=3&collection=turbo"
If your system has many deletions, the deleted file's disk space will not be synchronously re-claimed. There is a background job to check volume disk usage. If empty space is more than the threshold, default to 0.3 which is 30%, the vacuum job will make the volume readonly, create a new volume with only existing files, and switch on the new volume. If you are impatient or doing some testing, vacuum the unused spaces this way.
Currently the garbage collection is hard coded in master to run every 15 minutes.
```bash
curl "http://localhost:9333/vol/vacuum"
curl "http://localhost:9333/vol/vacuum?garbageThreshold=0.4"