0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2024-12-16 21:56:37 -05:00
zot/pkg/storage
Andreea Lupu 76277f5ebd
fix: remove inline GC and schedule a background task instead (#1610)
* fix: remove inline GC and set a default value of gc interval

- remove inline GC
- add a default value of GC interval
- run the GC periodically by default with the default value if no interval provided
- generate GC tasks with a random delay(0-30s) between
- add IsReady() method to scheduler.TaskGenerator interface

Signed-off-by: Andreea-Lupu <andreealupu1470@yahoo.com>

* ci: add test for gc with short interval

Signed-off-by: Andreea-Lupu <andreealupu1470@yahoo.com>

---------

Signed-off-by: Andreea-Lupu <andreealupu1470@yahoo.com>
2023-08-07 12:55:19 -07:00
..
cache refactor(storage): refactoring storage (#1459) 2023-05-26 11:08:19 -07:00
common fix: remove inline GC and schedule a background task instead (#1610) 2023-08-07 12:55:19 -07:00
constants fix: remove inline GC and schedule a background task instead (#1610) 2023-08-07 12:55:19 -07:00
local fix: remove inline GC and schedule a background task instead (#1610) 2023-08-07 12:55:19 -07:00
s3 test(refactor): change upload image function signature (#1655) 2023-07-28 17:53:46 +03:00
types fix(storage): do not open/download blobs when validating manifests (#1566) 2023-07-06 10:33:36 -07:00
cache.go refactor(storage): refactoring storage (#1459) 2023-05-26 11:08:19 -07:00
cache_benchmark_test.go feat(cache): dynamodb implementation (#953) 2022-11-22 10:29:57 -08:00
cache_test.go refactor(cache): rewrote/refactored cachedb functionality to use interface (#667) 2022-11-02 15:53:08 -07:00
README.md refactor(cache): rewrote/refactored cachedb functionality to use interface (#667) 2022-11-02 15:53:08 -07:00
scrub.go feat(cli): Fix multiple issues with zli output (#1612) 2023-07-12 10:21:12 -07:00
scrub_test.go test(refactor): change upload image function signature (#1655) 2023-07-28 17:53:46 +03:00
storage.go refactor(storage): refactoring storage (#1459) 2023-05-26 11:08:19 -07:00
storage_controller.go refactor(storage): refactoring storage (#1459) 2023-05-26 11:08:19 -07:00
storage_test.go fix: don't allow blobs to be deleted if in use (#1559) 2023-07-10 12:24:45 +03:00

zot currently supports two types of underlying filesystems:

  1. local - a locally mounted filesystem

  2. remote - a remote filesystem such as AWS S3

The cache database can be configured independently of storage. Right now, zot supports the following database implementations:

  1. BoltDB - local storage. Set the "cloudCache" field in the config file to false. Example: examples/config-boltdb.json