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

The Node starts with asyncio debug=True

    Details

    • Type: Bug
    • Status: Complete
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Sprint:
      12

      Description

      In the run_node method there is the following code:

          with Looper(debug=True) as looper:
              node = Node(name, nodeRegistry=None, basedirpath=config.baseDir,
                          ha=node_ha, cliha=client_ha)
              looper.add(node)
              looper.run()
      

      So when the node is started using start_sovrin_node it runs asyncio debug mode enabled.
      https://docs.python.org/3/library/asyncio-dev.html#asyncio-debug-mode

      It may affect on performance and memory usage.

      For example, the test test_catchup_f_plus_one.py works two times faster with debug disabled (change mode of some loopers in conftest.py). 21.12 seconds against 48.29 seconds.

        Attachments

          Activity

            People

            • Assignee:
              danielhardman Daniel Hardman
              Reporter:
              alexander.shekhovcov Alexander Shekhovcov
              Watchers:
              Alexander Shekhovcov, Lovesh Harchandani, Sergey Shilov, Victor Muzychenko, Vladimir Shishkin
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: