Aggiornamento alla versione di Oak 1.4.16 o successiva come disponibile qui.
Ultimo aggiornamento il
Problema
Quando disponi di un cluster AEM + MongoDB multi-nodo e spegni il nodo primario MongoDB e consenti il failover, AEM genera errori su tutti i nodi del cluster.
Ambiente
AEM 6.2 + Oak 1.4.15 o versioni precedenti
Causa
Questo è un problema noto con AEM + Oak 1.4.15 (e versioni precedenti di Oak).
Risoluzione
-
-
Imposta socketTimeoutMS=60000 nel mongouri, per esempio:
#mongodb connection options CQ_JVM_OPTS="${CQ_JVM_OPTS} -Doak.documentMK.maxServerTimeDiffMillis=31000 -Doak.mongo.uri=mongodb://aemuser:redacted@mongo1host:27017,mongo2host:27017,mongo3host:27017/aem-author?authsource=aem-author&authMechanism=MONGODB-CR&replicaSet=aem&readPreference=nearest&w=2&socketTimeoutMS=60000 -Doak.mongo.db=aem-author"
-
Aggiungi socketKeepAlive=true nella configurazione DocumentNodeStoreService. Esempio:
# This file contains DocumentNodeStoreService configurations and information relating to the apps connection to the Mongo DB customBlobStore=B"true" maxReplicationLagInSecs=L"21600" blobCacheSize=I"16" cache=I"16384" cacheSegmentCount=I"16" cacheStackMoveDistance=I"16" nodeCachePercentage="50" prevDocCachePercentage="10" childrenCachePercentage="20" diffCachePercentage="15" docChildrenCachePercentage="2" persistentCache="./crx-quickstart/repository/cache,size\=2048,binary\=0" journalGCInterval=L"300000" journalGCMaxAge=L"21600000" journalGcBatchSize=I"100" blobGcMaxAgeInSecs=L"86400" socketKeepAlive=B"true"
Accedi al tuo account