Apple Mac OS X Server Version 10.4 or Later Manual do Utilizador Página 3

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 11
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 2
using the admin credentials. In the leftmost part of the window you will see your servers
name with an arrow (well, a triangle) to its left; if this arrow does not point downwards,
then click on it. Now you will see all the services that are, or could be provided by your
server. If you just installed your S10.4 with the above instructions, then Xgrid should
have a green disc next to it, indicating that it is running.
To set up Xgrid, click on Xgrid (highlighting it), then click on settings in the right
pane. Click on “Controller” and make sure that the “enable controller service” box is
checked. Set the client and agent passwords (e.g., client password: cls-client, and agent
password: cls-agent). The agent password is needed for agents to connect to the
controller offering their services, while the client password is needed to submit or
monitor jobs. Click on “Save” and you will be offered to restart the service (which offer
you cannot refuse). Once done, click on “Agent” and make sure that the “enable agent
service” is checked. Select the “use specific controller” option and choose your (already
running) server: mmac-servr00. Select “always” for “agent accepts tasks” (if the primary
purpose of your computers is to be a cluster). Click on “Save” and take the restart offer.
If you click on “Overview” you should see your own server acting as an agent. The easy
part is done.
Xgrid Admin is a graphical tool to monitor your Xgrid; you can find it under
“ApplicationsServerXgrid Admin” (do yourself a favor and drag it out to your
bottom toolbar). When you start it up it will try to connect as a client to your Xgrid, thus
you will need to select your controller “mmac-servr00” and enter the client password that
you have just set (e.g., cls-client). Now you will get a nice meter showing usage of your
cluster or you can check its capabilities. With this tool you can get status info on your
agents, on your jobs, or remove jobs or agents (removing connected agents will not
prevent them to reconnect automatically, for that you will have to stop their offering at
their local settings).
There is one last thing left (that you will need to do on all computers that you will
want to use to submit jobs from), that is to set some environment variables. Here we
assume that you are using bash (the default shell with OSX 10.4). Open a terminal
window, and edit the /etc/profile file in a superuser mode (e.g., by typing:
sudo emacs /etc/profile” you can save the file with the sequence: CTRL-X CTRL-
S and exit emacs with a
CTRL-X CTRL-C sequence). You need to add the following two
lines to /etc/profile:
export XGRID_CONTROLLER_HOSTNAME=mmac-servr00.local
export XGRID_CONTROLLER_PASSWORD=cls-client
obviously, with replacing the server name and the password to your own. From now
on when you start a terminal window these variables will all be set and you can easily
submit Xgrid jobs. (Note: 1. you can also put the above environmental variable
definitions in ~/.profile or ~/.bashrc which will only set them for the current user, and 2.
once you are editing /etc/profile, you may want to add “
:/usr/local/bin:.” To your
PATH). Close the terminal window and open a new one (so your new variables are
loaded). Type: “xgrid -grid list”; if your output is not something like: “{gridList =
(0);}” then check that you have entered the above
XGRID_* variables correctly (by editing
the corresponding file again, or by typing: “
set | grep XGRID”). You can now submit
jobs using the command line tool , e.g., “
xgrid –job submit prog_name”.
Vista de página 2
1 2 3 4 5 6 7 8 9 10 11

Comentários a estes Manuais

Sem comentários