Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    ResourcePool::LoadBalancer 1.0104

    Download button

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

    License / Price:

    Last Updated:

    Category:
    Markus Winand | More programs
    Perl Artistic License / FREE
    February 13th, 2008, 12:19 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    ResourcePool::LoadBalancer description

    ResourcePool::LoadBalancer is a load balancer across ResourcePool's.

    ResourcePool::LoadBalancer is a load balancer across ResourcePool's.

    SYNOPSIS

    use ResourcePool::LoadBalancer;

    my $loadbalancer = ResourcePool::LoadBalancer->new("key", MaxTry => 10);

    $loadbalancer->add_pool($some_ResourcePool);
    $loadbalancer->add_pool($some_other_ResourcePool);
    $loadbalancer->add_pool($third_ResourcePool);

    my $resource = $loadbalancer->get(); # get a resource from one pool
    # according to the policy
    #[...] # do something with $resource
    $loadbalancer->free($resource); # give it back to the pool

    $loadbalancer->fail($resource); # give back a failed resource

    The ResourcePool::LoadBalancer is a generic way to spread requests to different ResourcePool's to increase performance and/or availability.
    Besides the construction the interface of ResourcePool::LoadBalancer is the same as the interface of ResourcePool. This makes it very simple to change a program which uses ResourcePool to use the ResourcePool::LoadBalancer by just changing the construction (which is hopefully kept at a central point in your program).

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    load balancer | ResourcePool LoadBalancer | Perl module | ResourcePool | Load | Balancer

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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