I think Jordan and German had an interesting insight, or at least their comment made me think about this slightly differently, and I’m going to repeat it so it’s not lost in the discussion about zerocopy / sendfile. The CEP treats this as “move a live instance from one machine to another”. I know why the author wants to do this. If you think of it instead as “change backup/restore mechanism to be able to safely restore from a running instance”, you may end up with a cleaner abstraction that’s easier to think about (and may also be easier to generalize in clouds where you have other tools available ). I’m not familiar enough with the sidecar to know the state of orchestration for backup/restore, but “ensure the original source node isn’t running” , “migrate the config”, “choose and copy a snapshot” , maybe “forcibly exclude the original instance from the cluster” are all things the restore code is going to need to do anyway, and if restore doesn’t do that today, it seems like we can solve it once. Backup probably needs to be generalized to support many sources, too. Object storage is obvious (s3 download). Block storage is obvious (snapshot and reattach). Reading sstables from another sidecar seems reasonable, too. It accomplishes the original goal, in largely the same fashion, it just makes the logic reusable for other purposes? On Apr 19, 2024, at 5:52 PM, Dinesh Joshi <djo...@apache.org> wrote:
|
- Re: [DISCUSS] CEP-40: Data Transfer Using... Dinesh Joshi
- Re: [DISCUSS] CEP-40: Data Transfer Using Cass... Ariel Weisberg
- Re: [DISCUSS] CEP-40: Data Transfer Using... Jon Haddad
- Re: [DISCUSS] CEP-40: Data Transfer U... Jon Haddad
- Re: [DISCUSS] CEP-40: Data Transf... Francisco Guerrero
- Re: [DISCUSS] CEP-40: Data Tr... Jordan West
- Re: [DISCUSS] CEP-40: Da... C. Scott Andreas
- Re: [DISCUSS] CEP-40... Jon Haddad
- Re: [DISCUSS] CEP-40... Dinesh Joshi
- Re: [DISCUSS] CEP-40: Data Transfer Using... Dinesh Joshi
- Re: [DISCUSS] CEP-40: Data Transfer U... Jeff Jirsa
- Re: [DISCUSS] CEP-40: Data Transf... Jon Haddad
- Re: [DISCUSS] CEP-40: Data Tr... Jordan West
- Re: [DISCUSS] CEP-40: Da... Slater, Ben via dev
- Re: [DISCUSS] CEP-40... Venkata Hari Krishna Nukala
- Re: [DISCUSS] CEP-40... Patrick McFadin
- Re: [DISCUSS] CEP-40... Venkata Hari Krishna Nukala
- Re: [DISCUSS] CEP-40... Josh McKenzie
- Re: [DISCUSS] CEP-40... Francisco Guerrero
- Re: [DISCUSS] CEP-40... Dinesh Joshi
- Re: [DISCUSS] CEP-40... Venkata Hari Krishna Nukala