aboutsummaryrefslogtreecommitdiff
path: root/src/model/Cargo.toml
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'main' into nextv0.9.0-beta1Alex Auvolat2023-08-291-1/+1
|\
| * bump version to 0.8.3v0.8.3-rc1Alex Auvolat2023-08-281-1/+1
| |
* | Mark sled as deprecated, make lmdb default, and improve sqlite and lmdb defaultsAlex Auvolat2023-05-171-1/+1
|/
* Declare garage crates using workspace.dependenciesJakub Jirutka2023-05-091-5/+5
| | | | | | | | This will allow to really disable "sled" feature without declaring `default-features = false` in every Cargo.toml where garage_db and garage_model is used. See https://doc.rust-lang.org/cargo/reference/workspaces.html#the-dependencies-table
* Prepare for v0.8.2Alex Auvolat2023-03-131-6/+6
|
* Cargo.toml: Loosen tracing dependency to just 0.1.Jonathan Davies2023-01-261-1/+1
|
* {model,util}/Cargo.toml: Updated blake2 from 0.9 to 0.10.Jonathan Davies2023-01-261-1/+1
|
* Cargo.toml: Updated base64 from 0.13 to 0.21.Jonathan Davies2023-01-261-1/+1
|
* Cargo.toml: Updated zstd from 0.9 to 0.12.Jonathan Davies2023-01-231-1/+1
|
* Make it explicit when using nonversioned encodingAlex Auvolat2023-01-031-1/+0
|
* Bump everything to v0.8.1Alex Auvolat2023-01-021-6/+6
|
* Add sled default in garage_model alsoAlex Auvolat2022-11-211-1/+2
|
* Use netapp 0.5 published from crates.ioAlex Auvolat2022-09-131-2/+1
|
* Merge branch 'lx-perf-improvements' into netapp-stream-bodyAlex Auvolat2022-09-081-6/+8
|\
| * Move version back into utilimprove-depsAlex Auvolat2022-09-071-2/+0
| |
| * Report build features in garage --helpAlex Auvolat2022-09-071-0/+1
| |
| * Move GIT_VERSION injection later in build chain to reduce build timesAlex Auvolat2022-09-071-0/+1
| |
| * Include code from v0.5.1 directly to remove dependenciesAlex Auvolat2022-09-061-1/+0
| |
| * Make all DB engines optional build featuresAlex Auvolat2022-09-061-0/+3
| |
| * Bump versions to 0.8.0 (compatibility is broken already)Alex Auvolat2022-09-061-5/+5
| |
* | update netapp to 0.5Alex Auvolat2022-07-291-1/+1
| |
* | First adaptation to WIP netapp with streaming bodyAlex Auvolat2022-07-291-3/+2
|/
* Abstract database behind generic interface and implement alternative drivers ↵Alex2022-06-081-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#322) - [x] Design interface - [x] Implement Sled backend - [x] Re-implement the SledCountedTree hack ~~on Sled backend~~ on all backends (i.e. over the abstraction) - [x] Convert Garage code to use generic interface - [x] Proof-read converted Garage code - [ ] Test everything well - [x] Implement sqlite backend - [x] Implement LMDB backend - [ ] (Implement Persy backend?) - [ ] (Implement other backends? (like RocksDB, ...)) - [x] Implement backend choice in config file and garage server module - [x] Add CLI for converting between DB formats - Exploit the new interface to put more things in transactions - [x] `.updated()` trigger on Garage tables Fix #284 **Bugs** - [x] When exporting sqlite, trees iterate empty?? - [x] LMDB doesn't work **Known issues for various back-ends** - Sled: - Eats all my RAM and also all my disk space - `.len()` has to traverse the whole table - Is actually quite slow on some operations - And is actually pretty bad code... - Sqlite: - Requires a lock to be taken on all operations. The lock is also taken when iterating on a table with `.iter()`, and the lock isn't released until the iterator is dropped. This means that we must be VERY carefull to not do anything else inside a `.iter()` loop or else we will have a deadlock! Most such cases have been eliminated from the Garage codebase, but there might still be some that remain. If your Garage-over-Sqlite seems to hang/freeze, this is the reason. - (adapter uses a bunch of unsafe code) - Heed (LMDB): - Not suited for 32-bit machines as it has to map the whole DB in memory. - (adpater uses a tiny bit of unsafe code) **My recommendation:** avoid 32-bit machines and use LMDB as much as possible. **Converting databases** is actually quite easy. For example from Sled to LMDB: ```bash cd src/db cargo run --features cli --bin convert -- -i path/to/garage/meta/db -a sled -o path/to/garage/meta/db.lmdb -b lmdb ``` Then, just add this to your `config.toml`: ```toml db_engine = "lmdb" ``` Co-authored-by: Alex Auvolat <alex@adnab.me> Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/322 Co-authored-by: Alex <alex@adnab.me> Co-committed-by: Alex <alex@adnab.me>
* First implementation of K2V (#293)Alex2022-05-101-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | **Specification:** View spec at [this URL](https://git.deuxfleurs.fr/Deuxfleurs/garage/src/branch/k2v/doc/drafts/k2v-spec.md) - [x] Specify the structure of K2V triples - [x] Specify the DVVS format used for causality detection - [x] Specify the K2V index (just a counter of number of values per partition key) - [x] Specify single-item endpoints: ReadItem, InsertItem, DeleteItem - [x] Specify index endpoint: ReadIndex - [x] Specify multi-item endpoints: InsertBatch, ReadBatch, DeleteBatch - [x] Move to JSON objects instead of tuples - [x] Specify endpoints for polling for updates on single values (PollItem) **Implementation:** - [x] Table for K2V items, causal contexts - [x] Indexing mechanism and table for K2V index - [x] Make API handlers a bit more generic - [x] K2V API endpoint - [x] K2V API router - [x] ReadItem - [x] InsertItem - [x] DeleteItem - [x] PollItem - [x] ReadIndex - [x] InsertBatch - [x] ReadBatch - [x] DeleteBatch **Testing:** - [x] Just a simple Python script that does some requests to check visually that things are going right (does not contain parsing of results or assertions on returned values) - [x] Actual tests: - [x] Adapt testing framework - [x] Simple test with InsertItem + ReadItem - [x] Test with several Insert/Read/DeleteItem + ReadIndex - [x] Test all combinations of return formats for ReadItem - [x] Test with ReadBatch, InsertBatch, DeleteBatch - [x] Test with PollItem - [x] Test error codes - [ ] Fix most broken stuff - [x] test PollItem broken randomly - [x] when invalid causality tokens are given, errors should be 4xx not 5xx **Improvements:** - [x] Descending range queries - [x] Specify - [x] Implement - [x] Add test - [x] Batch updates to index counter - [x] Put K2V behind `k2v` feature flag Co-authored-by: Alex Auvolat <alex@adnab.me> Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/293 Co-authored-by: Alex <alex@adnab.me> Co-committed-by: Alex <alex@adnab.me>
* Update to netapp 0.4.2 (a tiny fix)Alex Auvolat2022-04-071-1/+1
|
* Move block manager to separate moduleAlex Auvolat2022-03-231-0/+1
|
* Update netapp to v0.4.1update-netappAlex Auvolat2022-03-151-1/+1
|
* Bump version to 0.7 because of incompatible NetappAlex Auvolat2022-03-141-4/+4
|
* Update to Netapp 0.4 which supports distributed tracingAlex Auvolat2022-03-141-1/+2
|
* Add tracing integration with opentelemetryAlex Auvolat2022-03-141-1/+1
|
* Add many metrics in table/ and rpc/Alex Auvolat2022-03-141-0/+1
|
* Some movement of helper code and refactoring of error handlingAlex Auvolat2022-01-041-0/+1
|
* New buckets for 0.6.0: migration code and build filesAlex Auvolat2022-01-041-1/+1
|
* New model for bucketsAlex Auvolat2022-01-041-4/+5
|
* Add compression using zstd (#173)trinity-1686a2021-12-151-0/+1
| | | | | | | | | fix #27 Co-authored-by: Trinity Pointard <trinity.pointard@gmail.com> Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/173 Co-authored-by: trinity-1686a <trinity.pointard@gmail.com> Co-committed-by: trinity-1686a <trinity.pointard@gmail.com>
* Improve how node roles are assigned in Garagev0.5-beta1Alex Auvolat2021-11-161-4/+5
| | | | | | | | | | | | | | | | | - 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.
* Use published netapp crate instead of git repoAlex Auvolat2021-10-261-1/+2
|
* First port of Garage to NetappAlex Auvolat2021-10-221-4/+7
|
* Prepare for v0.3.0 and add migration path from v0.2.1.xv0.3.0Alex Auvolat2021-05-281-4/+4
|
* update to v0.2.1v0.2.1release-v0.2.1Alex Auvolat2021-03-191-4/+4
|
* Update Cargo.toml files with AGPL license infov0.2.0Alex Auvolat2021-03-181-4/+4
|
* Prepare for release 0.2Alex Auvolat2021-03-181-4/+4
|
* Update dependenciesAlex Auvolat2021-03-161-7/+4
|
* WIP migrate to tokio 1Alex Auvolat2021-03-151-2/+1
|
* Remove migration paths from 0.1 branchAlex Auvolat2021-03-101-1/+0
|
* Update sled & try to debug deadlock (but its in sled...)Alex Auvolat2021-02-231-1/+1
|
* Use 0.1.0b instead of 0.1.0 (for compatibility with new Error type)Alex Auvolat2021-01-151-1/+1
|
* Bump everything to 0.1.1Alex Auvolat2021-01-151-2/+2
|
* Add support for model migrationsAlex Auvolat2020-07-081-2/+3
|
* Add versions to dependencies0.1.0Alex Auvolat2020-07-071-3/+3
|