[en] CleanupMetering service

[en] Snow License Manager 9

2021-11-17

[en] The CleanupMetering service cleans up old and unused metering data from the Snow License Manager database to improve performance and decrease the need for database maintenance.

[en] Configure CleanupMetering service

[en] The CleanupMetering service is configured in Snow Management and Configuration Center and in the appsettings file.

  1. [en] In Snow Management and Configuration Center, configure the following basic settings:

    • [en] METERING_HISTORY_MONTHS

    • [en] APPLICATION_CONCURRENCY_CLEANUP

    • [en] METERING_HISTORY_CLEANUP

  2. [en] In the appsettings file, configure the following settings:

    [en] Default path to appsettings file: C:\Program Files\Snow Software\Snow License Manager\Services\CleanupMetering\appsettings.json.

    [en] Setting

    [en] Description

    [en] Default value

    [en] ProcessOnScheduleConcurrency

    [en] The time when the service will execute deletion of application concurrency data.

    12:00

    [en] ProcessOnScheduleMetering

    [en] The time when the service will execute deletion of application metering data.

    16:00

    [en] RowsToDeleteConcurrency

    [en] The number of concurrency rows that the service will delete every time it runs. The service is run daily.

    200000

    [en] RowsToDeleteMetering

    [en] The number of metering rows that the service will delete every time it runs. The service is run daily.

    200000

[en] View the CleanupMetering service log file

  1. [en] To view that the service has executed background processes on the configured schedule and how long it took to finish, open the log file.

    [en] Default path: C:\Program Files\Snow Software\Logs\CleanupMetering

  2. [en] To view detailed information in the Action log, for example, the number of deleted rows, go to Snow License Manager user interface and navigate to Home > Administration > Action log.

Note

[en] When the basic settings in Snow Management and Configuration Center are enabled the scripts will log the number of deleted rows and the processing time.

[en] The service logs the background processes even when the scripts on the backend does not delete anything, for example when the basic settings in Snow Management and Configuration Center are not enabled, or when no old data exists in the database.