04.12.2012 Views

Windchill System Administrator's Guide

Windchill System Administrator's Guide

Windchill System Administrator's 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.

Configuring a Method Server for Background Queues<br />

The <strong>Windchill</strong> property settings described below allow you to configure a<br />

separate method server dedicated to running background queues.<br />

The following wt.properties configuration start up two method servers. One is<br />

dedicated to running background queues:<br />

#Services to be monitored by the StandardServerMonitor<br />

wt.manager.monitor.services=MethodServer BackgroundMethodServer<br />

#Number of Servers to start<br />

wt.manager.monitor.start.MethodServer=1<br />

wt.manager.monitor.start.BackgroundMethodServer=1<br />

#Queue default execute setting<br />

wt.queue.executeQueues=false<br />

Background queues can also be grouped to execute on specific method servers;<br />

see the Configuring and Administering Background Queues chapter.<br />

Load Balancing for Multiple Method Servers<br />

Multiple method servers can be started on a single host to distribute and balance<br />

loads across multiple operating system processes. This may be beneficial if you<br />

are running a multiprocessor system that does not have native thread support.<br />

In a multiple method server environment, the default setup performs a simple<br />

round-robin balancing on initial client connections only. Load balancing takes the<br />

balancing idea one step further to the actual method call. This gives the method<br />

server the opportunity to switch servers on clients at the level of individual<br />

method calls if server load is excessive.<br />

Code changes are not required to use the load-balancing capabilities within<br />

<strong>Windchill</strong>. Properties within the wt.properties file control load-balancing<br />

behavior.<br />

Server Selection<br />

Selection of the next available server is performed by classes implementing the<br />

wt.manager.ServerSelector interface. <strong>Windchill</strong> provides the following two server<br />

selectors: StandardServerSelector and BalancedServerSelector.<br />

Setting wt.manager.serverSelector. specifies the server selector to<br />

be used (for example,<br />

wt.manager.serverSelector.MethodServer=wt.manager.BalancedServerSelector).<br />

The getServer(String service) and getNextServer(String service, Remote server)<br />

methods in the server selector interface deal with load balancing. The getServer()<br />

returns the server with which the client interacts upon initial connection. While,<br />

1-36 <strong>Windchill</strong> <strong>System</strong> Administrator’s <strong>Guide</strong>

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

Saved successfully!

Ooh no, something went wrong!