Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2566755
  • 博文数量: 709
  • 博客积分: 12251
  • 博客等级: 上将
  • 技术积分: 7905
  • 用 户 组: 普通用户
  • 注册时间: 2005-07-17 00:00
个人简介

实现有价值的IT服务

文章存档

2012年(7)

2011年(147)

2009年(3)

2008年(5)

2007年(74)

2006年(431)

2005年(42)

分类: 系统运维

2006-06-23 10:53:38

Load balancing

From ResinWiki


Resin documentation is at

Load balancing spreads the load among multiple backend Resin servers in a . A frontend Resin server proxies requests to the backend servers and sends the results to the clients.

We'll use 192.168.0.10 as the frontend machine and 192.168.0.20 through 192.168.0.28 as the backend machines.

The frontend server and the backend cluster have different configurations since they perform different roles.

Contents

[]

The Frontend Server

  1. dispatches requests to the backend servers, generally using sticky sessions
  2. acts as a for the backend cluster
  3. pools the proxy sockets for efficiency

== The Backend

  1. does the actual work: the database querying and form processing
  2. manages persistent sessions
[]

Frontend Configuration

The frontend needs to configure:

  1. The external HTTP and HTTPS ports its listening to
  2. The cluster-definition of the backend cluster
  3. A LoadBalanceServlet to dispatch requests to the backend
[]

frontend.conf


  
    

    
      15s

      
      
    

    

    
      
        
          
            backend
          
        

        
      
    
  

[]

Sharing Cluster configuration: cluster.xml and <>

Many sites will create a separate cluster.xml using resin's resin:import directive to share information between the frontend and backend:

[]

cluster.xml


  30s

  
  

In the frontend.conf, you'll replace the <> content with a <>

[]

frontend.xml


  ...
  
    
  
  ...

阅读(1566) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~