GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  PLACK::MIDDLEWARE::PROXY::LOADBALANCER (3)

.ds Aq ’

NAME

Plack::Middleware::Proxy::LoadBalancer - Simple load balancer

CONTENTS

SYNOPSIS



  use Plack::Builder;
  use Plack::App::Proxy;

  builder {
    enable "Proxy::LoadBalancer", backends => [http://10.0.0.1:8080, http://10.0.0.1:8081];
    Plack::App::Proxy->new()->to_app;
  };



DESCRIPTION

Plack::Middleware::Proxy::LoadBalancer allow you to define several backends.

OPTIONS

backends


  enable "Proxy::LoadBalancer", backends => http://10.0.0.1:8080;



Or



  enable "Proxy::LoadBalancer", backends => [http://10.0.0.1:8080, http://10.0.0.1:8081];



Or



  enable "Proxy::LoadBalancer", backends => {http://10.0.0.1:8080 => 0.4, http://10.0.0.1:8081 => 0.5, http://10.0.0.1:8002 => 0.3};



More than one backend can be defined. Weight can be given to backends.

AUTHOR

Franck Cuny

SEE ALSO

Plack::App::Proxy
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 PLACK::MIDDLEWARE::PROXY::LOADBALANCER (3) 2012-10-10

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.