Nuxeo stores binaries attached to the documents on a file system by default. That can be a shared file system, a NAS, an Amazon S3 bucket or its Microsoft Azure equivalent, etc. More options are available depending on your target deployment. This is described in the Storage Alternatives section below.
The shared filesystem is usually an NFS mount. You must not share the whole Nuxeo installation tree (see below).
The complete Nuxeo instance hierarchy must not be shared between all instances. However the following things must be shared:
- All the binary stores must be shared by all Nuxeo instances in order for the document repository and transient stores to function correctly.
- The temporary directory configured through
nuxeo.tmp.dirmust not be shared by all instances, because there are still a few name collision issues that may occur, especially during startup.
You can store your binaries on a local storage (like a NAS). However, we recommend to use the Amazon S3 Online Storage with S3 Direct Upload whenever possible, with Client-Side Encryption.
In addition to the default repository binary store used for documents, Nuxeo uses dynamically-named binary stores for the various transient stores it needs. These dynamic binary stores are created as siblings of the default one.
$NUXEO/nxserver/data/binaries and therefore by default Nuxeo would create:
However the rest of the
$NUXEO/nxserver/data directory must not be shared by several Nuxeo instances, as it contains instance-specific data.
Therefore in a cluster setting you should point
repository.binary.store to a folder like
/var/lib/nuxeo/binaries/binaries and mount/share
/var/lib/nuxeo/binaries. This way the default binary store and all the dynamic binary stores will be created under the mount point:
You can of course use a different path than
The above does not apply if binaries are stored in a network-based location, like S3.
In order for various no-copy optimizations to be effective, the temporary directory should be on the same filesystem as the binaries directory. To do this, the recommended way is to have each instance's
nuxeo.tmp.dir point to a different subdirectory of the shared filesystem.
Using the above suggestions for the binaries directory, you could set
/var/lib/nuxeo/binaries/tmp/node1 for example, for a node with id