Documents in the Nuxeo Platform are more than "simple files". The files are called "binaries" or "blobs" (even if they are text files).
Volume usage depends on the type of documents but it is possible to estimate the required space on filesystem and database:
- Filesystem
- Base unit will be the size of the binaries.
- If there are images, then you must take in account the generated thumbnails: depending on the original image size, the thumbnail will be about 10% to 100% of the original size. Let's consider an average of 50%.
- Backup: It's possible to perform remote backup (rsync for instance) but if you plan to use a local backup, then the required size must be doubled.
- Software
- Disk usage by the Nuxeo Platform is stable and about 300MB.
- Temporary files (when uploading for instance): Reserve some space which depends on the maximum size of imported files (the temporary directory can be configured).
- Logs: Based on Log4J, the log files can be easily configured (size limit, rolling rules, ...).
- Database
- Binaries x2: If binaries are text files, then you can estimate to twice of the binaries size in database for storing their "full-text" indexes.
- +10% of binaries: Other metadata usually consumes about 10% of the binaries total size.
- Backup: Unless using backup streaming (not available for all databases and complex to setup), you will need a local backup so you must double the available size versus the estimated usage.
- Elasticsearch
- 30% of the binaries, if binaries are text files. This will vary according to the number of populated fields and full-text fields, note that the
_source
field that stores the JSON representation of a document is compressed. - Each replicas need the same amount of disk space.
- Backup: same as database, double the available size versus the estimated usage. You can also choose to not do any backup when using replicas or if you can wait for a reindexing in case of problem.
- 30% of the binaries, if binaries are text files. This will vary according to the number of populated fields and full-text fields, note that the
The easiest way is still to use the application for some duration, get usage statistics and deduce the required size.
So, based on the above information, if you have X GB of documents of which Y GB of images:
- Filesystem
- data = X + 50% Y (x2 for backup).
- /tmp = 1GB + maximum size of imported documents
- /var/log = 50MB~5GB depending on the Log4J rules and the log level (error/warn/info/debug/trace).
- application = ~1GB
- Database = 210% X (x2 for backup).
- Elasticsearch = (30% X) x number of replicas, + 30%X for backup.