|
|
Using the HP 3000 Workload Manager: HP 3000 MPE/iX Computer Systems > Chapter 3 Creating WorkgroupsCreating a New Workgroup Configuration |
|
As you have seen, you use the NEWWG command to add a new workgroup to the current configuration. You can also use it to replace the existing set of workgroups with a new set. Substituting one workgroup configuration for another is useful when you can anticipate typical changes in the workload. For example, your system may run more efficiently if you introduce a new workgroup configuration at 6 p.m. on Friday afternoons (to accommodate the typical weekend workload) and then return to a “weekday configuration” at 9 a.m. Monday mornings. Or, for example, you may need a workgroup configuration that allocates more of the CPU to the finance department at the end of each month or each quarter, allowing them to produce critical reports in a timely manner. Replacing the current configuration requires that you perform some or all of the steps listed below. What is required in your specific situation depends upon your starting point and whether or not you are creating a new configuration (using the indirect file) for the first time.
Each of these steps is described in the next five sections. You can use the SHOWWG command with the WGFILE format to produce a complete description of the workgroups on your system. By redirecting the command output to a file (using CI I/O redirection), you can easily create an ASCII file that is suitable as input with the NEWWG command. To keep a copy of the current configuration, follow these steps:
You can edit the file so that it defines a new workgroup configuration. Or, you can keep it as a “backup copy” of the current configuration. Either way, you introduce these workgroups to the system by specifying the file on the NEWWG command line.
The file that you produce using the WGFILE format of the SHOWWG command will resemble the sample file shown on this page and the next.
Use the text editor you prefer to edit the configuration file that you produced from the SHOWWG command. Use the existing workgroup specifications as a guideline to add new workgroups to the file or make any necessary changes to the existing workgroups. While you are editing the configuration file, remember the following points:
To keep the modified configuration separate from the original file, save it with a unique file name. You may have occasion to restore the previous configuration, and it will be useful to have this information on hand, in the ASCII format required by the NEWWG command. When you use the VALIDATE option of the NEWWG command, the Workload Manager will check the indirect file for errors in syntax or semantics without changing the current configuration. This is a good way to pre-test the file, particularly if you have just created or edited it, since it allows you the opportunity to fix any problems before you actually need to reconfigure the workgroups on your system. To validate the indirect file without changing the configuration, enter:
Enter the name of your indirect file in place of filename. Also, be sure to precede the name with the caret ("^"), otherwise the Workload Manager will interpret the indirect file name as the name of a workgroup. The Workload Manager will check the indirect file for any errors and report them to you. To replace the existing configuration with a new one now, enter the NEWWG command and specify the indirect file that contains the new workgroup information on the command line. In this case, the syntax of the NEWWG command is:
Make certain that you precede the indirect file name with the caret ("^"), otherwise the CI will interpret the indirect file as the name of a workgroup. For example, to replace the existing configuration with the workgroups contained in the file weekend, enter:
This action is atomic, i.e., either all workgroups are created or, if there were syntax or semantic errors, none are. A system-wide scan is done after all workgroups are created to determine workgroup membership for all processes on the system.
Once you have created and validated an indirect file, you can schedule the introduction of the new workgroup at a specific time. To do so, you enter the NEWWG command in a job file, and then stream the job. Follow these steps:
You could also create a job that conditionally introduces a new workgroup configuration. For example, suppose you want to introduce a workgroup configuration that allocates a minimal amount of CPU to batch jobs, giving preference to your online data entry staff. However, suppose also that there was problem with the batch runs the night before, and they have not yet completed. In this case, you can create a job file that includes IF statements to check for a specified condition and, if it has been met, invokes the NEWWG command. |
|