23.11.2014 Views

TIBCO Spotfire Server 3.2.2 - TIBCO Product Documentation

TIBCO Spotfire Server 3.2.2 - TIBCO Product Documentation

TIBCO Spotfire Server 3.2.2 - TIBCO Product Documentation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Load Balancing<br />

7.4 Load Balancer Configuration<br />

The load balancer needs to be configured so that it will be able to find and<br />

communicate with the <strong>Spotfire</strong> <strong>Server</strong>s.<br />

1 Install Apache httpd.<br />

2 Install the mod_jk module. Refer to the Apache httpd manual for instructions on how<br />

to do this.<br />

3 Add the following to workers.properties (you may need to create this file):<br />

# Define worker list<br />

# (All workers with additional exposed applications must also be added here,<br />

# and don't forget to add the corresponding JkMount option in mod_jk.conf!)<br />

worker.list=jkstatus, loadbalancer<br />

# Example: the /admin application on worker1 should be exposed through the load balancer<br />

#worker.list=jkstatus, loadbalancer, worker1<br />

# Set status<br />

worker.jkstatus.type=status<br />

# Set properties for the load balancer<br />

worker.loadbalancer.type=lb<br />

worker.loadbalancer.balance_workers=worker1, worker2<br />

worker.loadbalancer.sticky_session=true<br />

worker.loadbalancer.method=Session<br />

# Set properties for worker1 (ajp13)<br />

worker.worker1.type=ajp13<br />

worker.worker1.host=[<strong>Spotfire</strong><strong>Server</strong>1Hostname]<br />

worker.worker1.port=8009<br />

worker.worker1.max_packet_size=65536<br />

worker.worker1.lbfactor=1<br />

worker.worker1.route=[<strong>Spotfire</strong><strong>Server</strong>1Hostname]-srv<br />

# Set properties for worker2 (ajp13)<br />

worker.worker2.type=ajp13<br />

worker.worker2.host=[<strong>Spotfire</strong><strong>Server</strong>2Hostname]<br />

worker.worker2.port=8009<br />

worker.worker2.max_packet_size=65536<br />

worker.worker2.lbfactor=1<br />

worker.worker2.route=[<strong>Spotfire</strong><strong>Server</strong>2Hostname]-srv<br />

Change [<strong>Spotfire</strong><strong>Server</strong>1Hostname] to the hostname or IP address of your first<br />

<strong>Spotfire</strong> <strong>Server</strong>, [<strong>Spotfire</strong><strong>Server</strong>2Hostname] to the name of your second <strong>Spotfire</strong><br />

<strong>Server</strong>, and so forth.<br />

Note: The AJP route is automatically set to “[<strong>Spotfire</strong><strong>Server</strong>Hostname]-srv” on the<br />

<strong>Spotfire</strong> <strong>Server</strong> end at installation, that is the hostname of the server suffixed by “-<br />

srv”.<br />

4 Add the following to the mod_jk.conf file (you may need to create this file):<br />

60 (144) <strong>TIBCO</strong> <strong>Spotfire</strong>® <strong>Server</strong> <strong>3.2.2</strong>

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

Saved successfully!

Ooh no, something went wrong!