-
-
Save olix0r/be647c11189b65edccb149ac0269334d to your computer and use it in GitHub Desktop.
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
# | |
# Conduit lifecycle test configuration | |
# | |
# slow_cooker -> | |
# HTTP 1.1 -> | |
# bb point-to-point -> | |
# gRPC -> | |
# bb terminus | |
# | |
kind: Namespace | |
apiVersion: v1 | |
metadata: | |
name: lifecycle | |
--- | |
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
labels: | |
app: bb-localtest | |
name: bb-localtest | |
namespace: lifecycle | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
app: bb-localtest | |
spec: | |
containers: | |
- image: buoyantio/bb:v0.0.3 | |
imagePullPolicy: IfNotPresent | |
name: bb-terminus | |
command: | |
- "/bin/bash" | |
args: | |
- "-c" | |
- | | |
exec \ | |
/out/bb terminus \ | |
--grpc-server-port=9090 \ | |
--response-text=BANANA \ | |
--terminate-after=$(shuf -i 550-650 -n1) # 10 qps * 10 concurrency * 60 seconds / 10 replicas == 600 | |
ports: | |
- containerPort: 9090 | |
name: bb-term-grpc | |
- image: buoyantio/bb:v0.0.3 | |
imagePullPolicy: IfNotPresent | |
name: bb-p2p | |
command: | |
- "/bin/bash" | |
args: | |
- "-c" | |
- | | |
exec \ | |
/out/bb point-to-point-channel \ | |
--grpc-downstream-server=localhost:9090 \ | |
--h1-server-port=8080 | |
ports: | |
- containerPort: 8080 | |
name: bb-p2p-http1 | |
- image: buoyantio/slow_cooker:1.1.0 | |
imagePullPolicy: IfNotPresent | |
name: slow-cooker | |
command: | |
- "/bin/bash" | |
args: | |
- "-c" | |
- | | |
sleep 30 # wait for pods to start | |
slow_cooker \ | |
-qps 10 \ | |
-concurrency 10 \ | |
-interval 30s \ | |
-metric-addr 0.0.0.0:9990 \ | |
http://localhost:8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment