Skip to content

Commit

Permalink
Preserialize Devices as &str on lesson 206 (antonputra#263)
Browse files Browse the repository at this point in the history
* Preserialize Devices as &str on lesson 206

* move static servers into seperate directories

* commit remaining changes to move static servers into seperate directory
  • Loading branch information
JeremyMoeglich authored Sep 9, 2024
1 parent b44f9b1 commit efef118
Show file tree
Hide file tree
Showing 22 changed files with 4,145 additions and 0 deletions.
111 changes: 111 additions & 0 deletions lessons/206/1-test/actix-app-static-client.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
---
apiVersion: batch/v1
kind: Job
metadata:
name: actix-app-static-client
namespace: api
spec:
parallelism: 20
template:
metadata:
labels:
app: actix-app-static-client
spec:
restartPolicy: Never
nodeSelector:
node: node-03
containers:
- name: actix-app-static-client
imagePullPolicy: Always
image: aputra/tester-private-tests:v15
ports:
- name: metrics
containerPort: 8081
resources:
requests:
memory: 512Mi
cpu: 500m
limits:
memory: 512Mi
cpu: 500m
volumeMounts:
- name: config
mountPath: /config.yaml
subPath: config.yaml
volumes:
- name: config
configMap:
name: actix-app-static-client
---
apiVersion: v1
kind: ConfigMap
metadata:
name: actix-app-static-client
namespace: api
data:
config.yaml: |
type: main
url: http://actix-app-static:8080/api/devices
requestIntervalMs: 40
requestTimeoutMs: 200
stages:
- clients: 1
intervalMin: 3
- clients: 2
intervalMin: 3
- clients: 3
intervalMin: 3
- clients: 4
intervalMin: 3
- clients: 5
intervalMin: 3
- clients: 6
intervalMin: 3
- clients: 7
intervalMin: 3
- clients: 8
intervalMin: 3
- clients: 9
intervalMin: 3
- clients: 10
intervalMin: 3
- clients: 11
intervalMin: 3
- clients: 12
intervalMin: 3
- clients: 13
intervalMin: 3
- clients: 14
intervalMin: 3
- clients: 15
intervalMin: 3
- clients: 16
intervalMin: 3
- clients: 17
intervalMin: 3
- clients: 18
intervalMin: 3
- clients: 19
intervalMin: 3
- clients: 20
intervalMin: 3
- clients: 21
intervalMin: 3
- clients: 22
intervalMin: 3
- clients: 23
intervalMin: 3
- clients: 24
intervalMin: 3
- clients: 25
intervalMin: 3
- clients: 26
intervalMin: 3
- clients: 27
intervalMin: 3
- clients: 28
intervalMin: 3
- clients: 29
intervalMin: 3
- clients: 30
intervalMin: 3
111 changes: 111 additions & 0 deletions lessons/206/1-test/axum-app-static-client.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
---
apiVersion: batch/v1
kind: Job
metadata:
name: axum-app-static-client
namespace: api
spec:
parallelism: 20
template:
metadata:
labels:
app: axum-app-static-client
spec:
restartPolicy: Never
nodeSelector:
node: node-04
containers:
- name: axum-app-static-client
imagePullPolicy: Always
image: aputra/tester-private-tests:v15
ports:
- name: metrics
containerPort: 8081
resources:
requests:
memory: 512Mi
cpu: 500m
limits:
memory: 512Mi
cpu: 500m
volumeMounts:
- name: config
mountPath: /config.yaml
subPath: config.yaml
volumes:
- name: config
configMap:
name: axum-app-static-client
---
apiVersion: v1
kind: ConfigMap
metadata:
name: axum-app-static-client
namespace: api
data:
config.yaml: |
type: main
url: http://axum-app-static:8080/api/devices
requestIntervalMs: 40
requestTimeoutMs: 200
stages:
- clients: 1
intervalMin: 3
- clients: 2
intervalMin: 3
- clients: 3
intervalMin: 3
- clients: 4
intervalMin: 3
- clients: 5
intervalMin: 3
- clients: 6
intervalMin: 3
- clients: 7
intervalMin: 3
- clients: 8
intervalMin: 3
- clients: 9
intervalMin: 3
- clients: 10
intervalMin: 3
- clients: 11
intervalMin: 3
- clients: 12
intervalMin: 3
- clients: 13
intervalMin: 3
- clients: 14
intervalMin: 3
- clients: 15
intervalMin: 3
- clients: 16
intervalMin: 3
- clients: 17
intervalMin: 3
- clients: 18
intervalMin: 3
- clients: 19
intervalMin: 3
- clients: 20
intervalMin: 3
- clients: 21
intervalMin: 3
- clients: 22
intervalMin: 3
- clients: 23
intervalMin: 3
- clients: 24
intervalMin: 3
- clients: 25
intervalMin: 3
- clients: 26
intervalMin: 3
- clients: 27
intervalMin: 3
- clients: 28
intervalMin: 3
- clients: 29
intervalMin: 3
- clients: 30
intervalMin: 3
111 changes: 111 additions & 0 deletions lessons/206/1-test/rocket-app-static-client.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
---
apiVersion: batch/v1
kind: Job
metadata:
name: rocket-app-static-client
namespace: api
spec:
parallelism: 20
template:
metadata:
labels:
app: rocket-app-static-client
spec:
restartPolicy: Never
nodeSelector:
node: node-05
containers:
- name: rocket-app-static-client
imagePullPolicy: Always
image: aputra/tester-private-tests:v15
ports:
- name: metrics
containerPort: 8081
resources:
requests:
memory: 512Mi
cpu: 500m
limits:
memory: 512Mi
cpu: 500m
volumeMounts:
- name: config
mountPath: /config.yaml
subPath: config.yaml
volumes:
- name: config
configMap:
name: rocket-app-static-client
---
apiVersion: v1
kind: ConfigMap
metadata:
name: rocket-app-static-client
namespace: api
data:
config.yaml: |
type: main
url: http://rocket-app-static:8080/api/devices
requestIntervalMs: 40
requestTimeoutMs: 200
stages:
- clients: 1
intervalMin: 3
- clients: 2
intervalMin: 3
- clients: 3
intervalMin: 3
- clients: 4
intervalMin: 3
- clients: 5
intervalMin: 3
- clients: 6
intervalMin: 3
- clients: 7
intervalMin: 3
- clients: 8
intervalMin: 3
- clients: 9
intervalMin: 3
- clients: 10
intervalMin: 3
- clients: 11
intervalMin: 3
- clients: 12
intervalMin: 3
- clients: 13
intervalMin: 3
- clients: 14
intervalMin: 3
- clients: 15
intervalMin: 3
- clients: 16
intervalMin: 3
- clients: 17
intervalMin: 3
- clients: 18
intervalMin: 3
- clients: 19
intervalMin: 3
- clients: 20
intervalMin: 3
- clients: 21
intervalMin: 3
- clients: 22
intervalMin: 3
- clients: 23
intervalMin: 3
- clients: 24
intervalMin: 3
- clients: 25
intervalMin: 3
- clients: 26
intervalMin: 3
- clients: 27
intervalMin: 3
- clients: 28
intervalMin: 3
- clients: 29
intervalMin: 3
- clients: 30
intervalMin: 3
5 changes: 5 additions & 0 deletions lessons/206/actix-app-static/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
target
Dockerfile
.dockerignore
.git
.gitignore
Loading

0 comments on commit efef118

Please sign in to comment.