Use the SET RANDOMIZE command to specify the degree to which start times are randomized within the startup window of each schedule for clients using the client-polling mode.
Each schedule has an associated window during which execution can begin. To balance network and server load, the start times for individual clients can be scattered across that window. You can use this command to specify the fraction of the window over which start times for individual clients are to be distributed. The randomization occurs at the beginning of the window to allow time for retries, if necessary, unless the client's first contact with the server is after the start time for the event.
Set the randomization percentage to a value greater than 0 to prevent communication errors that can result from a large group of clients contacting the server simultaneously. If you do experience communication errors, you can increase the randomization percentage so that client contact is spread out, thus decreasing the chance for communication overload and failure.
It is possible, especially after a client or the server has been restarted, that a client may not poll the server until after the beginning of the time window in which the next scheduled event is to start. In this case, the starting time is randomized over the specified percentage of the remaining duration of the start window.
For example, consider the following situation:
The nine clients that polled the server before the beginning of the startup window are assigned randomly selected starting times between 8:00 and 8:30. The client that polled at 8:30 receives randomly selected starting time that is between 8:30 and 8:45.
You can display the value for the schedule randomization percentage with the QUERY STATUS command. At installation, this value is set to 25 percent.
Privilege Class
To issue this command, you must have system privilege.
Syntax
>>-Set RANDomize--randomizepercent-----------------------------><
Parameters
A value of 0 indicates that no randomization occurs and that all clients execute the schedule at the beginning of the window. A value of 50 indicates that clients are assigned start times that are randomly scattered across the first half of the startup window.
At installation, this value is set to 25, indicating that the first 25 percent of the window is used for randomization.
If you have specified DURUNITS=INDEFINITE in the DEFINE SCHEDULE command, the percentage specified by the RANDOMIZEPERCENT parameter is regarded as a fraction of a one-day time period. That is, if the value for the RANDOMIZEPERCENT parameter is 25, a schedule with an indefinite window duration has start times scattered over a 6-hour time range (24 multiplied by 0.25).
Examples
Task
Set randomization to 50 percent.
Related Commands
Table 211. Commands Related to SET RANDOMIZE
| Command | Description |
|---|---|
| DEFINE SCHEDULE | Defines a schedule for a client operation or an administrative command. |
| QUERY STATUS | Displays the settings of server parameters, such as those selected by the SET commands. |
| SET SCHEDMODES | Specifies the central scheduling mode for the server. |