25.06.2015 Views

Administering Platform LSF - SAS

Administering Platform LSF - SAS

Administering Platform LSF - SAS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Chapter 33<br />

Running Interactive and Remote Tasks<br />

Load Sharing X Applications<br />

Starting an xterm<br />

xterm on a PC<br />

If you are using the X Window System, you can start an xterm that opens a<br />

shell session on the least loaded host by entering:<br />

% lsrun sh -c xterm &<br />

The & in this command line is important as it frees resources on the host once<br />

xterm is running, by running the X terminal in the background.<br />

In this example, no processes are left running on the local host. The lsrun<br />

command exits as soon as xterm starts, and the xterm on the remote host<br />

connects directly to the X server on the local host.<br />

Each X application makes a separate network connection to the X display on<br />

the user's desktop. The application generally gets the information about the<br />

display from the DISPLAY environment variable.<br />

X-based systems such as eXceed start applications by making a remote shell<br />

connection to the UNIX server, setting the DISPLAY environment variable, and<br />

then invoking the X application. Once the application starts, it makes its own<br />

connection to the display and the initial remote shell is no longer needed.<br />

This approach can be extended to allow load sharing of remote applications.<br />

The client software running on the X display host makes a remote shell<br />

connection to any server host in the <strong>LSF</strong> cluster. Instead of running the X<br />

application directly, the client invokes a script that uses <strong>LSF</strong> to select the best<br />

available host and starts the application on that host. Because the application<br />

then makes a direct connection to the display, all of the intermediate<br />

connections can be closed. The client software on the display host must select<br />

a host in the cluster to start the connection. You can choose an arbitrary host<br />

for this; once <strong>LSF</strong> selects the best host and starts the X application there, the<br />

initial host is no longer involved. There is no ongoing load on the initial host.<br />

Setting up an X terminal to start an X session on the least loaded host<br />

If you are using a PC as a desktop machine and are running an X Window<br />

server on your PC, then you can start an X session on the least loaded host.<br />

The following steps assume you are using Exceed from Hummingbird<br />

Communications. This procedure can be used to load share any X-based<br />

application.<br />

You can customize host selection by changing the resource requirements<br />

specified with -R "...". For example, a user could have several icons in the<br />

xterm program group: one called Best, another called Best_Sun, another<br />

Best_SGI.<br />

<strong>Administering</strong> <strong>Platform</strong> <strong>LSF</strong> 423

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

Saved successfully!

Ooh no, something went wrong!