Skip to content

Instantly share code, notes, and snippets.

@jfeilbach
Created March 9, 2018 01:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jfeilbach/a568110297dca3f3c5b60b515a909aa5 to your computer and use it in GitHub Desktop.
Save jfeilbach/a568110297dca3f3c5b60b515a909aa5 to your computer and use it in GitHub Desktop.
Configuring node stores and data stores in AEM 6.3
org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreService.config
# Units are in bytes. You don't need to specify the units.
# Examples:
# 1) 64GB
cacheSize="68719476736"
#2) 64MB
cacheSize="67108864"
org.apache.jackrabbit.oak.segment.SegmentNodeStoreService
#Path to repo
repository.home="crx-quickstart/repository"
#Max segment size
tarmk.size=I"256"
#Custom data store
customBlobStore=B"false"
org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreService.config
#Mongo server details
mongouri="mongodb://localhost:27017"
#Name of Mongo database to use
db="aem-author"
# Store binaries in custom BlobStore
# cache: The cache size in MB. This is distributed among various caches used in DocumentNodeStore. The default is 256
cache="256"
# changesSize: Size in MB of capped collection used in Mongo for caching the diff output. The default is 256
changesSize="256"
org.apache.jackrabbit.oak.plugins.blob.datastore.FileDataStore
# repository.home: Path to repository home under which various repository related data is stored. By default, binary files would be stored under crx-quickstart/repository/datastore directory
# path: Path to the directory under which the files would be stored. If specified then it takes precedence over repository.home value
# minRecordLength: The minimum size in bytes of a file stored in the data store. Binary content less than this value would be inlined.
repository.home=" crx-quickstart/repository/datastore"
path=" crx-quickstart/repository/datastore/foo"
minRecordLength="16384"
org.apache.jackrabbit.oak.plugins.blob.datastore.S3DataStore.config
# java -jar aem6.3.jar -r crx3tar-nofds
# accessKey: The AWS access key.
# secretKey: The AWS secret access key.
# s3Bucket: The bucket name.
# s3Region: The bucket region.
# path: The path of the data store. The default is <AEM install folder>/repository/datastore
# minRecordLength: The minimum size of an object that should be stored in the data store. The default is 16KB.
# maxCachedBinarySize: Binaries with size less than or equal to this size will be stored in memory cache. The size is in bytes. The default is 17408 (17 KB).
# cacheSize: The size of the cache. The value is specified in bytes. The default is 64GB.
# secret: Only to be used if using binaryless replication for shared datastore setup.
# stagingSplitPercentage: The percentage of cache size configured to be used for staging asynchronous uploads. The default value is 10.
# uploadThreads: The number of uploads threads that are used for asynchronous uploads. The default value is 10.
# stagingPurgeInterval: The interval in seconds for purging finished uploads from the staging cache. The default value is 300 seconds (5 minutes).
# stagingRetryInterval: The retry interval in seconds for failed uploads. The default value is 600 seconds (10 minutes).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment