Skip to content

Commit

Permalink
[k8s] Trying the 32bit redis to decrease memory requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
cronosnull committed Jun 3, 2020
1 parent aa5d280 commit 1c6de28
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion k8s/deployments/spider-redis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ spec:
app: redis
spec:
containers:
- image: redis:alpine
- image: redis:5.0.9-32bit
name: redis
ports:
- containerPort: 6379
Expand Down
4 changes: 2 additions & 2 deletions k8s/deployments/spider-worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ spec:
- worker
resources:
requests:
cpu: 100m
cpu: 300m
memory: 500Mi
limits:
cpu: 2000m
cpu: 1000m
memory: 2Gi
env: &spider_env
- name: AFFILIATION_DIR_LOCATION
Expand Down
3 changes: 1 addition & 2 deletions src/htcondor_es/celery/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import htcondor
import classad
from celery import group
from celery.signals import celeryd_init
from itertools import zip_longest, islice
import collections
from htcondor_es.convert_to_json import (
Expand Down Expand Up @@ -191,7 +190,7 @@ def post_ads_es(es_docs, es_index, metadata=None):
traceback.print_exc()


@app.task()
@app.task(ignore_result=True)
def create_affiliation_dir(days=1):
try:
output_file = os.getenv(
Expand Down

0 comments on commit 1c6de28

Please sign in to comment.