DBD::Multi

Manage Multiple Data Sources with Failover and Load Balancing
Download

DBD::Multi Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Daniel J. Wright
  • Publisher web site:
  • http://search.cpan.org/~dwright/

DBD::Multi Tags


DBD::Multi Description

Manage Multiple Data Sources with Failover and Load Balancing DBD::Multi is a Perl module that manages multiple database connections for failovers and also simple load balancing. It acts as a proxy between your code and your database connections, transparently choosing a connection for each query, based on your preferences and present availability of the DB server.This module is intended for read-only operations (where some other application is being used to handle replication).This software does not prevent write operations from being executed. This is left up to the user. See "SUGGESTED USES" below for ideas.The interface is nearly the same as other DBI drivers with one notable exception.SYNOPSIS use DBI; my $other_dbh = DBI->connect(...); my $dbh = DBI->connect( 'dbi:Multi:', undef, undef, { dsns => , 10 => , 20 => , 30 => $other_dbh, 40 => sub { DBI->connect }, ], # optional failed_max => 1, # short credibility failed_expire => 60*60, # long memory timeout => 10, # time out connection attempts after 10 seconds. }); Requirements: · Perl


DBD::Multi Related Software