Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | layou: implement ack locking | Alex Auvolat | 2023-11-15 | 1 | -7/+2 |
| | |||||
* | layout: prepare for write sets | Alex Auvolat | 2023-11-14 | 1 | -1/+1 |
| | |||||
* | layout/sync: fix bugs and add tracing | Alex Auvolat | 2023-11-11 | 1 | -22/+38 |
| | |||||
* | table sync: adapt to new layout history | Alex Auvolat | 2023-11-11 | 1 | -106/+72 |
| | |||||
* | layout: refactor to use a RwLock on LayoutHistory | Alex Auvolat | 2023-11-09 | 1 | -11/+10 |
| | |||||
* | wip: split out layout management from System into separate LayoutManager | Alex Auvolat | 2023-11-09 | 1 | -5/+5 |
| | |||||
* | cluster layout: adapt all uses of ClusterLayout to LayoutHistory | Alex Auvolat | 2023-11-08 | 1 | -2/+2 |
| | |||||
* | avoid using layout_watch in System directly | Alex Auvolat | 2023-11-08 | 1 | -1/+1 |
| | |||||
* | remove Ring and use ClusterLayout everywhere | Alex Auvolat | 2023-11-08 | 1 | -10/+10 |
| | |||||
* | cargo fmt | Alex Auvolat | 2023-01-03 | 1 | -1/+1 |
| | |||||
* | move debug_serialize to garage_util::encode | Alex Auvolat | 2023-01-03 | 1 | -1/+1 |
| | |||||
* | Make it explicit when using nonversioned encoding | Alex Auvolat | 2023-01-03 | 1 | -1/+2 |
| | |||||
* | cleanup | Alex Auvolat | 2023-01-03 | 1 | -14/+6 |
| | |||||
* | Refactor how things are migrated | Alex Auvolat | 2023-01-03 | 1 | -3/+3 |
| | |||||
* | Simplified and more aggressive worker exit logic | Alex Auvolat | 2022-12-14 | 1 | -4/+1 |
| | |||||
* | Refactor background runner and get rid of job worker | Alex Auvolat | 2022-12-14 | 1 | -2/+2 |
| | |||||
* | Spawn all background workers in a separate step | Alex Auvolat | 2022-12-14 | 1 | -18/+25 |
| | |||||
* | Prettier worker list table; remove useless CLI log messages | Alex Auvolat | 2022-12-12 | 1 | -6/+4 |
| | |||||
* | Fix instant substractions that might have panickedfix-time | Alex Auvolat | 2022-09-29 | 1 | -1/+1 |
| | |||||
* | Merge branch 'main' into configurable-timeouts | Alex Auvolat | 2022-09-20 | 1 | -2/+2 |
|\ | |||||
| * | Change a warn! into a debug!less-noise | Alex Auvolat | 2022-09-20 | 1 | -2/+2 |
| | | |||||
* | | RPC performance changes | Alex Auvolat | 2022-09-19 | 1 | -12/+4 |
|/ | | | | | | - configurable ping timeout - single, much higher, configurable RPC timeout - no more concurrency semaphore | ||||
* | Less strict timeouts | Alex Auvolat | 2022-09-01 | 1 | -1/+2 |
| | |||||
* | Background task manager (#332) | Alex | 2022-07-08 | 1 | -106/+92 |
| | | | | | | | | | | | | | | | | | | | | | - [x] New background worker trait - [x] Adapt all current workers to use new API - [x] Command to list currently running workers, and whether they are active, idle, or dead - [x] Error reporting - Optimizations - [x] Merkle updater: several items per iteration - [ ] Use `tokio::task::spawn_blocking` where appropriate so that CPU-intensive tasks don't block other things going on - scrub: - [x] have only one worker with a channel to start/pause/cancel - [x] automatic scrub - [x] ability to view and change tranquility from CLI - [x] persistence of a few info - [ ] Testing Co-authored-by: Alex Auvolat <alex@adnab.me> Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/332 Co-authored-by: Alex <alex@adnab.me> Co-committed-by: Alex <alex@adnab.me> | ||||
* | Abstract database behind generic interface and implement alternative drivers ↵ | Alex | 2022-06-08 | 1 | -4/+12 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#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> | ||||
* | Add many metrics in table/ and rpc/ | Alex Auvolat | 2022-03-14 | 1 | -1/+31 |
| | |||||
* | Some movement of helper code and refactoring of error handling | Alex Auvolat | 2022-01-04 | 1 | -5/+2 |
| | |||||
* | Make table name a const in trait | Alex Auvolat | 2021-12-15 | 1 | -17/+25 |
| | |||||
* | Fix clippy lints (fix #121) | Alex Auvolat | 2021-10-26 | 1 | -2/+2 |
| | |||||
* | Improvements to CLI and various fixes for netapp version | Alex Auvolat | 2021-10-22 | 1 | -21/+15 |
| | | | | Discovery via consul, persist peer list to file | ||||
* | First port of Garage to Netapp | Alex Auvolat | 2021-10-22 | 1 | -38/+59 |
| | |||||
* | rename types to CamelCase | Trinity Pointard | 2021-05-03 | 1 | -23/+23 |
| | |||||
* | fix clippy warnings on table | Trinity Pointard | 2021-05-03 | 1 | -12/+11 |
| | |||||
* | Update dependencies | Alex Auvolat | 2021-03-16 | 1 | -11/+5 |
| | |||||
* | Simpler Merkle & sync | Alex Auvolat | 2021-03-16 | 1 | -97/+37 |
| | |||||
* | Refactor code | Alex Auvolat | 2021-03-16 | 1 | -27/+31 |
| | |||||
* | Simplify replication logic | Alex Auvolat | 2021-03-16 | 1 | -7/+4 |
| | |||||
* | Some improvements in background worker but we terminate late | Alex Auvolat | 2021-03-15 | 1 | -1/+1 |
| | |||||
* | WIP migrate to tokio 1 | Alex Auvolat | 2021-03-15 | 1 | -23/+12 |
| | |||||
* | Refactor block resync loop; make workers infaillible | Alex Auvolat | 2021-03-15 | 1 | -6/+4 |
| | |||||
* | cargo fmt | Alex Auvolat | 2021-03-12 | 1 | -4/+7 |
| | |||||
* | Implement table gc, currently for block_ref and version only | Alex Auvolat | 2021-03-12 | 1 | -12/+6 |
| | |||||
* | Move table rpc client out of tableaux | Alex Auvolat | 2021-03-12 | 1 | -3/+3 |
| | |||||
* | Make syncer have its own rpc client/server | Alex Auvolat | 2021-03-12 | 1 | -23/+58 |
| | |||||
* | Don't sync at beginning | Alex Auvolat | 2021-03-12 | 1 | -3/+7 |
| | |||||
* | Fix merkle updater not being notified; improved logging | Alex Auvolat | 2021-03-12 | 1 | -6/+7 |
| | |||||
* | whoops | Alex Auvolat | 2021-03-11 | 1 | -1/+9 |
| | |||||
* | More security: don't delete stuff too easily | Alex Auvolat | 2021-03-11 | 1 | -0/+3 |
| | |||||
* | Add comment, and also whoops, this wasn't doing what we expected | Alex Auvolat | 2021-03-11 | 1 | -8/+14 |
| | |||||
* | Add a nice warning | Alex Auvolat | 2021-03-11 | 1 | -2/+5 |
| |