AEM中的聚类

AEM中的聚类,aem,sling,Aem,Sling,我面临着一个错误,这是一个奇怪的问题。我正在使用AEM 5.6.1 我有两个author实例(a1和a2),它们都在集群中。我们每天在凌晨2点到12点之间对实例执行tar优化凌晨5点(伦敦时区)。现在,在a2的error.log中,我在上述时间每天都会看到以下错误: 419错误[pool-6-thread-1]org.apache.sling.discovery.impl.cluster.ClusterViewServiceImpl GetEstabledView:现有已建立的视图尚未包含本地实

我面临着一个错误,这是一个奇怪的问题。我正在使用AEM 5.6.1

我有两个author实例(a1和a2),它们都在集群中。我们每天在凌晨2点到12点之间对实例执行tar优化凌晨5点(伦敦时区)。现在,在a2的error.log中,我在上述时间每天都会看到以下错误:

419错误[pool-6-thread-1]org.apache.sling.discovery.impl.cluster.ClusterViewServiceImpl GetEstabledView:现有已建立的视图尚未包含本地实例的输入代码!模拟隔离模式

现在,我对此做了一些研究,并了解到AEM用户
ClusterViewServiceImpl.java
用于集群。在这方面,下面提到的代码片段基本上是失败的:

EstablishedClusterView clusterViewImpl = new EstablishedClusterView(
                    config, view, getSlingId());
            boolean foundLocal = false;
            for (Iterator<InstanceDescription> it = clusterViewImpl
                    .getInstances().iterator(); it.hasNext();) {
                InstanceDescription instance = it.next();
                if (instance.isLocal()) {
                    foundLocal = true;
                    break;
                }
            }
            if (foundLocal) {
                return clusterViewImpl;
            } else {
                logger.info("getEstablishedView: the existing established view does not incude the local instance yet! Assuming isolated mode.");
                return getIsolatedClusterView();
            }
EstabledClusterView clusterViewImpl=新建EstabledClusterView(
配置、视图、getSlingId());
布尔foundLocal=false;
for(迭代器it=clusterViewImpl)
.getInstances().iterator();it.hasNext();){
InstanceDescription instance=it.next();
if(instance.isLocal()){
foundLocal=true;
打破
}
}
如果(本地){
返回clusterViewImpl;
}否则{
info(“getEstablishedView:现有的已建立视图尚未包含本地实例!假定为隔离模式”);
返回getIsolatedClusterView();
}

有人能帮我更深入地了解同样的问题吗。这是否意味着集群不能正常工作?这个错误可能会造成什么影响?

我认为你有一个典型的大脑分裂案例

对作者进行集群不是一种好方法,在AEM的未来版本中不受欢迎,因为无论出于何种原因(通常是暂时性的网络相关原因),当作者之间无法相互交谈时,他们往往会失去同步。相信我,他们很敏感

当通信中断时,从机认为它不再有主机,并声称自己就是主机。当这种情况发生,并重新建立通信时,由于没有恢复机制,损害已经造成

充其量,只允许用户连接到主要作者,并将次要作者作为高可用性服务器

更好的做法是,从每个人都要写入的主作者设置复制,并让它在写入时自动复制到辅助备份作者

希望有帮助