Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Currently i am running squid in one single server for the internet access of the clients. due to increase of no of clients i need to more servers to handle the load.
now i want to load balance the proxy requests which coming to the squid server to all the servers because i cant change
proxy address in all clients.
It sounds like you might want to look into offloading other tasks from the squid proxy server to another machine instead of trying to add another squid server to the mix which will increase complications. Assuming that your internet connection is 100mbit or less, most dual core servers with dual port (int & ext) gigabit ethernet should do the trick just fine.
If you are still having bottlenecks, maybe the server really isn't the problem. Have you checked the server load at peak times and actually seen resources being maxed out?
Last edited by cyberdeath; 01-20-2011 at 12:02 AM.
If you are thinking of load balancer solution, it will more complicated and more expensive. How do you route your traffic to proxy server?
You told that you cannot change proxy server at client machines. What do you mean? Are they all manual configuration? Is it with domain name? like proxy.xxx.com
If your proxy has A record name, one thing you can do is you can try DNS round robin.
proxy.xxx.com -> 1.1.1.1 (your current proxy)
proxy.xxx.com -> 1.1.1.2 (your new proxy)
proxy.xxx.com -> 1.1.1.3 (your new proxy2)
That will minimum impact on your current infra and will offload to new servers.
Seem like your are trying to do major change. You are trying to take over your proxy server IP with load balancer.
You can do that with commercial appliance like F5 load balancer, you can also try with LVS - Linux virtual server. http://www.linux-vs.org/
Again, this may be bottleneck for your throughput.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.