AEM: 복제 대기열을 모니터링하는 방법

설명 description

환경

  • AEM 6.5
  • Experience Manager

문제/증상

게시 프로세스가 예상대로 진행되지 않으면 복제 큐가 중단될 수 있습니다.

참고: 게시 프로세스가 예상대로 진행되지 않는 대부분의 경우 복제 큐가 중단될 수 있습니다. 복제 대기열을 모니터링하면 대기열을 효과적으로 감지하는 데 도움이 됩니다.

해결 방법 resolution

복제 큐에 액세스하여 콘텐츠 목록을 가져올 수 있습니다 다음 URL.

결과:

{
metaData: {
root: "queue",
queueStatus: {
agentName: "Default Agent",
agentId: "publish",
isBlocked: false,
isPaused: false,
time: 1683837270303,
processingSince: 1683837270301,
lastProcessTime: 1683837270270,
nextRetryPeriod: -1683837270304
},
fields: `[`
"id",
"path",
"time",
"userid",
"type",
"size",
"lastProcessed",
"numProcessed"
`]`
},
queue: `[`
{
id: "2023/5/12/5/34/c80e9a48-1b7e-4e12-8775-5f733016e13e_3646",
path: "/content/we-retail/us/en/products/equipment/running/faba-running-pants",
time: 1683837231021,
userid: "admin",
type: "Deactivate",
size: 0,
lastProcessed: 0,
numProcessed: 0
},
{
id: "2023/5/12/5/34/c80e9a48-1b7e-4e12-8775-5f733016e13e_3695",
path: "/content/we-retail/ca/en/products/equipment/hiking/expedition-tech-long-sleeved-shirt",
time: 1683837231021,
userid: "admin",
type: "Deactivate",
size: 0,
lastProcessed: 0,
numProcessed: 0
}
`]`
}

cURL로 URL에 정기적으로 액세스하는 것이 좋습니다. "경로" 값은 콘텐츠의 경로입니다. 결과에서 경로 값을 계산하여 복제 큐에 있는 콘텐츠 수를 확인할 수 있습니다.

예:
curl -u < 사용자> :< 암호> "http://localhost:4502/etc/replication/agents.author/publish/jcr:content.queue.json"

recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f