forked from antonputra/tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preserialize Devices as &str on lesson 206 (antonputra#263)
* 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
1 parent
b44f9b1
commit efef118
Showing
22 changed files
with
4,145 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
target | ||
Dockerfile | ||
.dockerignore | ||
.git | ||
.gitignore |
Oops, something went wrong.