aboutsummaryrefslogtreecommitdiff
path: root/src/garage/main.rs
Commit message (Collapse)AuthorAgeFilesLines
* follow feedback, fold into existing featureRoberto Hidalgo2023-05-221-2/+0
|
* register consul services against local agent instead of catalog apiRoberto Hidalgo2023-05-221-0/+2
|
* move git-version dependency to main crate to reduce rebuildsAlex Auvolat2023-05-091-0/+6
|
* fixes for pr 499config-files-envAlex Auvolat2023-02-061-1/+2
|
* secrets can be passed directly in config, as file, or as envAlex Auvolat2023-02-031-7/+38
|
* Implement `rpc_secret_file`Felix Scheinost2023-01-041-1/+1
|
* Prettier worker list table; remove useless CLI log messagesAlex Auvolat2022-12-121-15/+21
|
* Show a nice message and a backtrace when Garage panicsAlex Auvolat2022-11-041-16/+40
|
* Add TLS support for Consul discovery + refactoringAlex Auvolat2022-10-181-0/+2
|
* Allow for hostnames in bootstrap_peers and rpc_public_addr (fix #353)resolve-peer-namesAlex Auvolat2022-09-141-1/+7
|
* Merge branch 'main' into lx-perf-improvementsAlex Auvolat2022-09-081-3/+45
|\
| * Move version back into utilimprove-depsAlex Auvolat2022-09-071-3/+3
| |
| * Inject GIT_VERSION even laterAlex Auvolat2022-09-071-2/+7
| |
| * Error messages when system-libs XOR bundled-libs != 1Alex Auvolat2022-09-071-0/+6
| |
| * Report build features in garage --helpAlex Auvolat2022-09-071-3/+33
| |
| * Move GIT_VERSION injection later in build chain to reduce build timesAlex Auvolat2022-09-071-2/+2
| |
| * Make OTLP exporter optional via feature "telemetry-otlp"Jakub Jirutka2022-09-061-0/+1
| | | | | | | | | | opentelemetry-otlp add 48 (!) extra dependencies and increases the size of the garage binary by ~11 % (with fat LTO).
* | Add env filter to tracing subscriberAlex Auvolat2022-08-311-0/+1
| |
* | Tracing-subscriber: write to stderrAlex Auvolat2022-08-311-1/+3
| |
* | Replace logging crate pretty_env_logger by tracing_subscriber::fmtAlex Auvolat2022-08-311-1/+1
|/
* Configure structopt to report the right versionv0.7.2_ci-test-2bug/reported-versionQuentin Dufour2022-08-111-1/+2
| | | | | | | | | | By default, structopt reports the value provided by the env var CARGO_PKG_VERSION, feeded by Cargo when reading Cargo.toml. However for Garage we use a versioning based on git, so we often report a version that is behind the real version. In this commit, we create garage_util::version::garage() that reports the right version and configure all structopt subcommands to call this function instead of using the env var.
* improve internal item counter mechanisms and implement bucket quotas (#326)Alex2022-06-151-9/+9
| | | | | | | | | | | | | | | | - [x] Refactoring of internal counting API - [x] Repair procedure for counters (it's an offline procedure!!!) - [x] New counter for objects in buckets - [x] Add quotas to buckets struct - [x] Add CLI to manage bucket quotas - [x] Add admin API to manage bucket quotas - [x] Apply quotas by adding checks on put operations - [x] Proof-read Co-authored-by: Alex Auvolat <alex@adnab.me> Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/326 Co-authored-by: Alex <alex@adnab.me> Co-committed-by: Alex <alex@adnab.me>
* First version of admin API (#298)Alex2022-05-241-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | **Spec:** - [x] Start writing - [x] Specify all layout endpoints - [x] Specify all endpoints for operations on keys - [x] Specify all endpoints for operations on key/bucket permissions - [x] Specify all endpoints for operations on buckets - [x] Specify all endpoints for operations on bucket aliases View rendered spec at <https://git.deuxfleurs.fr/Deuxfleurs/garage/src/branch/admin-api/doc/drafts/admin-api.md> **Code:** - [x] Refactor code for admin api to use common api code that was created for K2V **General endpoints:** - [x] Metrics - [x] GetClusterStatus - [x] ConnectClusterNodes - [x] GetClusterLayout - [x] UpdateClusterLayout - [x] ApplyClusterLayout - [x] RevertClusterLayout **Key-related endpoints:** - [x] ListKeys - [x] CreateKey - [x] ImportKey - [x] GetKeyInfo - [x] UpdateKey - [x] DeleteKey **Bucket-related endpoints:** - [x] ListBuckets - [x] CreateBucket - [x] GetBucketInfo - [x] DeleteBucket - [x] PutBucketWebsite - [x] DeleteBucketWebsite **Operations on key/bucket permissions:** - [x] BucketAllowKey - [x] BucketDenyKey **Operations on bucket aliases:** - [x] GlobalAliasBucket - [x] GlobalUnaliasBucket - [x] LocalAliasBucket - [x] LocalUnaliasBucket **And also:** - [x] Separate error type for the admin API (this PR includes a quite big refactoring of error handling) - [x] Add management of website access - [ ] Check that nothing is missing wrt what can be done using the CLI - [ ] Improve formatting of the spec - [x] Make sure everyone is cool with the API design Fix #231 Fix #295 Co-authored-by: Alex Auvolat <alex@adnab.me> Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/298 Co-authored-by: Alex <alex@adnab.me> Co-committed-by: Alex <alex@adnab.me>
* Fix some new clippy lintsfix-resyncAlex Auvolat2022-03-141-1/+1
|
* Update to Netapp 0.4 which supports distributed tracingAlex Auvolat2022-03-141-2/+2
|
* Add tracing integration with opentelemetryAlex Auvolat2022-03-141-1/+1
|
* New buckets for 0.6.0: make bucket id a SK and not a HK, CLI updatesAlex Auvolat2022-01-041-2/+2
|
* Some movement of helper code and refactoring of error handlingAlex Auvolat2022-01-041-1/+7
|
* Improve how node roles are assigned in Garagev0.5-beta1Alex Auvolat2021-11-161-1/+3
| | | | | | | | | | | | | | | | | - change the terminology: the network configuration becomes the role table, the configuration of a nodes becomes a node's role - the modification of the role table takes place in two steps: first, changes are staged in a CRDT data structure. Then, once the user is happy with the changes, they can commit them all at once (or revert them). - update documentation - fix tests - implement smarter partition assignation algorithm This patch breaks the format of the network configuration: when migrating, the cluster will be in a state where no roles are assigned. All roles must be re-assigned and commited at once. This migration should not pose an issue.
* Add environment variables equivalents for some CLI options.Jill2021-11-031-3/+8
|
* CLI: default rpc_hostv0.4-rc1Alex Auvolat2021-10-261-5/+20
|
* Improve CLI, adapt tests, update documentationAlex Auvolat2021-10-251-22/+58
|
* Improvements to CLI and various fixes for netapp versionAlex Auvolat2021-10-221-2/+1
| | | | Discovery via consul, persist peer list to file
* First port of Garage to NetappAlex Auvolat2021-10-221-43/+28
|
* try parsing rpc-host command-line parameterTrinity Pointard2021-06-011-1/+10
|
* make most requested changesTrinity Pointard2021-04-271-2/+1
|
* document garage crateTrinity Pointard2021-04-271-1/+3
|
* cargo fmtAlex Auvolat2021-03-121-5/+5
|
* Refactor CLI and prettify CLI outpuAlex Auvolat2021-03-121-508/+28
|
* Implement garage stats to get info on node contentsAlex Auvolat2021-03-121-0/+18
|
* Rename n_tokens into capacityAlex Auvolat2021-03-101-10/+10
|
* Some refactoringAlex Auvolat2021-02-211-0/+1
|
* Start to implement Website CLIQuentin2020-12-141-0/+3
|
* WIP table migrationQuentin2020-12-121-4/+4
|
* CLI structureQuentin2020-12-101-0/+15
|
* Split code for modular compilationAlex Auvolat2020-04-241-0/+531