Uploaded image for project: 'Stratos'
  1. Stratos
  2. STRATOS-326

Implement Cartridge Agent Extension Points

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0 Alpha
    • Cartridge Agent
    • None

    Description

      This is a suggestion made by Lakmal. In Cartridge Agent it would be great if we could keep extension points to allow users to capture events and execute any cartridge specific logic.

      Cartridge Agent Work Flow:
      1. Start VM Instance.
      2. Start Cartridge Agent.
      3. Publish Instance Started event to Instance Status topic.
      4. Execute extension script to start the server(s). May be this could be called extensions/instance-started.sh
      5. If no artifact Git repository found wait for the application ports to be active.
      6. Once ports are active publish Instance Activated event to Instance Status topic.
      7. Execute extension script to notify Instance Activated event. May be this could be called extensions/instance-activated.sh
      6. If artifact Git repository found, wait for the Update Artifacts event on Instance Notifier topic.
      7. Once Artifact Update event received checkout artifacts.
      8. Copy artifacts to the given application path.
      9. Execute extension script to notify Artifacts Updated event. May be this could be called extensions/artifacts-updated.sh
      10. Wait for the application ports to be active.
      11. Repeat from step 6 until stopped.

      Attachments

        Activity

          People

            imesh Imesh Gunaratne
            imesh Imesh Gunaratne
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: