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

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

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

You can also choose that EJB requests are preferably routed to the same host as<br />

the host of the requesting EJB client. In this case, only cluster members on that<br />

host are chosen (using the round-robin weight method). Cluster members on<br />

remote host are chosen only if a local server is not available.<br />

When planning for clustering, determine the number of application servers and<br />

their physical location. Determine the server weights to assign for application<br />

servers based on considerations such as system stability and speed. When<br />

creating the cluster, consider using the prefer local setting to ensure that when a<br />

client (for example, a servlet) calls an EJB, WLM will attempt to select the EJB on<br />

the same system as the client, eliminating network communication.<br />

7.4.5 Scheduling tasks<br />

<strong>WebSphere</strong> <strong>Application</strong> <strong>Server</strong> provides a Scheduler service that can be used to<br />

schedule actions to happen with the following frequencies:<br />

► Only once<br />

► Some time in the future<br />

► On a recurring basis<br />

► At regular intervals<br />

It can also receive notifications about task activity. Scheduler tasks can be stored<br />

in a relational database and can be executed for indefinite repetitions and long<br />

time periods. Scheduler tasks can be EJB-based tasks or they can be triggered<br />

using JMS.<br />

The Scheduler service can be a tool in workload management by scheduling<br />

maintenance tasks such as backups, cleanups, or batch processing during<br />

off-peak hours.<br />

When a task runs, it is executed in the work manager associated with the<br />

scheduler instance. You can control the number of actively running tasks at a<br />

given time by configuring schedulers with a specific work manager. The number<br />

of tasks that can run concurrently is set by the Number of alarm threads<br />

parameter on the work manager.<br />

Chapter 7. Performance, scalability, and high availability 245

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

Saved successfully!

Ooh no, something went wrong!