@@ -575,6 +575,43 @@ To verify you can connect to a repository, run \fBoltpverify -r\fR.
575575To create all schemas, run \fB oltpcreate \fR ; to drop all schemas expect the repository, run \fB oltpdrop \fR .
576576.P
577577To verify schemas are properly created, run \fB oltpverify -u \fR .
578+ .SH "REMOTE EXECUTION"
579+ Normally, all the background processes started by e.g. \fB oltprun \fR are started on the same single host.
580+ If that host is running out of CPU resources, you can prepare distribution of the processes to
581+ multiple servers.
582+ This is done by declaring a procedure named \fB rwlcall \fR taking a single integer argument.
583+ The argument provided will be a process number in the range from 2 until the value of the -n argument
584+ to \fB oltprun \fR .
585+ The process with process number 1 will always be started on the same host where \fB oltprun \fR is executed.
586+ The procedure must output exactly two lines that are setting sh variables named \fB rwlcall \fR
587+ and \fB rwlcallargs \fR .
588+ Those two will be used to start the actual background process.
589+ A sample declaration that will distribute the workload to three different hosts is the following:
590+ .P
591+ .nf
592+ procedure rwlcall(integer prno)
593+ is
594+ printline "rwlcall='ssh'";
595+ printf "rwlcallargs='-n -tt appsrv%02d.domain.tld /path/to/remoterwloadsim.bash'\\n "
596+ , prno%3+1;
597+ end rwlcall;
598+ .fi
599+ .P
600+ A template for the bash script \fB remoterwloadsim.bash \fR is found in the oltp directory of your
601+ rwloadsim distribution.
602+ It should be copied to all remote systems and modifed according to the instructions in
603+ the file, setting the proper environment to execute rwloadsim remotely.
604+ Note that remote execution is an experimental feature that may change in a later release.
605+ .P
606+ If the procedure is not declared, the following will be used
607+ .P
608+ .nf
609+ printline "rwlcall='rwloadsim'";
610+ printline "rwlcallargs=''";
611+ .fi
612+ .P
613+ implying rwloadsim will be started locally.
614+ This is always used for process number 1, as it must run locally.
578615.SH "UNDOCUMENTED PARAMETERS"
579616There are some extra parameters, that you can set in either your \fB key.rwl \fR file or using -i or -d on the
580617oltprun command line.
0 commit comments