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