Go backward to 3 Programming Interface Go up to Top Go forward to 5 Implementation |
When dist[initialize](...)
is called, the Maple kernel starts the
Java scheduler dist.Scheduler and establishes a permanent connection to
this process. The scheduler reads the file dist.systems which contains
a list of entries of the following forms separated by empty lines:
key starter scheduler command initializer speed maxload minload
The fields have the following interpretation:
rsh
).
java
dist.Scheduler
with some -classpath
option).
maple -q
).
If you don't know better, use 0 in this place.
If you don't know better, use 0 in this place.
The configuration file must contain an entry whose key is localhost
. In
this entry only the fields scheduler and command are of relevance;
they are used for the creation of additional kernels on the
local host.
An alternative form of the starter/scheduler field may be used as well:
Below you see some sample entries of dist.systems, once with a remote
startup command (rsh
) once with a port number (9966
):
solaris rsh java -classpath /usr/local/lib/jdk/lib/classes.zip:/home/info/www/ software/distmaple dist.Scheduler maple -q `dist/isclient` := true: read `/home/info/www/software/distmaple/ dist.maple`: 1 1 0 solaris2 9966 mypasswd maple -q `dist/isclient` := true: read `/home/info/www/software/distmaple/ dist.maple`: 1 1 0
The second form assumes that on a machine of kind solaris2
a connection
server (see the next section) is running, started by e.g.
java dist.Scheduler server 9966 "java dist.Scheduler" mypasswd
Tip: You can monitor the communication between a remote scheduler and its external application program by calling in the `command` field a wrapper script that copies the standard input respectively standard output of the application program to some files:
#!/bin/sh tee /tmp/maple.in.$$ | maple -q | tee /tmp/maple.out.$$