Uploaded image for project: 'Indy Node'
  1. Indy Node
  2. INDY-1637

Make validator info as a historical data

    Details

    • Type: Task
    • Status: Complete
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: validator-info
    • Labels:
      None
    • Epic Link:
    • Sprint:
      EV 18.18 Service Pack 2
    • Documentation Impact:
      Unset

      Description

      For now validator-info dumps state of node structures into single file, so that we can just check node state at the time of the last dump.

      It is very useful to have ability to get historical data of validator-info to track node's state transition in time.

      Proposed solution:

      • Add ability to save validator-info data in RocksDB storage in form
        • key = timestamp
        • value = json_data
      • Add ability to switch between file dump (current implementation, just last state) and RocksDB (historical data)
      • Change validator-info console app so that it checks config and finds out which data source to use. Several additional parameters may be added in case of RocksDB used, i.e. number of last records to return, time range etc.

      Of course RocksDB with historical data is not for production usage.

      Also for now there is no any synchronisation between validator-info writer and reader of file, it should be fixed too. Fortunately, RocksDB supports read-only mode, so there is no need to care about synchronisation here.

        Attachments

          Activity

            People

            • Assignee:
              zhigunenko.dsr NIkita Zhigunenko
              Reporter:
              sergey-shilov Sergey Shilov
              Watchers:
              Alexander Shcherbakov, NIkita Zhigunenko, Sergey Shilov
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: