Skip to content

Commit

Permalink
Attempt to fix production by using mounts that aren't the overlay fs. (
Browse files Browse the repository at this point in the history
…#759)

* Attempt to fix production by using mounts that aren't the overlay fs.

Also some minor fixes to the kubes configs.

Signed-off-by: Caleb Brown <[email protected]>

* File wants to be relative

Signed-off-by: Caleb Brown <[email protected]>

---------

Signed-off-by: Caleb Brown <[email protected]>
  • Loading branch information
calebbrown authored Jun 9, 2023
1 parent b72d0b9 commit 4db0583
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion infra/worker/scaler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: pubsub
spec:
minReplicas: 1
maxReplicas: 2000
maxReplicas: 1900
metrics:
- external:
metric:
Expand Down
7 changes: 6 additions & 1 deletion infra/worker/workers-set.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ metadata:
labels:
app: workers
spec:
serviceName: workers
replicas: 700
selector:
matchLabels:
Expand Down Expand Up @@ -40,6 +39,8 @@ spec:
volumeMounts:
- mountPath: "/var/lib/containers"
name: image-storage
- mountPath: "/worker_tmp"
name: worker-tmp
resources:
requests:
cpu: 750m
Expand All @@ -51,3 +52,7 @@ spec:
- name: image-storage
emptyDir:
sizeLimit: 20Gi
- name: worker-tmp
emptyDir:
sizeLimit: 5Gi

2 changes: 1 addition & 1 deletion internal/utils/file_write_data_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Subfolder where write buffer data will be saved to disk before uploaded to a clo
This subfolder needs to be shared across files so all functions that access it will be defined here.
*/

const writeBufferFolder = "temp_write_buffers"
const writeBufferFolder = "worker_tmp/write_buffers"

/*
Writes a file in the directory specified by write_buffer_folder and flushes the buffer.
Expand Down

0 comments on commit 4db0583

Please sign in to comment.