DB persistence

From Allegro Network Multimeter Manual
Jump to navigation Jump to search

Note: Since firmware version 4.5, this feature is merged with the long-term DB feature and no separate configuration is required anymore.

The DB persistence feature (in firmware >= 4.2) can write parts of the In-Memory database onto an selected storage device when stopping the packet processing (either manually or when rebooting the device). On restart, the stored data is imported again to make some data available again after restart.

The stored data comprises:

DB persistence settings
  • the list of MAC addresses and their direct graphs, not including the per-element tables.
  • the list of IP addresses and their direct graphs (traffic, retransmissions and other TCP stats for that IP address), not including the per-element tables.
  • the IP groups data (same elements as the IP addresses).
  • the Layer 7 protocol traffic graphs.

The feature must be enabled in the global settings in the "Long-term DB and persistence" tab. The storage device must be selected and should be reasonable fast. We recommend using SSD storage only as it can take a few seconds to a few minutes on such fast disc but much longer on slower spinning discs.

The configuration sections shows the estimated required space on the storage device. Since the amount of data stored depends on the actual number elements (IP addresses etc), it may vary and the process will use less memory if possible or try to use more memory if necessary.

The processing restart dialog will allow to disable dump and/or restoration for one time.

The dialog also shows progress during restart which also to cancel the operation.

The configuration dialog also shows the size of the persisted data and allow to remove it.

Additional options

  • With longterm DB, skip writing live data onto storage device (reduces dump/restore time): Since Firmware version 4.3, the Longterm DB is also stored on the SSD. To reduce the amount of time needed for dump and restore, the dump of the live data can be disabled since this is usually much more data and it might not be necessary to write this as well.
  • Since firmware version 4.5, it is also possible to enable a periodic dump once per day. In case of unexpected loss of power or other restarts, the last dump will be automatically read in on restart. The configuration settings allows to select any full hour of the day. It is recommended to choose an hour with less traffic then usual as the dump process increases the load of the system.

Limitations

  • Data dump and restoration works between the same firmware version and also between different firmware version but due to increasing feature set, importing data from a newer firmware (when downgrading) may not work always. In this case the import will be only partial and normal operation continues.
  • Some setting changes will make the import of some data impossible:
    • Changing the resolution of graph data is not supported for the DB persistence feature. The import will skip data from written with different settings.
  • As with all data on storage devices, the configuration of factory reset will not delete the persisted DB data and it must be removed manually by either selecting the button in the configuration dialog or by formatting the storage device.