Uploaded image for project: 'Apache NiFi MiNiFi C++'
  1. Apache NiFi MiNiFi C++
  2. MINIFICPP-1765

Speed up the kubernetes.feature

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.12.0

    Description

      Currently, each Scenario of the kubernetes.feature creates a new kind cluster during setup, and deletes it on teardown.  Every time kind create cluster runs, it takes 20 to 30 seconds.  Downloading the kind binary and loading the minifi docker image into the cluster each take around 5 seconds, as well.

      Restructure the test setups to create and delete the kind cluster on feature level instead of test scenario level.  We could set up a single kind cluster on feature level, do a cleanup after every scenario, and only delete the cluster after all the test scenarios in the feature are finished.

      One difficulty is that the volumes of the kind cluster are connected to the temporary test directories which are created for each Scenario.  We would need to either reconnect the volumes (if that is possible), or create feature-level temporary directories, copy the minifi config.yml etc to these new directories, and clean them up after the Scenario is done.

      Attachments

        Activity

          People

            lordgamez Gábor Gyimesi
            fgerlits Ferenc Gerlits
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 10m
                1h 10m