Skip to content

Commit

Permalink
Move storage cache settings to correct location (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarrien authored Mar 26, 2024
1 parent e06144a commit 130eccd
Show file tree
Hide file tree
Showing 16 changed files with 104 additions and 70 deletions.
3 changes: 1 addition & 2 deletions charts/flyte-core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,6 @@ helm install gateway bitnami/contour -n flyte
| flytepropeller.additionalVolumeMounts | list | `[]` | Appends additional volume mounts to the main container's spec. May include template values. |
| flytepropeller.additionalVolumes | list | `[]` | Appends additional volumes to the deployment spec. May include template values. |
| flytepropeller.affinity | object | `{}` | affinity for Flytepropeller deployment |
| flytepropeller.cacheSizeMbs | int | `0` | |
| flytepropeller.clusterName | string | `""` | Defines the cluster name used in events sent to Admin |
| flytepropeller.configPath | string | `"/etc/flyte/config/*.yaml"` | Default regex string for searching configuration files |
| flytepropeller.createCRDs | bool | `true` | Whether to install the flyteworkflows CRD with helm |
Expand Down Expand Up @@ -278,7 +277,7 @@ helm install gateway bitnami/contour -n flyte
| sparkoperator.enabled | bool | `false` | - enable or disable Sparkoperator deployment installation |
| sparkoperator.plugin_config | object | `{"plugins":{"spark":{"spark-config-default":[{"spark.hadoop.fs.s3a.aws.credentials.provider":"com.amazonaws.auth.DefaultAWSCredentialsProviderChain"},{"spark.hadoop.mapreduce.fileoutputcommitter.algorithm.version":"2"},{"spark.kubernetes.allocation.batch.size":"50"},{"spark.hadoop.fs.s3a.acl.default":"BucketOwnerFullControl"},{"spark.hadoop.fs.s3n.impl":"org.apache.hadoop.fs.s3a.S3AFileSystem"},{"spark.hadoop.fs.AbstractFileSystem.s3n.impl":"org.apache.hadoop.fs.s3a.S3A"},{"spark.hadoop.fs.s3.impl":"org.apache.hadoop.fs.s3a.S3AFileSystem"},{"spark.hadoop.fs.AbstractFileSystem.s3.impl":"org.apache.hadoop.fs.s3a.S3A"},{"spark.hadoop.fs.s3a.impl":"org.apache.hadoop.fs.s3a.S3AFileSystem"},{"spark.hadoop.fs.AbstractFileSystem.s3a.impl":"org.apache.hadoop.fs.s3a.S3A"},{"spark.hadoop.fs.s3a.multipart.threshold":"536870912"},{"spark.blacklist.enabled":"true"},{"spark.blacklist.timeout":"5m"},{"spark.task.maxfailures":"8"}]}}}` | Spark plugin configuration |
| sparkoperator.plugin_config.plugins.spark.spark-config-default | list | `[{"spark.hadoop.fs.s3a.aws.credentials.provider":"com.amazonaws.auth.DefaultAWSCredentialsProviderChain"},{"spark.hadoop.mapreduce.fileoutputcommitter.algorithm.version":"2"},{"spark.kubernetes.allocation.batch.size":"50"},{"spark.hadoop.fs.s3a.acl.default":"BucketOwnerFullControl"},{"spark.hadoop.fs.s3n.impl":"org.apache.hadoop.fs.s3a.S3AFileSystem"},{"spark.hadoop.fs.AbstractFileSystem.s3n.impl":"org.apache.hadoop.fs.s3a.S3A"},{"spark.hadoop.fs.s3.impl":"org.apache.hadoop.fs.s3a.S3AFileSystem"},{"spark.hadoop.fs.AbstractFileSystem.s3.impl":"org.apache.hadoop.fs.s3a.S3A"},{"spark.hadoop.fs.s3a.impl":"org.apache.hadoop.fs.s3a.S3AFileSystem"},{"spark.hadoop.fs.AbstractFileSystem.s3a.impl":"org.apache.hadoop.fs.s3a.S3A"},{"spark.hadoop.fs.s3a.multipart.threshold":"536870912"},{"spark.blacklist.enabled":"true"},{"spark.blacklist.timeout":"5m"},{"spark.task.maxfailures":"8"}]` | Spark default configuration |
| storage | object | `{"bucketName":"my-s3-bucket","custom":{},"enableMultiContainer":false,"gcs":null,"limits":{"maxDownloadMBs":10},"s3":{"accessKey":"","authType":"iam","region":"us-east-1","secretKey":""},"type":"sandbox"}` | ---------------------------------------------------- STORAGE SETTINGS |
| storage | object | `{"bucketName":"my-s3-bucket","cache":{"maxSizeMBs":0,"targetGCPercent":70},"custom":{},"enableMultiContainer":false,"gcs":null,"limits":{"maxDownloadMBs":10},"s3":{"accessKey":"","authType":"iam","region":"us-east-1","secretKey":""},"type":"sandbox"}` | ---------------------------------------------------- STORAGE SETTINGS |
| storage.bucketName | string | `"my-s3-bucket"` | bucketName defines the storage bucket flyte will use. Required for all types except for sandbox. |
| storage.custom | object | `{}` | Settings for storage type custom. See https://github.com/graymeta/stow for supported storage providers/settings. |
| storage.enableMultiContainer | bool | `false` | toggles multi-container storage config |
Expand Down
3 changes: 3 additions & 0 deletions charts/flyte-core/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -260,4 +260,7 @@ storage:
enable-multicontainer: {{ .Values.storage.enableMultiContainer }}
limits:
maxDownloadMBs: {{ .Values.storage.limits.maxDownloadMBs }}
cache:
max_size_mbs: {{ .Values.storage.cache.maxSizeMBs }}
target_gc_percent: {{ .Values.storage.cache.targetGCPercent }}
{{- end }}
4 changes: 0 additions & 4 deletions charts/flyte-core/templates/propeller/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ data:
{{- end }}
{{- end }}
storage.yaml: | {{ tpl (include "storage" .) $ | nindent 4 }}
cache.yaml: |
cache:
max_size_mbs: {{ .Values.flytepropeller.cacheSizeMbs }}
target_gc_percent: 70
{{- with .Values.configmap.task_logs }}
task_logs.yaml: | {{ tpl (toYaml .) $ | nindent 4 }}
{{- end }}
Expand Down
5 changes: 3 additions & 2 deletions charts/flyte-core/values-eks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ flytepropeller:
cpu: 1
ephemeral-storage: 1Gi
memory: 2Gi
cacheSizeMbs: 1024
# -- Sets priorityClassName for propeller pod(s).
priorityClassName: "system-cluster-critical"
affinity:
Expand Down Expand Up @@ -147,7 +146,7 @@ common:
kubernetes.io/ingress.class: alb
alb.ingress.kubernetes.io/tags: service_instance=production
alb.ingress.kubernetes.io/scheme: internet-facing
alb.ingress.kubernetes.io/target-type: ip
alb.ingress.kubernetes.io/target-type: ip
# -- This is the certificate arn of the cert imported in AWS certificate manager.
alb.ingress.kubernetes.io/certificate-arn: "{{ .Values.userSettings.certificateArn }}"
alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 80}, {"HTTPS":443}]'
Expand Down Expand Up @@ -188,6 +187,8 @@ storage:
bucketName: "{{ .Values.userSettings.bucketName }}"
s3:
region: "{{ .Values.userSettings.accountRegion }}"
cache:
maxSizeMBs: 1024

db:
datacatalog:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ flyteadmin:
- configMap:
name: sslcerts # name of the ca-certificates.crt configmap in the cluster
name: sslcerts
additionalVolumeMounts:
additionalVolumeMounts:
- mountPath: /etc/ssl/certs/ # where to mount the above certificate
name: sslcerts
# -- Appends extra command line arguments to the serve command
Expand Down Expand Up @@ -215,7 +215,6 @@ flytepropeller:
cpu: 10m
ephemeral-storage: 50Mi
memory: 100Mi
cacheSizeMbs: 0
# -- Default regex string for searching configuration files
configPath: /etc/flyte/config/*.yaml

Expand Down Expand Up @@ -396,6 +395,8 @@ storage:
# -- default limits being applied to storage config
limits:
maxDownloadMBs: 10
cache:
maxSizeMBs: 0

# Database configuration(These are the values for a pgdb instance with hostname of postgres-flyte and postgres/password creds)
db:
Expand Down Expand Up @@ -459,11 +460,11 @@ configmap:
console:
BASE_URL: /console
CONFIG_DIR: /etc/flyte/config

logger:
show-source: true
level: 6

# -- Domains configuration for Flyte projects. This enables the specified number of domains across all projects in Flyte.
domain:
domains:
Expand Down Expand Up @@ -552,7 +553,7 @@ configmap:
- profile
- openid
- offline_access
clientId: <clientid declared in IDP for the UI access>
clientId: <clientid declared in IDP for the UI access>

# -- Datacatalog server config
datacatalogServer:
Expand Down
4 changes: 3 additions & 1 deletion charts/flyte-core/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,6 @@ flytepropeller:
cpu: 10m
ephemeral-storage: 50Mi
memory: 100Mi
cacheSizeMbs: 0
# -- Error reporting
terminationMessagePolicy: FallbackToLogsOnError
# -- Default regex string for searching configuration files
Expand Down Expand Up @@ -543,6 +542,9 @@ storage:
# -- default limits being applied to storage config
limits:
maxDownloadMBs: 10
cache:
maxSizeMBs: 0
targetGCPercent: 70

# Database configuration
db:
Expand Down
4 changes: 2 additions & 2 deletions charts/flyte/README.md

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion charts/flyte/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ flyte:
cpu: 10m
ephemeral-storage: 50Mi
memory: 50Mi
cacheSizeMbs: 0
# -- Default regex string for searching configuration files
configPath: /etc/flyte/config/*.yaml

Expand Down Expand Up @@ -334,6 +333,9 @@ flyte:
# serviceAccountKey: ""
# -- Settings for storage type custom. See https://github.com/graymeta/stow for supported storage providers/settings.
custom: {}
cache:
maxSizeMBs: 0
targetGCPercent: 70

# Database configuration
db:
Expand Down
21 changes: 13 additions & 8 deletions deployment/eks/flyte_aws_scheduler_helm_generated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@ data:
enable-multicontainer: false
limits:
maxDownloadMBs: 10
cache:
max_size_mbs: 1024
target_gc_percent: 70
task_resource_defaults.yaml: |
task_resources:
defaults:
Expand Down Expand Up @@ -397,6 +400,9 @@ data:
enable-multicontainer: false
limits:
maxDownloadMBs: 10
cache:
max_size_mbs: 1024
target_gc_percent: 70
---
# Source: flyte-core/templates/propeller/configmap.yaml
apiVersion: v1
Expand Down Expand Up @@ -509,10 +515,9 @@ data:
enable-multicontainer: false
limits:
maxDownloadMBs: 10
cache.yaml: |
cache:
max_size_mbs: 1024
target_gc_percent: 70
cache:
max_size_mbs: 1024
target_gc_percent: 70
task_logs.yaml: |
plugins:
logs:
Expand Down Expand Up @@ -847,7 +852,7 @@ spec:
template:
metadata:
annotations:
configChecksum: "2b5c85969f2bd85bb51a084f9fd72c20c3aca94be99e53cb4c4e9f78e77ebc5"
configChecksum: "2f3e26082880610dd9d00026c52c5947b78f561d74bbe3baf5ea28cd28683e9"
labels:
app.kubernetes.io/name: flyteadmin
app.kubernetes.io/instance: flyte
Expand Down Expand Up @@ -1165,7 +1170,7 @@ spec:
template:
metadata:
annotations:
configChecksum: "59ef5b555bd41c3e854a315f21031c76dfa876455ff8069b989cb6c28ec1f17"
configChecksum: "b8b5aa53b7d38e8745d7df97277c9cd52bc68b09f5a7cff47b7080a654d2d1f"
labels:
app.kubernetes.io/name: datacatalog
app.kubernetes.io/instance: flyte
Expand Down Expand Up @@ -1267,7 +1272,7 @@ spec:
template:
metadata:
annotations:
configChecksum: "6f925c4627a6ae0040ea2073d2f5faca3fbfa82c90d90eae474819f23d52212"
configChecksum: "6f580bc477903d807fd016b16fc0e9b21b8a44008eaca55124d7eb505466b74"
labels:
app.kubernetes.io/name: flytepropeller
app.kubernetes.io/instance: flyte
Expand Down Expand Up @@ -1349,7 +1354,7 @@ spec:
app.kubernetes.io/name: flyte-pod-webhook
app.kubernetes.io/version: v1.11.0-b1
annotations:
configChecksum: "6f925c4627a6ae0040ea2073d2f5faca3fbfa82c90d90eae474819f23d52212"
configChecksum: "6f580bc477903d807fd016b16fc0e9b21b8a44008eaca55124d7eb505466b74"
spec:
securityContext:
fsGroup: 65534
Expand Down
12 changes: 9 additions & 3 deletions deployment/eks/flyte_helm_controlplane_generated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ data:
enable-multicontainer: false
limits:
maxDownloadMBs: 10
cache:
max_size_mbs: 1024
target_gc_percent: 70
task_resource_defaults.yaml: |
task_resources:
defaults:
Expand Down Expand Up @@ -363,6 +366,9 @@ data:
enable-multicontainer: false
limits:
maxDownloadMBs: 10
cache:
max_size_mbs: 1024
target_gc_percent: 70
---
# Source: flyte-core/templates/flytescheduler/configmap.yaml
apiVersion: v1
Expand Down Expand Up @@ -553,7 +559,7 @@ spec:
template:
metadata:
annotations:
configChecksum: "053b20ebc40227f6ed8ddc61f5997ee7997c604158f773779f20ec61af11a2f"
configChecksum: "076656b1b65050807a5bc6448aa73d8619ffcf08473f0d8ae12ce0bdf2c4665"
labels:
app.kubernetes.io/name: flyteadmin
app.kubernetes.io/instance: flyte
Expand Down Expand Up @@ -871,7 +877,7 @@ spec:
template:
metadata:
annotations:
configChecksum: "59ef5b555bd41c3e854a315f21031c76dfa876455ff8069b989cb6c28ec1f17"
configChecksum: "b8b5aa53b7d38e8745d7df97277c9cd52bc68b09f5a7cff47b7080a654d2d1f"
labels:
app.kubernetes.io/name: datacatalog
app.kubernetes.io/instance: flyte
Expand Down Expand Up @@ -973,7 +979,7 @@ spec:
template:
metadata:
annotations:
configChecksum: "053b20ebc40227f6ed8ddc61f5997ee7997c604158f773779f20ec61af11a2f"
configChecksum: "076656b1b65050807a5bc6448aa73d8619ffcf08473f0d8ae12ce0bdf2c4665"
labels:
app.kubernetes.io/name: flytescheduler
app.kubernetes.io/instance: flyte
Expand Down
11 changes: 5 additions & 6 deletions deployment/eks/flyte_helm_dataplane_generated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,9 @@ data:
enable-multicontainer: false
limits:
maxDownloadMBs: 10
cache.yaml: |
cache:
max_size_mbs: 1024
target_gc_percent: 70
cache:
max_size_mbs: 1024
target_gc_percent: 70
task_logs.yaml: |
plugins:
logs:
Expand Down Expand Up @@ -427,7 +426,7 @@ spec:
template:
metadata:
annotations:
configChecksum: "6f925c4627a6ae0040ea2073d2f5faca3fbfa82c90d90eae474819f23d52212"
configChecksum: "6f580bc477903d807fd016b16fc0e9b21b8a44008eaca55124d7eb505466b74"
labels:
app.kubernetes.io/name: flytepropeller
app.kubernetes.io/instance: flyte
Expand Down Expand Up @@ -509,7 +508,7 @@ spec:
app.kubernetes.io/name: flyte-pod-webhook
app.kubernetes.io/version: v1.11.0-b1
annotations:
configChecksum: "6f925c4627a6ae0040ea2073d2f5faca3fbfa82c90d90eae474819f23d52212"
configChecksum: "6f580bc477903d807fd016b16fc0e9b21b8a44008eaca55124d7eb505466b74"
spec:
securityContext:
fsGroup: 65534
Expand Down
23 changes: 14 additions & 9 deletions deployment/eks/flyte_helm_generated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,9 @@ data:
enable-multicontainer: false
limits:
maxDownloadMBs: 10
cache:
max_size_mbs: 1024
target_gc_percent: 70
task_resource_defaults.yaml: |
task_resources:
defaults:
Expand Down Expand Up @@ -394,6 +397,9 @@ data:
enable-multicontainer: false
limits:
maxDownloadMBs: 10
cache:
max_size_mbs: 1024
target_gc_percent: 70
---
# Source: flyte-core/templates/flytescheduler/configmap.yaml
apiVersion: v1
Expand Down Expand Up @@ -540,10 +546,9 @@ data:
enable-multicontainer: false
limits:
maxDownloadMBs: 10
cache.yaml: |
cache:
max_size_mbs: 1024
target_gc_percent: 70
cache:
max_size_mbs: 1024
target_gc_percent: 70
task_logs.yaml: |
plugins:
logs:
Expand Down Expand Up @@ -878,7 +883,7 @@ spec:
template:
metadata:
annotations:
configChecksum: "053b20ebc40227f6ed8ddc61f5997ee7997c604158f773779f20ec61af11a2f"
configChecksum: "076656b1b65050807a5bc6448aa73d8619ffcf08473f0d8ae12ce0bdf2c4665"
labels:
app.kubernetes.io/name: flyteadmin
app.kubernetes.io/instance: flyte
Expand Down Expand Up @@ -1196,7 +1201,7 @@ spec:
template:
metadata:
annotations:
configChecksum: "59ef5b555bd41c3e854a315f21031c76dfa876455ff8069b989cb6c28ec1f17"
configChecksum: "b8b5aa53b7d38e8745d7df97277c9cd52bc68b09f5a7cff47b7080a654d2d1f"
labels:
app.kubernetes.io/name: datacatalog
app.kubernetes.io/instance: flyte
Expand Down Expand Up @@ -1298,7 +1303,7 @@ spec:
template:
metadata:
annotations:
configChecksum: "053b20ebc40227f6ed8ddc61f5997ee7997c604158f773779f20ec61af11a2f"
configChecksum: "076656b1b65050807a5bc6448aa73d8619ffcf08473f0d8ae12ce0bdf2c4665"
labels:
app.kubernetes.io/name: flytescheduler
app.kubernetes.io/instance: flyte
Expand Down Expand Up @@ -1397,7 +1402,7 @@ spec:
template:
metadata:
annotations:
configChecksum: "6f925c4627a6ae0040ea2073d2f5faca3fbfa82c90d90eae474819f23d52212"
configChecksum: "6f580bc477903d807fd016b16fc0e9b21b8a44008eaca55124d7eb505466b74"
labels:
app.kubernetes.io/name: flytepropeller
app.kubernetes.io/instance: flyte
Expand Down Expand Up @@ -1479,7 +1484,7 @@ spec:
app.kubernetes.io/name: flyte-pod-webhook
app.kubernetes.io/version: v1.11.0-b1
annotations:
configChecksum: "6f925c4627a6ae0040ea2073d2f5faca3fbfa82c90d90eae474819f23d52212"
configChecksum: "6f580bc477903d807fd016b16fc0e9b21b8a44008eaca55124d7eb505466b74"
spec:
securityContext:
fsGroup: 65534
Expand Down
Loading

0 comments on commit 130eccd

Please sign in to comment.