Database Save Interval

You can use the Server Configuration Tool to define how often the ClearSCADA server saves the database. On many systems, the default setting of 1 minute (the database is saved every minute) is appropriate. However, some systems with particularly large databases may suffer from slow and unresponsive clients if the database is being saved too frequently. This is because the save process on larger systems (for example, systems with over 50,0000 database items) can be resource-intensive, meaning that other processes are unable to run as effectively as possible.

If you have a large database, you can determine whether the database save time is appropriate by using the Server Status Tool:

  1. Access the ClearSCADA Server Configuration Tool.
  2. Expand the Global Parameters branch of the tree structure.
  3. Select the Advanced entry to display the Advanced section.
  4. Look at the Database Save Interval. You need to know the number of seconds that are defined for this setting as you will compare it to the save and flush times for the files.

  5. Display the Server Status Tool (see Run the Server Status Tool in the ClearSCADA Guide to the Server Status Tool).
  6. Expand the Database branch of the tree structure.
  7. Select the File Statistics entry.
  8. Examine the entries for the metadata files, configuration files, and database structure files.

  9. For each file, look at the Save Time value and the Flush Time value.
    • If these values, when added together, are greater than, equal to, or close to the Database Save Interval, ClearSCADA needs more time to save the database. Proceed to step 10.
    • If the total of these values is less than the Database Save Interval, the slow performance on your system is unrelated to the database saving process. You should investigate other possible causes of slow performance and contact Schneider Electric if required. You do not need to continue with the steps in this procedure.
  10. If you need to adjust the Database Save Interval, display the Server Configuration Tool, log on if required, and then access the Advanced section within the Global Parameters branch.
  11. Change the Database Save Interval on the so that it is greater than the largest Save Time and Flush Time total.

    Example:

    If a configuration file has a Save Time of 15 seconds and a Flush Time of 35 seconds, the total time is 50 seconds, so you should increase the Database Save Time appropriately, in this case 2 minutes may be suitable. This would mean that ClearSCADA would save the database every 2 minutes, with a delay between each save (as ClearSCADA is able to complete the save operation within less than 2 minutes). As the save operations can complete within the Database Save Interval, ClearSCADA is not constantly attempting to save the database, and so resources are available for other processes.

    By instructing ClearSCADA to save the database less frequently, you reduce the amount of resources required at one time and so there is less effect on system performance. However, this also means that the database is being saved less often, and so increases the risk of data being lost should an unexpected situation occur.

  12. Apply the changes to the server.
    The new Database Save Interval is used.

Disclaimer

ClearSCADA 2017 R3