Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

Adobe Experience Manager: レプリケーションキューの監視方法

Avatar

Employee

Note: This is a Japanese translation of an Adobe Experience League Knowledge Base article. Click this link for the original English version.

 

【目的】
公開処理を実行しても、想定したように処理が進まないことがあります。このような場合、公開処理が滞留していることがあり、レプリケーションキューを監視しておくと滞留に気づくことができます。
本記事では、レプリケーションキューの監視方法についてご紹介します。

 

【環境】
AEM 6.5

 

【対応方法】
レプリケーションキューに入っている公開対象のコンテンツのリストは次のURLにアクセスすることで取得できます。

 

例:
http://localhost:4502/etc/replication/agents.author/publish/jcr:content.queue.json

 

結果:

{
    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
        }
    ]
}

 

pathが対象のコンテンツのパスになります。定期的にcURLコマンドでキューに入っているコンテンツのリストを取得し、pathの値をカウントするなどして滞留の状況を確認できます。

 

例:
curl -u <user>:<password> "http://localhost:4502/etc/replication/agents.author/publish/jcr:content.queue.json"


<留意事項>
・上記は以下記事の抄訳/翻訳となります。
KB記事タイトル(英語) . Adobe Experience Manager: How to monitor a replication queue May 23, 2023, https://experienceleague.adobe.com/docs/experience-cloud-kcs/kbarticles/KA-22082.html, (参照 2023-05-23).
・本記事にいただいたコメントへの返信はお約束できません。あらかじめご了承ください。

0 Replies