Uploaded image for project: 'Policy Framework'
  1. Policy Framework
  2. POLICY-3018

Spinning up new Java process per ToscaPolicy in APEX to improve robustness

    XMLWordPrintable

Details

    Description

      During the implementation of https://jira.onap.org/browse/POLICY-2883 noticed that few of the limitations such as need for unique concepts per ToscaPolicy cannot be solved because of the usage of static fields in ModelService class.

      Also, in case if some messed up ToscaPolicy is deployed that can result in StackOverflow exception, then the whole engine will go down as the JVM is affected.

      To solve such issues and completely avoid any conflict between execution of multiple policies, and improve the overall robustness of the APEX engine, spinning up new process per ToscaPolicy seems to be a viable option.

      But by doing this, the part where APEX engine send statistics would be affected, since the way processes are spun up doesn't easily allow accessing the instance of the engine.

      This Jira covers the investigation and implementation of this.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              liamfallon Liam Fallon
              a.sreekumar Ajith Sreekumar
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: