Closed jwadolowski closed 9 years ago
I just decided to re-run agent tests against clean AEM6 and the results are as follows (same agents as on 5.6.1 are available by default):
flush
ID flush
Valid? true
Enabled false
Blocked false
Paused false
Entries 0
e is paused.</p><input type='submit' value='Save' /></form></td></tr><tr><td title='Returns the number of entries in the replication queue.'>QueueNumEntries</td><td data-type='long'>0</td></tr><tr><td title='Gets the time when this status was generated'>QueueStatusTime</td><td data-type='java.util.Date'><null></td></tr><tr><td title='Checks if the agent is active'>Enabled</td><td data-type='boolean'>false</td></tr><tr><td title='Checks if agent is valid'>Valid</td><td data-type='boolean'>true</td></tr><tr><td title='Returns the id of the agent. The id is unique among the agents'>Id</td><td data-type='java.lang.String'>flush</td></tr></tbody></table><table class="operations nicetable"><caption>Operations</caption><thead><tr><th class="col_ReturnType">Return Type</th><th class="col_Name">Name</th></tr></thead><tbody><tr><td class="returntype">void</td><td class="name"><h4 class='editable'><span class='name'>queueClear</span>()</h4><p class='desc'>Clears the queue and removes all queue entries</p><div class='dialog'><h4>void queueClear()</h4><p class='desc'>Clears the queue and removes all queue entries</p><form method='POST' action='/system/console/jmx/com.adobe.granite.replication%3Aid%3D%22flush%22%2Ctype%3Dagent/op/queueClear/'><ol></ol><input type='submit' value='Invoke' /></form><pre class='output'></pre></div></td></tr><tr><td class="returntype">void</td><td class="name"><h4 class='editable'><span class='name'>queueForceRetry</span>()</h4><p class='desc'>Forces a retry attempt on a blocked entry. this has only an effect, if the queue is blocked.</p><div class='dialog'><h4>void queueForceRetry()</h4><p class='desc'>Forces a retry attempt on a blocked entry. this has only an effect, if the queue is blocked.</p><form method='POST' action='/system/console/jmx/com.adobe.granite.replication%3Aid%3D%22flush%22%2Ctype%3Dagent/op/queueForceRetry/'><ol></ol><input type='submit' value='Invoke' /></form><pre class='output'></pre></div></td></tr></tbody></table></div> </div> </body></html>
Next retry time
Processing since
Last processing time
offloading_outbox
/table></div> </div> </body></html>
Valid? true
Enabled true
Blocked false
Paused false
Entries 0
Status time 2015-05-06T10:47:43+0000
Next retry time
Processing since
Last processing time
publish
ID publish
Valid? true
Enabled true
Blocked false
Paused false
Entries 0
Status time 2015-05-06T10:47:56+0000
Next retry time
Processing since
Last processing time
publish_reverse
iv> </div> </body></html>
Valid? true
Enabled true
Blocked false
Paused false
Entries 0
Status time 2015-05-06T10:48:07+0000
Next retry time
Processing since
Last processing time
static
ID static
Valid? true
Enabled false
Blocked false
Paused false
Entries 0
eue is paused.</p><input type='submit' value='Save' /></form></td></tr><tr><td title='Returns the number of entries in the replication queue.'>QueueNumEntries</td><td data-type='long'>0</td></tr><tr><td title='Gets the time when this status was generated'>QueueStatusTime</td><td data-type='java.util.Date'><null></td></tr><tr><td title='Checks if the agent is active'>Enabled</td><td data-type='boolean'>false</td></tr><tr><td title='Checks if agent is valid'>Valid</td><td data-type='boolean'>true</td></tr><tr><td title='Returns the id of the agent. The id is unique among the agents'>Id</td><td data-type='java.lang.String'>static</td></tr></tbody></table><table class="operations nicetable"><caption>Operations</caption><thead><tr><th class="col_ReturnType">Return Type</th><th class="col_Name">Name</th></tr></thead><tbody><tr><td class="returntype">void</td><td class="name"><h4 class='editable'><span class='name'>queueClear</span>()</h4><p class='desc'>Clears the queue and removes all queue entries</p><div class='dialog'><h4>void queueClear()</h4><p class='desc'>Clears the queue and removes all queue entries</p><form method='POST' action='/system/console/jmx/com.adobe.granite.replication%3Aid%3D%22static%22%2Ctype%3Dagent/op/queueClear/'><ol></ol><input type='submit' value='Invoke' /></form><pre class='output'></pre></div></td></tr><tr><td class="returntype">void</td><td class="name"><h4 class='editable'><span class='name'>queueForceRetry</span>()</h4><p class='desc'>Forces a retry attempt on a blocked entry. this has only an effect, if the queue is blocked.</p><div class='dialog'><h4>void queueForceRetry()</h4><p class='desc'>Forces a retry attempt on a blocked entry. this has only an effect, if the queue is blocked.</p><form method='POST' action='/system/console/jmx/com.adobe.granite.replication%3Aid%3D%22static%22%2Ctype%3Dagent/op/queueForceRetry/'><ol></ol><input type='submit' value='Invoke' /></form><pre class='output'></pre></div></td></tr></tbody></table></div> </div> </body></html>
Next retry time
Processing since
Last processing time
test_and_target
iv> </div> </body></html>
Valid? true
Enabled true
Blocked false
Paused false
Entries 0
Status time 2015-05-06T10:48:29+0000
Next retry time
Processing since
Last processing time
Hi Jakub,
I have fixed processing of replication agent status as well as hardened sling stats and JCR status. This is fixed in branch CQM-117
.
Even when there is a problem processing an output there won't garbage there. Instead of this some entries will be empty.
I would be grateful if you could check all your instances in online mode. On CQ 5.5 it works without problems. It works as well for CQ 5.6.1/AEM 6 markups.
Please reopen this issue if there is a still problem with cqmon regarding processing of existing replication agents.
BTW: I have also added helpful message for cqmon usage screen:
Options:
-u use specified username for connection
-p use provided password for authentication
-i use specified instance URL to connect
-r AGENTID show agent queue stats.
Use:
cqjcr [CQ OPTIONS] -l /etc/replication/agents.author
for list of replication agents on author.
Use:
cqjcr [CQ OPTIONS] -l /etc/replication/agents.publish
for list of replication agents on publish.
Thanks, Arek
Hi Arek,
thanks!
Just tested that on clean 5.6.1 and it definitely looks better:
$ projects/CQ-Unix-Toolkit (CQM-117) » ./cqmon -u admin -p admin -i http://192.168.123.100:4502 -r flush
ID flush
Valid? true
Enabled false
Blocked false
Paused false
Entries 0
Status time
Next retry time
Processing since
Last processing time
$ projects/CQ-Unix-Toolkit (CQM-117) » ./cqmon -u admin -p admin -i http://192.168.123.100:4502 -r offloading_outbox
ID offloading_outbox
Valid? true
Enabled true
Blocked false
Paused false
Entries 0
Status time 2015-05-11T08:41:15+0000
Next retry time
Processing since
Last processing time
$ projects/CQ-Unix-Toolkit (CQM-117) » ./cqmon -u admin -p admin -i http://192.168.123.100:4502 -r publish
ID publish
Valid? true
Enabled true
Blocked false
Paused false
Entries 0
Status time 2015-05-11T08:41:19+0000
Next retry time
Processing since
Last processing time
$ projects/CQ-Unix-Toolkit (CQM-117) » ./cqmon -u admin -p admin -i http://192.168.123.100:4502 -r publish_reverse
ID publish_reverse
Valid? true
Enabled true
Blocked false
Paused false
Entries 0
Status time 2015-05-11T08:41:22+0000
Next retry time
Processing since
Last processing time
$ projects/CQ-Unix-Toolkit (CQM-117) » ./cqmon -u admin -p admin -i http://192.168.123.100:4502 -r static
ID static
Valid? true
Enabled false
Blocked false
Paused false
Entries 0
Status time
Next retry time
Processing since
Last processing time
$ projects/CQ-Unix-Toolkit (CQM-117) » ./cqmon -u admin -p admin -i http://192.168.123.100:4502 -r test_and_target
ID test_and_target
Valid? true
Enabled true
Blocked false
Paused false
Entries 0
Status time 2015-05-11T08:41:31+0000
Next retry time
Processing since
Last processing time
Will retest that on AEM6 in a matter of minutes.
Cheers, Kuba
Same test procedure run against AEM 6.0:
$ projects/CQ-Unix-Toolkit (CQM-117) » ./cqmon -u admin -p admin -i http://192.168.123.100:4502 -r flush
ID flush
Valid? true
Enabled false
Blocked false
Paused false
Entries 0
Status time
Next retry time
Processing since
Last processing time
$ projects/CQ-Unix-Toolkit (CQM-117) » ./cqmon -u admin -p admin -i http://192.168.123.100:4502 -r offloading_outbox
ID offloading_outbox
Valid? true
Enabled true
Blocked false
Paused false
Entries 0
Status time 2015-05-11T08:57:58+0000
Next retry time
Processing since
Last processing time
$ projects/CQ-Unix-Toolkit (CQM-117) » ./cqmon -u admin -p admin -i http://192.168.123.100:4502 -r publish
ID publish
Valid? true
Enabled true
Blocked false
Paused false
Entries 0
Status time 2015-05-11T08:58:03+0000
Next retry time
Processing since
Last processing time
$ projects/CQ-Unix-Toolkit (CQM-117) » ./cqmon -u admin -p admin -i http://192.168.123.100:4502 -r publish_reverse
ID publish_reverse
Valid? true
Enabled true
Blocked false
Paused false
Entries 0
Status time 2015-05-11T08:58:07+0000
Next retry time
Processing since
Last processing time
$ projects/CQ-Unix-Toolkit (CQM-117) » ./cqmon -u admin -p admin -i http://192.168.123.100:4502 -r static
ID static
Valid? true
Enabled false
Blocked false
Paused false
Entries 0
Status time
Next retry time
Processing since
Last processing time
$ projects/CQ-Unix-Toolkit (CQM-117) » ./cqmon -u admin -p admin -i http://192.168.123.100:4502 -r test_and_target
ID test_and_target
Valid? true
Enabled true
Blocked false
Paused false
Entries 0
Status time 2015-05-11T08:58:16+0000
Next retry time
Processing since
Last processing time
All in all - works great. Thanks again.
Hey,
just briefly tested
cqmon
command on a clean CQ 5.6.1 author instance and it seems something is wrong when it comes to displaying agent statistics.Here's the list of agents reported by
/system/console/jmx
:I tested each one of them and the output was as follows:
flush
offloading_outbox
publish
publish_reverse
static
test_and_target
PS. Both
-s
and-S
worked fine for CQ 5.6.1