x
login about faq Site discussion (meta-askssc)

Can I load balance two SQL Server instances?

I have an overloaded server. If I set up another instance on separate hardware, can I somehow load balance my clients among two servers?

more ▼

asked Nov 13 '09 at 09:18 PM in Default

Steve Jones - Editor gravatar image

Steve Jones - Editor ♦♦
5.1k 74 78 82

(comments are locked)
10|1200 characters needed characters left

7 answers: sort voted first

You can but you have to create your own load balancing tier code to sit in the middle. You could also use distributed partitioned views (strictly sharding rather than load balancing).

Or you could consider purchasing the PDW product when it comes out: http://www.microsoft.com/sqlserver/2008/en/us/parallel-data-warehouse.aspx

However, just because your server is overloaded doesn't mean you need to scale out of the box. Maybe a server upgrade or some database tuning would be a more cost effective way to solve the problem.

more ▼

answered Nov 14 '09 at 05:06 AM

David 1 gravatar image

David 1
1.8k 1 3

(comments are locked)
10|1200 characters needed characters left

I am not aware of any direct ways to do this, but you can certainly approximate it using replication, especially if at least some of the clients are read only.

Assuming some of your clients are read only, you can set up transactional replication between a Master Server(publisher) and one or more Reporting Servers(subscribers). Applications that need to write will write to the publisher, but the read only clients will interact with the Reporting Servers without putting any strain on the Master Server.

If all clients need to read and write you can set up something to accommodate that with merge replication, but that gets more nuanced and complicated quickly.

more ▼

answered Nov 14 '09 at 02:40 AM

TimothyAWiseman gravatar image

TimothyAWiseman
14.3k 17 20 29

(comments are locked)
10|1200 characters needed characters left

There is no true load balancing for SQL Server....yet, not that would allow you to send a client to > 1 SQL Server instances.

An "overloaded server" usually means not enough RAM or disk. Those can be dealt with in much easier ways, except for very large databases, with more RAM (64GB with Windows Server 2008 and 64-bit SQL Server) and advanced disk systems, spreading the load over multiple disks.

At the database architecture level, you could also implement:

  • Federated database servers
  • Partitioning
  • Various forms of replication
more ▼

answered Nov 14 '09 at 02:44 PM

Jim Orten gravatar image

Jim Orten
646 6 8 10

(comments are locked)
10|1200 characters needed characters left

You might consider new SSAS feature called scalable shared database. Read about this in Introduction to New Data Warehouse Scalability Features in SQL Server 2008

more ▼

answered Nov 14 '09 at 04:11 PM

Yuriy Rozhok gravatar image

Yuriy Rozhok
66

(comments are locked)
10|1200 characters needed characters left

Yes one can Loadbalance multiple SQL server instance with an Application Delivery controller / Load balancers Check out http://www.citrix.com/English/ps2/products/subfeature.asp?contentID=2309522

more ▼

answered Jul 28 '11 at 09:55 AM

speedster gravatar image

speedster
0

(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments



Facebook logo Follow Ask SSC on Facebook
Find Ask SSC on Google+
linkedin logo Find us on LinkedIn

Topics:

x220

asked: Nov 13 '09 at 09:18 PM

Seen: 9052 times

Last Updated: Nov 13 '09 at 09:18 PM

Copyright © 2002-2012 Simple Talk Publishing. All Rights Reserved. If you have any queries, please contact the site administrators.
Ask SQL Server Central is a community service provided by Red Gate.