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: 1024MiSettings Key | Possible Values | Description |
|---|---|---|
| A valid size in MB | Specify the size in MB: e.g. 100M, 1000M |
| A valid syntax for defining pod resources | |
| Number of CPU | The default amount of server resources required to create the |
| Number of CPU | 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.