github / orchestrator-agent

MySQL replication topology manager - agent (daemon)
Apache License 2.0
55 stars 31 forks source link

Add support for xtrabackup, xtrabackup-stream, mydumper, mysqldump streaming methods for slave provisioning #21

Open MaxFedotov opened 6 years ago

MaxFedotov commented 6 years ago

All this changes are completely Backward compatible (except that for now we will need to add “lvm” param as seedMethod when we use “Seed” button on an agent page in Snapshots area) and won’t affect current agent and orchestrator workflow. 


In order to support this new seed methods, we can reuse part of the logic of current executeSeed function - divide backup\restore flow into finite operations and use UpdateSeedStateEntry function in order to track progress.

As a some type of draft, I suppose following scenarios for new seed methods:

Basic checks for all types of seed methods:

Draft for mysqldump/mydumper/xtrabackup:

Draft for xtrabackup-stream:

Also we will need to add these methods to agents page in orchestrator UI, but that’s the thing that I need to research a bit, because I’m not good at all in all this frontend-developers stuff :)

Do not forget to set 700 permissions for orchestrator-agent.conf.json in order to secure passwords

MaxFedotov commented 6 years ago

@shlomi-noach Hi Shlomi. Can you please take a look at this draft? Want to know your opinion and maybe some comments\critics before starting to implement it

colinmollenhour commented 5 years ago

What about the CLONE command added in 8.0.17? It seems this could greatly simplify orchestrator's slave provisioning even making it possible without the use of orchestrator-agent at all?

ronivay commented 2 years ago

Any updates on this? Would love to see said seed options being implemented.