From 99248b14064ee473d6753cfcbaea8844977a875d Mon Sep 17 00:00:00 2001 From: Patrick Ohly Date: Mon, 8 Feb 2021 16:42:51 +0100 Subject: [PATCH] e2e: reduce worker threads during mock testing We don't need much concurrency and having too many worker threads has one disadvantage (besides resource usage): when the sidecar looses the connection to the CSI driver, it calls klog.Fatal, which prints all gouroutines. This can lead to much output. --- .../testing-manifests/storage-csi/mock/csi-mock-driver.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/e2e/testing-manifests/storage-csi/mock/csi-mock-driver.yaml b/test/e2e/testing-manifests/storage-csi/mock/csi-mock-driver.yaml index 13d97fb36b5..f5696bac6e4 100644 --- a/test/e2e/testing-manifests/storage-csi/mock/csi-mock-driver.yaml +++ b/test/e2e/testing-manifests/storage-csi/mock/csi-mock-driver.yaml @@ -24,6 +24,9 @@ spec: - "-v=5" # Needed for fsGroup support. - "--default-fstype=ext4" + # We don't need much concurrency and having many gouroutines + # makes klog.Fatal during shutdown very long. + - "--worker-threads=5" env: - name: ADDRESS value: /csi/csi.sock