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.

Load Sharing X Applications<br />

Setting up Exceed to log on the least loaded host<br />

To set up Exceed to log on to the least loaded host:<br />

1 Click the Xstart icon in the Exceed program group.<br />

2 Choose REXEC (TCP/IP, ...) as start method, program type is X window.<br />

3 Set the host to be any server host in your <strong>LSF</strong> cluster:<br />

lsrun -R "type==any order[cpu:mem:login]" lsbg xterm -sb -<br />

ls -display your_PC:0.0<br />

4 Set description to be Best.<br />

Starting an xterm in Exceed<br />

Examples<br />

5 Click the Install button in the Xstart window.<br />

This installs Best as an icon in the program group you chose (for example,<br />

xterm).<br />

The user can now log on to the best host by clicking Best in the Xterm<br />

program group.<br />

To start an xterm:<br />

◆ Double-click the Best icon.<br />

You will get an xterm started on the least loaded host in the cluster and<br />

displayed on your screen.<br />

Running any application on the least loaded host<br />

To run appY on the best machine licensed for it, you could set the command<br />

line in Exceed to be the following and set the description to appY:<br />

lsrun -R "type==any && appY order[mem:cpu]" sh -c "appY -display your_PC:0.0 &"<br />

You must make sure that all the UNIX servers licensed for appY are configured<br />

with the resource "appY". In this example, appY requires a lot of memory when<br />

there are embedded graphics, so we make "mem" the most important<br />

consideration in selecting the best host among the eligible servers.<br />

Starting an X session on the least loaded host in any X desktop environment<br />

The above approach also applies to other X desktop environments. In general,<br />

if you want to start an X session on the best host, run the following on an <strong>LSF</strong><br />

host:<br />

lsrun -R "resource_requirement" lsbg my_Xapp -display your_PC:0.0<br />

where<br />

resource_requirement is your resource requirement string<br />

424<br />

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

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

Saved successfully!

Ooh no, something went wrong!