TIBCO Spotfire® Server and Environment - Installation and Administration

Enabling cached and precomputed data for scheduled update files

Disk caching and precomputations of data shorten the time it takes for a scheduled update file to reopen in a Spotfire Web Player after the Web Player is restarted. This feature is disabled by default. It is enabled at the service level by editing the Spotfire.Dxp.Worker.Web.config file for each installed web client service.

About this task

You then have the option of turning the feature off for individual files (see Disallowing cached and precomputed data in individual scheduled update files).

Procedure

  1. Open a command line and export the service configuration by using the export-service-config command.
  2. Open the Spotfire.Dxp.Worker.Web.config file in a text editor or XML editor and locate the following section. By default, the exported configuration file is saved to the <installation dir>\tomcat\spotfire-bin\config\root directory.
    <scheduledUpdates concurrentUpdates="2" updateIntervalSeconds="60">
            <forcedUpdate enabled="true" maximumRejectedUpdates="2"/>
            <cacheSettings enabled="false" path="" maxDiskSizeMb="0" maxAgeMinutes="1440"/>
          </scheduledUpdates>
  3. In the line <cacheSettings enabled="false" path="" maxDiskSizeMb="0" maxAgeMinutes="1440"/>, make these changes:
    • Set cacheSettings enabled to "true".
    • Set path to the path on disk where the data is to be stored.
    For information on the other settings, see Spotfire.Dxp.Worker.Web.config.
  4. Import the configuration back into Spotfire Server by using the import-service-config command.
  5. Assign the edited service configuration to the Spotfire Server by using the set-service-config command.
    Example:
    config set-service-config --service-id=6610a31b-1a2a-4497-b146-cee797f9b6a7
    Tip: Use the list-services command to obtain the service ID.