There are a huge number of attachments in the database. Initially we considered moving these to Swift (or other object storage) but that may not be supported by znuny yet. We can probably make do with rsyncing between instances using rsync::quickdatacopy.
Attachments can be migrated out of the database and onto disk by running bin/otrs.Console.pl Admin::Article::StorageSwitch --target ArticleStorageFS
Questions to answer:
- How much disk space does it take to write these to disk using the StorageSwitch script?
- How long does it take?
- Can we still view tickets with attachements when migrating?
- Do we have enough disk space on the ganeti instances?
- Do we have enough headroom with backups to add this much additional data (consider the reduction in data from mysql)?
- How long does rsync take to scan and copy (with no changes, and with new files added)?
- What happens if otrs tries to read an attachment that gets lost from the disk (e.g., we lose data due to failing over without copying all data, disk loss, etc)
T138915: OTRS database is "too large" has additional context