Automatic Model Loading on Server Startup: Difference between revisions

From QPR ProcessAnalyzer Wiki
Jump to navigation Jump to search
(Created page with "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 lon...")
 
No edit summary
Line 14: Line 14:
* 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]]

Revision as of 19:42, 17 March 2020

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:

{
  "LoadOnStartup": true,
  "CacheUsage": {
    "DropUnusedModelsAfter": "100.00:00:00",
    "DropUnusedFiltersAfter": "00:30:00"
  }
}

Notes:

  • 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 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.