29.01.2013 Views

WebSphere Application Server V7.0: Concepts ... - IBM Redbooks

WebSphere Application Server V7.0: Concepts ... - IBM Redbooks

WebSphere Application Server V7.0: Concepts ... - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

In addition, be aware that the law of diminishing returns plays a role when using<br />

either vertical or horizontal scaling technique. The law of diminishing returns is<br />

an economics principle that states that if one factor of production is increased<br />

while all others remain constant, the overall returns will reach a peak and then<br />

begin to decrease. This law can be applied to scaling in computer systems as<br />

well. This law means that adding two additional processors will not necessarily<br />

grant you twice the processing capacity. Nor will adding two additional horizontal<br />

servers in the application server tier necessarily grant you twice the request<br />

serving capacity. Additional processing cycles are required to manage those<br />

additional resources. Although the degradation might be small, it is not a direct<br />

linear function of change in processing power to say that adding n additional<br />

machines will result in n times the throughput.<br />

Note: The benefit you get by adding resources depends on the hardware and<br />

operating system platform you are using.<br />

7.2.2 Scaling the system<br />

Examine the entire application environment to identify potential bottlenecks.<br />

Throwing additional resources into the environment without fully understanding<br />

what those resources are addressing can potentially worsen performance,<br />

maintainability and scalability. It is necessary to know the application<br />

environment, end-to-end, to identify the bottlenecks and ensure the appropriate<br />

response is timely.<br />

Network<br />

When scaling at the network layer, such as with firewalls or switches, the most<br />

common solution is vertical scaling. Network devices have processing capacity<br />

and use memory much like any other hardware resource. Adding additional<br />

hardware resources to a network device will increase the throughput of that<br />

device, which positively impacts the scaling of that device. For example, moving<br />

from 100 MBit to 1 GBit connections or even higher can significantly increase<br />

performance at the network layer.<br />

HTTP server<br />

When scaling at the Web server layer, the most typical solution is horizontal<br />

scaling. This means adding additional Web servers to the environment. To do so,<br />

load balancers must be used. Be careful when adding servers and make sure<br />

that the load balancer has adequate capacity, or adding the new Web servers will<br />

simply shift the bottleneck from the Web tier to the load balancing tier. Vertical<br />

scaling can be performed as well by adjusting HTTP tuning parameters, or by<br />

increasing memory or processors.<br />

Chapter 7. Performance, scalability, and high availability 233

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

Saved successfully!

Ooh no, something went wrong!