Commit 64cae35
authored
Clean up legacy CDC logic (#11471)
Currently, there are two levels of CDC implementation. One is within the
pebble cache, acting underneath the storage layer to act as a more
efficient storage system, the other is remote cache application layer
logic in the CAS, built to be visible through the remote cache APIs.
Keeping this old implementation around has caused confusion, since the
flags are so similar.
The new implementation has been adjusted so that it adheres to:
-
bazelbuild/remote-apis@de5501d
-
bazelbuild/remote-apis@080cf12
-
bazelbuild/remote-apis@9ef19c6
Moving the CDC logic from pebble_cache -> CAS/ByteStream layer allows us
to make it distributed, so that if large files share chunks, we only
need to store the chunks once. It also means that clients can only
request specific chunks, rather than being required to also tell the
server which blob they are trying to reconstruct.1 parent 927c96e commit 64cae35
13 files changed
Lines changed: 357 additions & 1280 deletions
File tree
- enterprise
- server
- backends
- cache_config
- metacache
- migration_cache
- pebble_cache
- raft/metadata
- tools/mdload
- proto
- server/metrics
- tools/metrics/grafana/dashboards
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | 64 | | |
66 | 65 | | |
67 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
389 | | - | |
| 389 | + | |
390 | 390 | | |
391 | 391 | | |
392 | 392 | | |
| |||
403 | 403 | | |
404 | 404 | | |
405 | 405 | | |
406 | | - | |
407 | 406 | | |
408 | 407 | | |
409 | 408 | | |
| |||
478 | 477 | | |
479 | 478 | | |
480 | 479 | | |
481 | | - | |
| 480 | + | |
482 | 481 | | |
483 | 482 | | |
484 | 483 | | |
| |||
704 | 703 | | |
705 | 704 | | |
706 | 705 | | |
707 | | - | |
708 | | - | |
709 | | - | |
710 | | - | |
711 | | - | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
712 | 709 | | |
713 | 710 | | |
714 | 711 | | |
| |||
769 | 766 | | |
770 | 767 | | |
771 | 768 | | |
772 | | - | |
773 | | - | |
774 | | - | |
| 769 | + | |
775 | 770 | | |
776 | 771 | | |
777 | 772 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | | - | |
260 | 259 | | |
261 | 260 | | |
262 | 261 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
199 | 198 | | |
200 | 199 | | |
201 | 200 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
| |||
52 | 51 | | |
53 | 52 | | |
54 | 53 | | |
55 | | - | |
56 | 54 | | |
57 | 55 | | |
58 | 56 | | |
| |||
0 commit comments