Skip to content

Commit ab4ff12

Browse files
authored
example of slowness due to lack of concurrency (#51)
1 parent bcd0b8f commit ab4ff12

12 files changed

Lines changed: 112 additions & 0 deletions
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
4+
# kustomize builds serially (5s), but kustomizer builds concurrently (500ms).
5+
generators:
6+
- slow-generator-1.yaml
7+
- slow-generator-2.yaml
8+
- slow-generator-3.yaml
9+
- slow-generator-4.yaml
10+
- slow-generator-5.yaml
11+
- slow-generator-6.yaml
12+
- slow-generator-7.yaml
13+
- slow-generator-8.yaml
14+
- slow-generator-9.yaml
15+
- slow-generator-10.yaml
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
apiVersion: random
2+
kind: Slow
3+
metadata:
4+
name: slow-1
5+
annotations:
6+
config.kubernetes.io/function: |
7+
exec:
8+
path: sh
9+
args: ["slow.sh"]
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
apiVersion: random
2+
kind: Slow
3+
metadata:
4+
name: slow-10
5+
annotations:
6+
config.kubernetes.io/function: |
7+
exec:
8+
path: sh
9+
args: ["slow.sh"]
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
apiVersion: random
2+
kind: Slow
3+
metadata:
4+
name: slow-2
5+
annotations:
6+
config.kubernetes.io/function: |
7+
exec:
8+
path: sh
9+
args: ["slow.sh"]
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
apiVersion: random
2+
kind: Slow
3+
metadata:
4+
name: slow-3
5+
annotations:
6+
config.kubernetes.io/function: |
7+
exec:
8+
path: sh
9+
args: ["slow.sh"]
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
apiVersion: random
2+
kind: Slow
3+
metadata:
4+
name: slow-4
5+
annotations:
6+
config.kubernetes.io/function: |
7+
exec:
8+
path: sh
9+
args: ["slow.sh"]
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
apiVersion: random
2+
kind: Slow
3+
metadata:
4+
name: slow-5
5+
annotations:
6+
config.kubernetes.io/function: |
7+
exec:
8+
path: sh
9+
args: ["slow.sh"]
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
apiVersion: random
2+
kind: Slow
3+
metadata:
4+
name: slow-6
5+
annotations:
6+
config.kubernetes.io/function: |
7+
exec:
8+
path: sh
9+
args: ["slow.sh"]
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
apiVersion: random
2+
kind: Slow
3+
metadata:
4+
name: slow-7
5+
annotations:
6+
config.kubernetes.io/function: |
7+
exec:
8+
path: sh
9+
args: ["slow.sh"]
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
apiVersion: random
2+
kind: Slow
3+
metadata:
4+
name: slow-8
5+
annotations:
6+
config.kubernetes.io/function: |
7+
exec:
8+
path: sh
9+
args: ["slow.sh"]

0 commit comments

Comments
 (0)