Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Schwieger, Jana
lab-grpc
Commits
03f8e0b5
Commit
03f8e0b5
authored
Mar 03, 2021
by
Nane Kratzke
Browse files
Monitor in Kubernetes
parent
eaf2e2b7
Changes
3
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
03f8e0b5
...
...
@@ -64,6 +64,7 @@ rest-svc:
monitor-svc
:
stage
:
deploy
when
:
manual
script
:
-
mo deploy/monitor-dep.yaml | kubectl delete -f - ||
true
-
mo deploy/monitor-dep.yaml | kubectl apply -f -
...
...
README.md
View file @
03f8e0b5
...
...
@@ -176,8 +176,10 @@ Entwickeln Sie diesen Client bitte in der Datei `grpc/compare.py`.
3.
Starten Sie dann in einer dritten Shell Ihr Benchmarking
```
Bash
> python3 grpc/compare.py
gRPC: 6.12ms
REST: 15.28ms
gRPC: 11.01ms REST: 25.45ms
gRPC: 11.16ms REST: 26.45ms
gRPC: 11.81ms REST: 27.41ms
[...]
```
Führen Sie diese Messungen gerne ein paar mal hintereinander auf Ihrem System aus.
...
...
@@ -187,7 +189,6 @@ Führen Sie diese Messungen gerne ein paar mal hintereinander auf Ihrem System a
>
> `> cp cheat/compare-ue3.py grpc/compare.py`
## Übung 04: Performancevergleich HTTP (REST) vs. gRPC (in einem Cluster)
Lokal
...
...
deploy/monitor-dep.yaml
View file @
03f8e0b5
...
...
@@ -17,8 +17,37 @@ spec:
-
name
:
monitor
image
:
{{
CI_REGISTRY_IMAGE
}}
/grpc:latest
command
:
[
"
python3"
,
"
-u"
,
"
compare.py"
]
resources
:
limits
:
cpu
:
"
1000m"
requests
:
cpu
:
"
1000m"
env
:
-
name
:
GRPC_SVC
value
:
grpc-svc
-
name
:
REST_SVC
value
:
rest-svc
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
name
:
myapp
spec
:
selector
:
matchLabels
:
app
:
myapp
template
:
metadata
:
labels
:
app
:
myapp
spec
:
containers
:
-
name
:
myapp
image
:
<Image>
resources
:
limits
:
memory
:
"
128Mi"
cpu
:
"
500m"
ports
:
-
containerPort
:
<Port>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment