Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Perl Modules

    Replication::Recall::DBServer 1.14

    Download button

    No screenshots available
    Downloads: 196  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Ashish Gulhati | More programs
    Perl Artistic License / FREE
    August 4th, 2010, 15:45 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Replication::Recall::DBServer description

    Database replication server

    Replication::Recall::DBServer is a Perl module that interfaces to Recall, a data replication library written by Eric Newton, to enable the setup of replicated database servers.

    Recall is based on a data replication algorithm developed at DEC's SRC for the Echo filesystem. It implements a fast protocol with low network overhead and guranteed fault tolerance as long as n of 2n-1 replica nodes are up.

    The Replication::Recall::DBServer module provides the functionality needed to set up replication servers to be accessed through the DBD::Recall module.

    You'll probably need root access, or at least access to restart your database server, to make this work properly. You probably don't want to use the same database server to host databases other than the replicated one because Replication::Recall::DBServer will stop and restart the server during replica recovery.

    Further - if you want to use Replication::Recall::DBServer with PostgreSQL, you'll definitely have to dedicate an entire PostgreSQL "database system" to the replicated database. This is necessary because PostgreSQL maintains unique object identifiers across an entire database system, which can't be kept consistent across replicas otherwise.

    It's a good idea to never access or update replicas without going through the replication system, or you may end up with lost or inconsistent data, unless you really know what you're doing.

    Developer comments

    I've only tried Replication::Recall::DBServer with MySQL so far on Debian GNU/Linux. If you get it to work with another database engine or on another operating system, please email me about your experiences so I can include information about your platform in future releases.

    SYNOPSIS

     use Replication::Recall::DBServer;

     my $port = 8500;

     my $server = new Replication::Recall::DBServer
     ( Replicas => ["192.168.1.1:$port",
     "192.168.1.2:$port",
     "192.168.1.3:$port"],

     DSN => 'DBI:mysql:database=replica1;host=localhost;port=',

     StopServer => sub { system ('mysqladmin','shutdown') },

     StartServer => sub { system ('start-stop-daemon',
     '--start', '-b', '-x',
     '/usr/bin/safe_mysqld') },

     SyncPath => '/var/lib/mysql/replica1/',
     SyncCmd => 'ssh -l mysql',
     Debug => 1
     );

     unless (fork) { $server->run() }
     wait();



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    database replication | database server | Perl module | database | replication | server

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM