Delays are seen before the new deployments become available on TIBCO Spotfire Server Deployment and Packages UI

Delays are seen before the new deployments become available on TIBCO Spotfire Server Deployment and Packages UI

book

Article ID: KB0071343

calendar_today

Updated On:

Products Versions
Spotfire Server All versions

Description

On trying to deploy the Spotfire add-in package by using the command update-deployment a cache issue is seen and it takes 6mins-30mins(depending on the size of the sdn/spk file) in order to reflect the changes.
The update-deployment command takes around 1-2 mins to run but after that, it takes about 6-30 mins to see the changes.

Issue/Introduction

This article describes the cause for the delay seen before the new deployments become available on TIBCO Spotfire Server Deployment and Packages UI

Environment

All

Resolution

The reason for this delay when deploying through the command is that after the packages have been deployed the servers need to notice that this has happened.
For this, each server periodically polls the database, by default every five minutes. Once a server is aware of the new packages it needs to download those before they're available to clients.
So we observe this delay based on the size of the sdn/spk file.
 
The database polling interval by default is 5 minutes but this is configurable through the deployment.delay-between-refresh-minutes configuration property.

Here are the instructions:

1. Export the currently used configuration from the Spotfire database. 
2. To export, either login to the uiconfig.bat file (uiconfig.sh on Linux) which is located in the <Installation dir>\tomcat\spotfire-bin directory  OR  execute CLI command export-config  
3. Open exported server configuration from the given location in the text or XML editor and search for deployment
4. Change the value here in the below section as per your requirement.
  <deployment>
    <delay-between-refresh-minutes>5</delay-between-refresh-minutes>
     …
  </deployment>
5. Save the changes and import the configuration back to the database, either using the uiconfig tool or use the import-config command
6. Restart the Spotfire Server

Additional Information

Doc: export-config
Doc: import-config Doc: Manually editing the server configuration in an XML or text editor