From 4008dbf78bd31ce31c02c73028b0ef5dce42aa53 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Tue, 9 Mar 2021 17:45:57 -0800 Subject: [PATCH] Updated Master Server API (markdown) --- Master-Server-API.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Master-Server-API.md b/Master-Server-API.md index 5399b3c..df122f4 100644 --- a/Master-Server-API.md +++ b/Master-Server-API.md @@ -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"