You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Ferenc Gerlits (Jira)" <ji...@apache.org> on 2022/03/02 13:11:00 UTC
[jira] [Created] (MINIFICPP-1765) Speed up the kubernetes.feature
Ferenc Gerlits created MINIFICPP-1765:
-----------------------------------------
Summary: Speed up the kubernetes.feature
Key: MINIFICPP-1765
URL: https://issues.apache.org/jira/browse/MINIFICPP-1765
Project: Apache NiFi MiNiFi C++
Issue Type: Improvement
Reporter: Ferenc Gerlits
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.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)