aboutsummaryrefslogtreecommitdiff
path: root/src/model/Cargo.toml
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'main' into next-0.10Alex Auvolat2024-03-181-0/+1
|\
| * [db-snapshot] implement meta_auto_snapshot_intervalAlex Auvolat2024-03-151-0/+1
| |
| * [rel-0.9.3] Bump version to 0.9.3v0.9.3Alex Auvolat2024-03-041-1/+1
| |
| * [rel-0.9.2] Bump version to v0.9.2v0.9.2rel-0.9.2Alex Auvolat2024-03-011-1/+1
| |
* | [rm-sled] Remove the Sled database engineAlex Auvolat2024-03-081-2/+1
| |
* | [sse-c] Remove special case for Content-Type headersse-cAlex Auvolat2024-03-071-0/+1
| |
* | Merge branch 'main' into next-0.10Alex Auvolat2024-02-151-2/+1
|\|
| * [import-netapp] import Netapp code into Garage codebaseAlex Auvolat2024-02-151-2/+1
| |
* | Merge branch 'main' into next-0.10Alex Auvolat2024-02-131-20/+20
|\|
| * [dep-upgrade-202402] refactor dependencies: move all as workspace depsAlex Auvolat2024-02-051-20/+20
| |
| * Bump version to 0.9.1v0.9.1rel-v0.9.1Alex Auvolat2024-01-161-1/+1
| |
* | bump crate versions to 0.10.0v0.10.0-beta1Alex Auvolat2024-01-111-1/+1
|/
* bump version to v0.9.0v0.9.0nextAlex Auvolat2023-10-101-1/+1
|
* actually update rmp-serde to 1.1.2 for both garage and netapp dependency ↵v0.9.0-beta4Alex Auvolat2023-09-271-1/+1
| | | | (fix #629)
* Merge branch 'main' into nextAlex Auvolat2023-09-111-1/+1
|\
| * update version to 0.8.4v0.8.4hold-netapp-0.5.2Alex Auvolat2023-09-051-1/+1
| |
* | lifecycle worker: avoid building chrono's serde featureAlex Auvolat2023-08-301-1/+1
| |
* | use a NaiveDate in data model, it serializes to string (iso 8601 format)Alex Auvolat2023-08-301-0/+1
| |
* | 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
|