Skip to content

Commit

Permalink
Disable Redis cache
Browse files Browse the repository at this point in the history
As part of putting things to rest and saving costs, we are removing the Redis cache and relying on CloudFront to do enough caching for us to solve the same use case. See also edgi-govdata-archiving/web-monitoring-db#1098.
  • Loading branch information
Mr0grog committed Mar 30, 2023
1 parent 1278493 commit 3d0b435
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
11 changes: 6 additions & 5 deletions kubernetes/production/api-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,12 @@ spec:
value: enabled
- name: RAILS_SERVE_STATIC_FILES
value: enabled
- name: REDIS_CACHE_URL
valueFrom:
secretKeyRef:
name: app-secrets
key: redis_cache_url
# Redis cache is disabled in favor of just relying on CloudFront.
# - name: REDIS_CACHE_URL
# valueFrom:
# secretKeyRef:
# name: app-secrets
# key: redis_cache_url
- name: SECRET_KEY_BASE
valueFrom:
secretKeyRef:
Expand Down
11 changes: 6 additions & 5 deletions kubernetes/production/import-worker-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,12 @@ spec:
value: enabled
- name: RAILS_SERVE_STATIC_FILES
value: enabled
- name: REDIS_CACHE_URL
valueFrom:
secretKeyRef:
name: app-secrets
key: redis_cache_url
# Redis cache is disabled in favor of just relying on CloudFront.
# - name: REDIS_CACHE_URL
# valueFrom:
# secretKeyRef:
# name: app-secrets
# key: redis_cache_url
- name: SECRET_KEY_BASE
valueFrom:
secretKeyRef:
Expand Down

0 comments on commit 3d0b435

Please sign in to comment.