Le 18 févr. 2012 à 05:13, David Shrewsbury a écrit : > On Feb 17, 2012, at 8:41 PM, Daniel Nichter wrote: >> The big challenge in that list is slave which currently reads a config file. >> It should be possible to start Drizzle with slave enabled, but no config, >> and then config and connect to the master dynamically. After all, MySQL can >> dynamically re-connect to or change the master. I'm not sure if the slave >> code is amenable to this requirement, but it must be made amenable else >> replication will suffer a serious blow to usability. > > So the idea was that plugins would only be enabled based > on what the user needed. I don't think we ever intended to > match MySQL functionality straight out of the box. Leaner > and meaner and only what you need and whatnot... > > That said, the slave plugin cannot be turned on by default > since there are no mechanisms to dynamically add masters > or alter how it works other than through the slave config file. > There were plans to add more to it in the future to re-enable > some of the dynamic config features. But obviously we are not > quite there.
You're right, Dave. I suppose changing the master is not that frequent of a need. Plus, there are thornier technological issues like at which point in a new master should the slave beginning replicating events? That's solvable of course, but it nonetheless means we can't simply make the slave plugin dynamically re-read its config file. And if the master has none of the same schemas, that's going to cause havoc. So I retract my previous suggestion. The slave plugin should *require* a user config and does not have to be fully dynamic. As a side note, re: matching MySQL functionality: as far as I'm concerned, Drizzle is not MySQL and shouldn't even try to be. I cite MySQL as an example for things that were big wins there, like making more stuff dynamic. I also cite it as an example for things that were/still are a pita that, imho, Drizzle would do well to avoid as it "leaps forward". In this case, dynamic slave, I was too zealous. :-) -Daniel _______________________________________________ Mailing list: https://launchpad.net/~drizzle-discuss Post to : [email protected] Unsubscribe : https://launchpad.net/~drizzle-discuss More help : https://help.launchpad.net/ListHelp

