Evan Prodromou Evan Prodromou
  • Login
  • Public

    • Groups
    • Recent tags
    • Directory

Conversation

Notices

  1. Evan Prodromou Evan Prodromou

    It would be really nice if you could spin up a new empty #MySQL server, say "slave to this master", and it would sync data automatically.

    about a year ago from web at Montreal, Quebec, Canada
    • Evan Prodromou Evan Prodromou

      Having to take a server offline to set up a slave kinda defeats the purpose, y'know?

      about a year ago
    • kevingranade kevingranade

      @evan holy crap, you can't? I shouldn't be that surprised I guess, the kernel just added the ability to do the same with RAID volumes.

      about a year ago
    • Evan Prodromou Evan Prodromou kevingranade

      No, you have to freeze the master, do a data dump, save some obscure variables, install the data dump on the slave, and let it catch up.

      about a year ago
    • Evan Prodromou Evan Prodromou kevingranade

      ...and it still usually doesn't work.

      about a year ago
    • kevingranade kevingranade

      @evan I figured something like that was the alternative, but I also thought it supported live migration, wonder if it's being worked on.

      about a year ago
    • ciarang ciarang

      Yeah, I have to admit I last time I did that I had to do it three times before I got it right.

      about a year ago
    • Evan Prodromou Evan Prodromou kevingranade

      If you already have a slave, you can take it down, copy its files to another server, and start that server up again. It's still error prone.

      about a year ago
    • ciarang ciarang

      Also, once it's working don't forget to get Nagios to monitor the replication status (io status, sql status and seconds behind)

      about a year ago
    • Ryan Weal Ryan Weal

      and now we all know the thing that will ultimately kill MySQL when it is replaced with something that does this trick properly.

      about a year ago
    • gomerx gomerx

      Having wrestled with this myself lately I wondered if it were really that hard. Seems like a brittle hacked together system.

      about a year ago
    • Evan Prodromou Evan Prodromou gomerx

      @gomerx some of the new NoSQL systems are much more flexible.

      about a year ago
    • gomerx gomerx

      Yes, definitely. In my case converting our code to a NoSQL backend isn't going to happen any time soon.

      about a year ago
    • Evan Prodromou Evan Prodromou gomerx

      I'm trying to do it with our servers. It's pretty fun.

      about a year ago
    • mpr mpr

      @evan can't that be done with replication?

      about a year ago
    • Evan Prodromou Evan Prodromou mpr

      @mohanpram no. Replication requires that you set up a full data dump on the slave.

      about a year ago
    • mpr mpr

      @evan ah yes that it does, not what you are looking for :-)

      about a year ago
    • lxoliva lxoliva

      @evan if you run a full data dump of an empty server just after setting it up, does that not enable you to create slaves from it much later?

      about a year ago

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

Evan Prodromou is a microblogging service brought to you by Status.net. It runs the StatusNet microblogging software, version 1.1.0-release, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Evan Prodromou content and data are available under the Creative Commons Attribution 3.0 license.

Switch to mobile site layout.

Built in Montreal