Page MenuHomePhabricator

How to disable MySQL file storage
Closed, ResolvedPublic

Asked by joshuaspence on Oct 14 2015, 8:48 PM.
Tags
Referenced Files
F878726: file.png
Oct 14 2015, 8:48 PM
Subscribers
None

Details

I have a custom storage engine (aws-sdk) which uploads to an S3 bucket (it is similar to the core S3 storage engine but it uses the AWS SDK and thus supports IAM credentials (see T5155).

My configuration is as follows:

file.png (284×1 px, 45 KB)

My goal is that all files are written to S3 instead of MySQL, but I'm not entirely sure how to disable the MySQL storage engine.

Answers

epriestley
Updated 3,322 Days Ago

Set storage.mysql-engine.max-size to 0 (also, this config option is missing a description?). See:

https://secure.phabricator.com/book/phabricator/article/configuring_file_storage/

MySQL storage is configured by default, for files up to (just under) 1MB. You can configure it with these keys:
storage.mysql-engine.max-size: Change the filesize limit. Set to 0 to disable.

New Answer

Answer

This question has been marked as closed, but you can still leave a new answer.