WHY Replication???

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • JoeAley2003

    #1

    WHY Replication???

    Hi all...


    We system analysts need to trust on our database software. Once they
    crash, all of hard work will be lost.

    So, people says replication is a good way to keep your data safe.
    Let me present you my point.

    I am using a RedHat 9.0/Mysql with a Raid 1(Mirror) file system. In
    case of a file error, the software raid 1 will handle this problem and
    replication will not add any good.
    Another crash could be a MySql bug, and in this case the slave Mysql
    will crash too.
    So, why should i replicate???

    Remember it's a case of safe data, not fast response.

    I am just logging (bin-log) the changes made on database data. In
    case of crash, i will rebuild the database using this log.
    By the way, how can i rebuild the data using the log? What is the
    command?

    I think the log is recorded before the query is runned. This way, the
    log is complete safe. Am i right?

    One more qustion...

    Since the log will keep increasing, there is no way to check the
    logged querys runned all right and delete then from log? Does Mysql do
    this automatic?


    Thanks!
  • John Doherty

    #2
    Re: WHY Replication???

    In article <79d8d5b3.04081 20943.1096018a@ posting.google. com>,
    joealey2003@yah oo.com (JoeAley2003) wrote:

    [color=blue]
    > So, people says replication is a good way to keep your data safe.[/color]

    Well, I don't know anyone who says that, and I don't really agree.
    Replication is more of a way to ensure high availability than it is
    a way to "keep data safe."
    [color=blue]
    > Let me present you my point.
    >
    > I am using a RedHat 9.0/Mysql with a Raid 1(Mirror) file system. In
    > case of a file error, the software raid 1 will handle this problem and
    > replication will not add any good.[/color]

    True, but what if the machine's power supply fizzles out? What if
    the CPU fan dies and the systems shuts down because it overheats?
    Your data would be "safe," but it would also be inaccessible until
    the machine is repaired.

    If the databases were replicated on another machine, you could
    switch to using that one and keep right on running.
    [color=blue]
    > Remember it's a case of safe data, not fast response.[/color]

    Well, again, replication is more about high availability than it is
    about data safety.

    --

    Comment

    • Bill Karwin

      #3
      Re: WHY Replication???

      John Doherty wrote:
      [color=blue][color=green]
      >> So, people says replication is a good way to keep your data safe.[/color]
      >
      > Well, I don't know anyone who says that, and I don't really agree.
      > Replication is more of a way to ensure high availability than it is
      > a way to "keep data safe."[/color]

      I agree, and in general replication is used for redundancy.

      One of the things that redundancy can buy for you is high availability
      in case of scheduled or unscheduled downtime for a server. So in both
      cases of catastrophic failure and of planned maintenance, upgrade, etc.,
      there is benefit from a duplicate database being available.

      In cases of catastrophe, replication gives you a live instance of a
      database that is in sync with the one that crashed. It's like having a
      backup in progress continuously, and with virtually no time needed to
      restore it in case of crash.

      Redundancy can also be used for load-balancing. If you have multiple
      databases in sync with one another, and a need for a large volume of
      high-performance query response time, you can use various software or
      hardware methods to redirect requests to one server or the other. But
      the person with the question said that fast response time was not the
      highest priority in this case.

      Regards,
      Bill K.

      Comment

      Working...