Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up a canary with conventional cache expiration instead of throttling #1619

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 71 additions & 0 deletions hokusai/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,74 @@ spec:
component: web
sessionAffinity: None
type: LoadBalancer

---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: metaphysics-web-canary
namespace: default
spec:
replicas: 1
strategy:
rollingUpdate:
maxSurge: 1
type: RollingUpdate
template:
metadata:
labels:
app: metaphysics
layer: application
component: web
name: metaphysics-web-canary
spec:
containers:
- name: metaphysics-web-canary
env:
- name: DD_TRACER_HOSTNAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: DD_TRACER_SERVICE_NAME
value: metaphysics-canary
- name: STATSD_HOST
valueFrom:
fieldRef:
fieldPath: spec.nodeName
envFrom:
- configMapRef:
name: metaphysics-environment
image: 585031190124.dkr.ecr.us-east-1.amazonaws.com/metaphysics:ceb17aec2655475edeffd93a124b5c42f5663d5b
imagePullPolicy: Always
ports:
- containerPort: 3000
resources:
requests:
cpu: '1'
memory: 1536Mi
limits:
memory: 1536Mi
readinessProbe:
httpGet:
port: 3000
path: /health
httpHeaders:
- name: X-FORWARDED-PROTO
value: https
initialDelaySeconds: 5
periodSeconds: 5
dnsPolicy: ClusterFirst
dnsConfig:
options:
- name: ndots
value: "1"
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: tier
operator: In
values:
- api
- foreground