The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > Linux > Ubuntu
.
google unix.com



Ubuntu Ubuntu is a complete desktop Linux operating system, freely available with both community and professional support.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
idea on hacmp load balancing itik AIX 2 06-26-2008 12:40 AM
Load balancing across network cards johnf AIX 4 10-26-2006 08:00 PM
Question about load balancing wvmlt UNIX for Dummies Questions & Answers 1 01-24-2005 07:28 PM
LOAD BALANCING (Experienced help needed) TRUEST UNIX for Dummies Questions & Answers 6 05-02-2003 10:53 AM
How can I use DNS Server to Load Balancing my Web Servers ?? ottobian UNIX for Advanced & Expert Users 1 09-01-2001 01:11 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-24-2009
JayC89 JayC89 is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 50
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;
Code:
CREATE POOL webhttp
  POOL webhttp ADD 192.168.0.103:80
  POOL webhttp ADD 192.168.0.104:80

CREATE SERVICE httpbalancer
  SET listen          = 192.168.0.99:80
  SET role            = reverse_proxy
  SET pool            = webhttp
  SET persist_client  = on
  SET persist_backend = on
  SET verify_backend  = on

ENABLE httpbalancer
However when I try to add SSH and FTP to this like so;
Code:
CREATE POOL webhttp
  POOL webhttp ADD 192.168.0.103:80
  POOL webhttp ADD 192.168.0.104:80

CREATE POOL webssh
  POOL webssh ADD 192.168.0.103:22
  POOL webssh ADD 192.168.0.104:22

CREATE POOL webftp
  POOL webftp ADD 192.168.0.103:21
  POOL webftp ADD 192.168.0.104:21

CREATE SERVICE httpbalancer
  SET listen          = 192.168.0.99:80
  SET role            = reverse_proxy
  SET pool            = webhttp
  SET persist_client  = on
  SET persist_backend = on
  SET verify_backend  = on

CREATE SERVICE sshbalancer
  SET listen          = 192.168.0.99:22
  SET role            = reverse_proxy
  SET pool            = webssh
  SET persist_client  = on
  SET persist_backend = on
  SET verify_backend  = on

CREATE SERVICE ftpbalancer
  SET listen          = 192.168.0.99:21
  SET role            = reverse_proxy
  SET pool            = webftp
  SET persist_client  = on
  SET persist_backend = on
  SET verify_backend  = on

ENABLE httpbalancer
ENABLE sshbalancer
ENABLE sshbalancer
I get this error when I try and restart perlbal

Quote:
root@loadbalancer2:/home/hostingadmin# perlbal --daemon
ERROR: Can't start service 'sshbalancer' on 192.168.0.99:22: Error creating list ening socket: IO::Socket::INET: Address already in use
Error starting up.
I cant seem to find much documentation of perlbal on the net so I wondered if anyone on here may be able to assist me?

Thanks, Jamie

Last edited by JayC89; 02-24-2009 at 01:50 PM..
  #2 (permalink)  
Old 03-05-2009
otheus's Avatar
otheus otheus is offline Forum Staff  
Moderator ala Mode
  
 

Join Date: Feb 2007
Location: Innsbruck, Austria
Posts: 1,884
Heh, port 22 probably already has SSH running on it. Run "netstat -anp |grep :22" to see if I'm correct.

By the way, looking at the perlbal documentation, it is not designed for non-HTTP protocols, so that you are trying absolutely won't work. It will also absolutely not work with FTP, unless you go through lots of tricks, because FTP just doesn't work this way.

Take a look at The Linux Virtual Server Project - Linux Server Cluster for Load Balancing
Sponsored Links
Closed Thread

Bookmarks

Tags
ftp, load balancing, ssh

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:00 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0