feat: Add etcd database support

improve concurrent access and high availability of aptly with the help of the characteristics of etcd
This commit is contained in:
hudeng
2022-02-08 11:16:16 +08:00
committed by André Roth
parent f42ff697d4
commit 78172d11d7
14 changed files with 497 additions and 6 deletions

View File

@@ -28,6 +28,7 @@ Configuration file is stored in JSON format (default values shown below):
{
"rootDir": "$HOME/.aptly",
"databaseEtcd": "",
"downloadConcurrency": 4,
"downloadSpeedLimit": 0,
"downloadRetries": 0,
@@ -119,6 +120,9 @@ Options:
the default for downloaded packages (`rootDir`/pool) and
the default for published repositories (`rootDir`/public)
* `databaseEtcd`:
the etcd database connection address is empty by default, which means it is not used
* `downloadConcurrency`:
is a number of parallel download threads to use when downloading packages