Distribution Server Features

In this section:

Authorized users should be aware of the following Distribution Server activities and features:

Distribution Server Startup

In this section:

During startup, the Distribution Server calls the IBFS system to obtain information about how to communicate with the WebFOCUS Repository. During the WebFOCUS Client installation, you can specify an existing SQL data source or choose to have WebFOCUS install and configure the Apache Derby SQL data source. If the Distribution Server cannot communicate with the Repository, it will not start. If the Distribution Server does not start, check the Distribution Server startup trace and log files for error messages.

Upon successful initialization, the Distribution Server checks for jobs that need to be recovered, as specified by the Recovery and Scanback parameters and jobs that need to run as specified by the NEXTRUNTIME value of each schedule.

Configuration Considerations When the Distribution Server is Installed Separately From the TIBCO WebFOCUS Client

When the ReportCaster Distribution Server is installed as a stand-alone server, on a machine that is separate from the WebFOCUS Client, you must perform additional manual steps to ensure that configuration changes made through the WebFOCUS Administration Console are available to ReportCaster. This is because the stand-alone Distribution Server does not have access to the WebFOCUS configuration files being updated by the console. This is especially important when configuring external security for WebFOCUS, since your ReportCaster jobs may not run properly if the Distribution Server is not using the same security settings as the WebFOCUS Client.

The recommended procedure is to make changes to WebFOCUS, as per the documentation, and then test them with a web browser. When the settings are verified, perform the following steps to ensure that the configuration is available to ReportCaster:

  1. Copy the webfocus.cfg file and the install.cfg file from the ..\ibi\WebFOCUS90\config directory to the ..\ibi\WebFOCUS90\config directory on the stand-alone Distribution Server machine.
  2. Copy the odin.cfg file from the ..\ibi\WebFOCUS90\client\wfc\etc directory to the ..\ibi\WebFOCUS90\client\wfc\etc directory on the stand-alone Distribution Server machine.
  3. Copy the cgivars1.wfs file from the ..\ibi\WebFOCUS90\client\wfc\etc directory to the ..\ibi\WebFOCUS90\client\wfc\etc directory on the stand-alone Distribution Server machine.
  4. Restart the Distribution Server and test the scheduled job behavior.

Recovery

Reference:

The purpose of the Recovery parameter in the ReportCaster Server Configuration tool is to recover jobs that were placed in the Distribution Server queue, but did not complete schedule execution processing. This could be due to the Distribution Server or Reporting Server being stopped. You can activate the recovery feature by setting Recovery to ON in the ReportCaster Server Configuration tool.

When you create a schedule and the Recovery parameter is set to ON, the RECOVERY field for the schedule is set to N in the BOTSCHED repository table. When the schedule is placed in the run queue, the RECOVERY field is set to Y. This means that if the Distribution Server becomes unavailable while the job is still in the queue, ReportCaster will recover the job when the Distribution Server becomes available, even if the Recovery parameter is set to OFF in the ReportCaster Server Configuration tool. After the job is run and all log records have been written, the RECOVERY field is set back to N.

Any job that is running because the Recovery parameter is set to ON runs only once. After the job is placed in the run queue, its NEXTRUNTIME is updated to the next time it should run after the current time. For example, if a job is scheduled to run hourly and the Distribution Server is unavailable for four hours, when the Distribution Server becomes available, the job will run only once and will resume running on an hourly basis thereafter.

Note:
  • The Recovery option works independently of the Scanback option. For more information about the Scanback option, see Scanback.
  • Only scheduled jobs can be recovered. Jobs that were submitted on demand cannot be recovered.

Reference: How Jobs Are Recovered

Scheduled jobs are recovered as follows:

  1. When you start the Distribution Server, it checks for Recovery ON in the ReportCaster configuration.
  2. If Recovery is set to ON, the Distribution Server reads all records from the BOTSCHED table whose RECOVERY field is set to Y and places them in the run queue, regardless of schedule information and NEXTRUNTIME value.
  3. The Distribution Server begins the process of polling and looking for jobs to run after having queued all the jobs whose RECOVERY field is set to Y.
  4. After the scheduled job is placed on the Distribution Server queue, its NEXTRUNTIME is updated to the next time it should run after the current time.

Note:

  • If the Recovery parameter is set to OFF, the Distribution Server modifies all jobs in the BOTSCHED table with a RECOVERY field value of Y to N. This turns recovery off for all jobs.
  • If the Recovery parameter is set back to ON, it is only activated for jobs whose NEXTRUNTIME is later than the time at which the Recovery parameter was set back to ON.

Scanback

In certain instances, the Distribution Server may be unavailable for a period of time. During this time, no scheduled jobs can run. By default, when the Distribution Server becomes available again, it searches for and runs all jobs with a next run time less than the current time and resets the next run time according to the next scheduled run time of the job. If the Distribution Server is unavailable for a long time, you may want to adjust this behavior. Using the Scanback parameter, you can run only those jobs found in a specified time period of the outage, or just reset the next run time of all unexecuted jobs without running them.

There are two Scanback parameters:

The Scanback Interval is active only when the Scanback Type is On. For more information, see Distribution Server Settings.

The Scanback Type parameter can have the following settings:

Note:

ReportCaster Server Configuration Tool

The ReportCaster Server Configuration tool is an administration tool that allows authorized users the ability to navigate through and change the various settings that define the ReportCaster configuration. For example, the polling interval for the Distribution Server can be changed and the Maximum Threads to control the number of connections available for each Reporting Server can be defined. The configuration settings are accessed from the Configuration tab in the ReportCaster Console.

For more information about ReportCaster configuration settings, see Configuring ReportCaster.

Distribution Server Failover and Workload Distribution

ReportCaster provides the ability to incorporate a backup Distribution Server, and to configure two or more Distribution Servers to share the work of executing scheduled jobs.