10.02.2013 Views

Progress Sonic ESB Configuration and Management Guide

Progress Sonic ESB Configuration and Management Guide

Progress Sonic ESB Configuration and Management Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 5: Using the Database Service JDBC Drivers<br />

Client Load Balancing<br />

Client load balancing helps distribute new connections to multiple servers in your<br />

environment so that no one server is overwhelmed with connection requests. When client<br />

load balancing is enabled, the order in which primary <strong>and</strong> alternate database servers are<br />

tried is r<strong>and</strong>om. For example, suppose that client load balancing is enabled as shown in<br />

Figure 1.<br />

<strong>Sonic</strong> Database Service<br />

Figure 1. Client Load Balancing Example<br />

In the example in Figure 1, when client load balancing is enabled the Database Service<br />

first attempts to connect to Database Server B (1). The Database Service then attempts a<br />

connection to Database Server C (2), followed by a connection attempt to Database<br />

Server A (3). In contrast, if client load balancing was not enabled in this scenario, each<br />

database server would be tried in sequential order, primary server first, then each alternate<br />

server based on their entry order in the alternate servers list.<br />

To use client load balancing, specify the following properties in the form property=value<br />

in your connection URL:<br />

● LoadBalancing — Set this property to true to enable load balancing.<br />

● AlternateServers — See “Specifying Primary <strong>and</strong> Alternate Servers” on page 135.<br />

131 <strong>Progress</strong> <strong>Sonic</strong> <strong>ESB</strong> <strong>Configuration</strong> <strong>and</strong> <strong>Management</strong> <strong>Guide</strong> 8.5<br />

3<br />

1<br />

2<br />

Database Server A<br />

(Primary)<br />

Database Server B<br />

(First Alternate)<br />

Database Server C<br />

(Second Alternate)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!