How to configure attachments file size in revproxy

How to configure attachments file size in revproxy

To allow users to attach files up to 1GB in baskets, you need to increase the default resources of revproxy service so it can buffer such files in transition.

Append the following block to the values.yaml file and update the stack using upgrade.sh script or helm upgrade to apply the changes in your cluster.

 

serviceConfig: button3d: b3AttachmentClientMaxBodySize: 1000M revproxy: resources: limits: cpu: 500m memory: 1536Mi requests: cpu: 250m memory: 1024Mi

Settings Key

Possible Values

Description

Settings Key

Possible Values

Description

b3AttachmentClientMaxBodySize

A valid size in MB

Specify the size in MB: e.g. 100M, 1000M

resources

A valid syntax for defining pod resources

Resource Management for Pods and Containers

requests

Number of CPU
Amount of Memory

The default amount of server resources required to create the revproxy container

limits

Number of CPU
Amount of Memory

The name of the bucket that holds the uploads (eg - 3D files)

Note: The limits can be equal or greater than the requests , but not less. This will result in failure in pod creation as it violates the rule.

Note: The b3AttachmentClientMaxBodySize value cannot be bigger than the limits values. If the file uploaded is bigger than the maximum resources it will result in Out of Memory for the container and upload will fail.