Sponsored Content
Full Discussion: HTTP load balancing.
Operating Systems Linux HTTP load balancing. Post 302542229 by chrisfb on Wednesday 27th of July 2011 04:26:54 AM
Old 07-27-2011
Hi Mark54g,

Thank you for your time. I've managed to do what I wanted yesterday but didn't have time to post back. Unfortunately I needed 2 pools - some servers are migrated to VM, some need to stay physical for time being. 2 different apps as well (luckily stateless so no need for stickiness). End of the day, very easy config.

For future reference, simplified config from apache:

Code:
<Proxy *>
    Order deny,allow
    Deny from all
    Allow from 10.100.0.0
</Proxy>


<Proxy balancer://app1>
BalancerMember http://10.10.10.1:80 ping=1
BalancerMember http://10.10.10.2:80 ping=1
</Proxy>

<Proxy balancer://app2>
BalancerMember http://10.10.10.3:80 ping=1
BalancerMember http://10.10.10.4:80 ping=1
</Proxy>


ProxyPass /v1 balancer://app1
ProxyPass /v2 balancer://app2

Hope that helps!
Chris
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Question about load balancing

If you have two or more servers load balancing, are the servers mirroring one another? If images, etc., are uploaded, will they be stored on all the servers so that if one server goes down, the images will be served up by another server? (1 Reply)
Discussion started by: wvmlt
1 Replies

2. Ubuntu

perlbal and load balancing

Hi guys, I wonder if someone would be able to assist with my problem. I have just set up a load balancer for a company I am working for. HTTP redirection is working fine, however they also want to load balance SSH and FTP too. At the moment the perlbal config looks like; CREATE POOL webhttp ... (1 Reply)
Discussion started by: JayC89
1 Replies

3. Solaris

Load balancing with IPMP

Is it possible to do a load balancing ( incoming and outgoing )with with IPMP in solaris 10 like sun trunking ? If yes what are the steps involved in it , i know how to do the failover IPMP both link based and probe based but i 'm looking for possible load balancing (3 Replies)
Discussion started by: fugitive
3 Replies

4. Web Development

Load Balancing in Apache

Hi All, I have one webserver which has an application for a set of internal users can be accessed by _http://server1.com I am planning to load balance this application. For that I have cloned this server and build a new one which can be accessed using _http://server2.com]Server2.com. Also i... (2 Replies)
Discussion started by: Tuxidow
2 Replies

5. IP Networking

SFTP Software Load Balancing

All, I am running some RHEL 5 SFTP servers and I need to load balance them. I am most likely having to do a software load balance. I tried it with Piranha, but I get a connection refused response after setting it up. Anyone have any experience with trying to load balance SSH/SFTP and... (0 Replies)
Discussion started by: markdjones82
0 Replies

6. Web Development

Resource based http load balancing

Hi all, I am looking for a solution to the following issue. Basically, we are going to be implementing a series of front end splunk search heads (basically IO intensive web servers). And wish to automatically redirect a new connection to the search head from the pool with most available... (0 Replies)
Discussion started by: STOIE
0 Replies

7. IP Networking

Load Balancing ppp

Hello everybody How can i Load Balance two slow ppp(gprs) connections with iptables . (4 Replies)
Discussion started by: rink
4 Replies

8. UNIX for Advanced & Expert Users

Help in MQ load balancing

Hi, Currently we have 3 old and 3 new servers catering to Live traffic. As my component move from legacy interfaces to MQ one, we want to have load balancing of old interfaces available on MQ interface as well. For this, we want to send only 30% of all MQ traffic on 3 OLD Live servers, and want... (1 Reply)
Discussion started by: senkerth
1 Replies

9. UNIX for Advanced & Expert Users

Load balancing in Autosys

Hi, I am working on development project where I have to migrate many jobs from Tidal to Autosys R11. During this project we came across the following requirements. 1. There are 3 real machines. There could be many jobs activated simultaneously, but only one job should execute at a time and... (0 Replies)
Discussion started by: sujeetp
0 Replies

10. Shell Programming and Scripting

Load Balancing in UNIX

Dear All, Can any one help me for this request? There is a case. I have 20 files which I need to FTP to 5 servers. I want to know if there is any possibility to make a load balancer which transfers files in round robin manner to 5 servers. As per theoretical algorithm, what I think, flow can... (9 Replies)
Discussion started by: Zaib
9 Replies
poolstat(1M)															      poolstat(1M)

NAME
poolstat - report active pool statistics SYNOPSIS
poolstat [-p pool-list] [-r rset-list] [interval [count]] poolstat [-p pool-list] [-o format -r rset-list] [interval [count]] The poolstat utility iteratively examines all active pools on the system. It reports statistics based on the selected output mode. poolstat provides options to examine only specified pools and report resource set-specific statistics. Without options, poolstat examines all pools, reports basic statistics for their resource sets, and exits. DISPLAY FORMATS In default output format, poolstat outputs a header line and a line for each pool. The line begins with the pool ID and its name, followed by a column of statistical data for the processor set attached to the pool. The columns are defined as follows: id Pool ID. pool Pool name. rid Resource set id. rset Resource set name. type Resource set type. min Minimum resource set size. max Maximum resource set size. size Current resource set size. used The measure of how much of the resource set is currently is use. This is calculated as the percentage utilization of the resource set multiplied by its size. If resource set has been reconfigured during last sampling interval, this value might be not reported (-). load The absolute representation of the load that is put on the resource set. For the definition of this property see libpool(3LIB). The following options are supported: -o format Report statistics according to the format specification given in format. See DISPLAY FORMATS. The -o option accepts lists as arguments. Items in a list can be either separated by commas or enclosed in quotes and sepa- rated by commas or spaces. You can specify multiple -o options. The format specification is interpreted as the whitespace separated concatenation of all the format option arguments. The -o option must be used in conjunction with the -r option. -p pool-list Report only pools whose names are in the given list. If the -r option is also used, this option selects only resource sets which belong to pools in the given list. Statistics for pools or resource sets are reported in the same order in which pool names are listed on the pool-list. Pool can be specified by name or by ID. The -p option accepts lists as arguments. Items in a pool-list can only be separated by spaces. -r rset-list Report resource set statistics. If the rset-list argument is "all", then all possible resource set types are selected. The -r option accepts lists as arguments. Items in a list can be either separated by commas or enclosed in quotes and sepa- rated by commas or spaces. The following resource set types are supported: all All resource set types pset Processor set The following operands are supported: count The number of times that the statistics are repeated. By default, poolstat reports statistics only once. If neither interval nor count are specified, statistics are reported once. If interval is specified and count is not, statistics are reported indefinitely. interval The sampling interval in seconds. If neither interval nor count are specified, statistics are reported once. If interval is specified and count is not, statistics are reported indefinitely. Example 1: Using poolstat The following example shows the default output from the poolstat utility: % poolstat pset id pool size used load 0 pool_default 4 3.6 6.2 1 pool_admin 4 3.3 8.4 Example 2: Reporting Resource Set Statistics The following example reports resource set statistics. % poolstat -r pset id pool type rid rset min max size used load 0 pool_default pset -1 pset_default 1 65K 2 1.2 8.3 1 pool_admin pset 1 pset_admin 1 1 1 0.4 5.2 2 pool_other pset -1 pset_default 1 65K 2 1.2 8.3 Resource sets attached to multiple pools, as pset_default in the example above, are listed multiple times, once for each pool. Example 3: Restricting the Output to the List of Pools The following example restricts the output to the list of pools % poolstat -p pool_default pset id pool size used load 0 pool_default 8 5.3 10.3 % poolstat -p 'pool_admin pool_default' pset id pool size used load 1 pool_admin 6 4.3 5.3 0 pool_default 2 1.9 2.0 % poolstat -r all -p 'pool_admin pool_default' id pool type rid rset min max size used load 1 pool_admin pset 1 pset_admin 1 1 1 0.9 2.3 2 pool_default pset -1 pset_default 1 65K 2 2.0 2.0 Example 4: Customizing Output The following example customizes output: % poolstat -r -o pool,rset,size,load pool rset size load pool_default pset_default 4 4.5 pool_admin pset_admin 4 2.1 The following exit values are returned: 0 Successful completion. 1 An error occurred. 2 Invalid command line options were specified. See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWpool | +-----------------------------+-----------------------------+ |Stability |Evolving | +-----------------------------+-----------------------------+ libpool(3LIB), attributes(5) The system ids associated with resources can change after the system reboots or the resource configuration is altered. 15 Feb 2005 poolstat(1M)
All times are GMT -4. The time now is 01:54 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy