Contenu connexe Similaire à 高レイテンシwebサーバのGKE構築と beta機能アレコレのハナシ (20) 高レイテンシwebサーバのGKE構築と beta機能アレコレのハナシ19. - restore_cache:
keys:
- app-{{ .Branch }}-{{ .Revision }}
- app-{{ .Branch }}-
- app-
- run:
name: load docker cache
command: |
set +o pipefail
docker load -i /caches/app.tar | true
20. carton exec starman -Ilib --workers 7 --max-requests 10000 preview.psgi
:
resources:
requests:
memory: 1500Mi
cpu: 7
limits:
cpu: 7
30. vegeta attack
-targets=targets.txt
-rate=10 -duration=10s
| vegeta report reporter=text
Requests [total, rate] 100, 10.10
Duration [total, attack, wait] 10.369150093s, 9.899999874s,
469.150219ms
Latencies [mean, 50, 95, 99, max] 540.286933ms, 502.598338ms,
757.152401ms, 979.245484ms, 1.059904593s
Bytes In [total, mean] 14800, 148.00
Bytes Out [total, mean] 47383100, 473831.00
Success [ratio] 100.00%
Status Codes [code:count] 200:100
31. apiVersion: apps/v1
kind: Deployment
metadata:
name: stress
spec:
replicas: 1
selector:
matchLabels:
tier: stress
template:
metadata:
labels:
tier: stress
spec:
containers:
- name: stress
image: junpayment/vegeta
imagePullPolicy: Always
nodeSelector:
tier: stress
32. kubectl pods top
kubectl describe hpa
kubectl describe hpa
Metrics: ( current / target )
resource cpu on pods (as a percentage of request): 12% (880m) / 15%
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
(combined from similar events): New size: 10; reason: cpu resource utilization (percentage of
request) above target