Automatic Model Loading on Server Startup: Difference between revisions

From QPR ProcessAnalyzer Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
QPR ProcessAnalyzer models can be loaded automatically into the server memory, when QPR ProcessAnalyzer Server starts. Especially when models are large and loading takes a long time, it's beneficial to load the models beforehand. In the model JSON settings, when the '''LoadOnStartup''' property is set to '''true''', the model is loaded automatically during QPR ProcessAnalyzer Server startup. The JSON configuration is as follows:
QPR ProcessAnalyzer models can be loaded automatically into the server memory, when the server starts. Especially when models are large and loading takes a long time, it's useful to load the models beforehand. The automatic loading can be switched on in the Model properties in the '''Details''' tab by changing the '''Load on Startup''' setting.  
<pre>
{
  "LoadOnStartup": true,
  "CacheUsage": {
    "DropUnusedModelsAfter": "100.00:00:00",
    "DropUnusedFiltersAfter": "00:30:00"
  }
}
</pre>


Notes:
For models that are set to load automatically on server startup, you also need to set the '''Drop Unused Model After'' setting to a large value (as shown by the previous example), to make sure that it remains in the memory even if it's not used (e.g. ''100.00:00:00'').
* For models that are set to load automatically on server startup, you also need to set the ''CacheUsage/DropUnusedModelsAfter'' setting to a large value (as shown by the previous example), to make sure that it remains in the memory even if it's not used.
 
* It's possible to control how many models are loaded simultaneously at maximum, to limit how much server capacity the model loading can use. The default value is two models at the same time. To change this setting, see the [[PA_Configuration_database_table_in_QPR_ProcessAnalyzer|PA_Configuration table]]. This setting only affects the model loading on startup (not model loading initiated by users). If loading of a model fails, the loading just continues to the next model.
It's possible to control how many models are loaded simultaneously at maximum, to limit how much server capacity the model loading can use. The default value is two models at the same time. To change this setting, see the [[PA_Configuration_database_table_in_QPR_ProcessAnalyzer|PA_Configuration table]]. This setting only affects the model loading on startup (not model loading initiated by users). If loading of a model fails, the loading just continues to the next model.
* For the ''LoadOnStartup'' setting to work, [[Installing_QPR_ProcessAnalyzer_Server#IIS_Configuration|IIS configuration]] for the QPR ProcessAnalyzer Server need to be in place.
 
For the ''LoadOnStartup'' setting to work, [[Installing_QPR_ProcessAnalyzer_Server#IIS_Configuration|IIS configuration]] for the QPR ProcessAnalyzer Server need to be in place.


[[Category: QPR ProcessAnalyzer]]
[[Category: QPR ProcessAnalyzer]]

Revision as of 17:07, 1 October 2020

QPR ProcessAnalyzer models can be loaded automatically into the server memory, when the server starts. Especially when models are large and loading takes a long time, it's useful to load the models beforehand. The automatic loading can be switched on in the Model properties in the Details tab by changing the Load on Startup setting.

For models that are set to load automatically on server startup, you also need to set the 'Drop Unused Model After setting to a large value (as shown by the previous example), to make sure that it remains in the memory even if it's not used (e.g. 100.00:00:00).

It's possible to control how many models are loaded simultaneously at maximum, to limit how much server capacity the model loading can use. The default value is two models at the same time. To change this setting, see the PA_Configuration table. This setting only affects the model loading on startup (not model loading initiated by users). If loading of a model fails, the loading just continues to the next model.

For the LoadOnStartup setting to work, IIS configuration for the QPR ProcessAnalyzer Server need to be in place.