<div dir="ltr">replication logs</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 20, 2014 at 9:32 PM, Matsuda, Kenichiro <span dir="ltr"><<a href="mailto:matsuda_kenichi@jp.fujitsu.com" target="_blank">matsuda_kenichi@jp.fujitsu.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Thank you for the info.<br>
<br>
I was able to get replication info easily by swift-recon API.<br>
But, I wasn't able to judge whether no failure from recon info of object-replicator.<br>
<br>
Could you please advise me for a way of get object-replicator's failure info?<br>
<br>
[replication info from recon]<br>
* account<br>
------------------------------------------------------------------------------<br>
# curl <a href="http://192.168.1.11:6002/recon/replication/account" target="_blank">http://192.168.1.11:6002/recon/replication/account</a> | python -mjson.tool<br>
{<br>
    "replication_last": 1416354262.7157061,<br>
    "replication_stats": {<br>
        "attempted": 20,<br>
        "diff": 0,<br>
        "diff_capped": 0,<br>
        "empty": 0,<br>
        "failure": 20,<br>
        "hashmatch": 0,<br>
        "no_change": 40,<br>
        "remote_merge": 0,<br>
        "remove": 0,<br>
        "rsync": 0,<br>
        "start": 1416354240.9761429,<br>
        "success": 40,<br>
        "ts_repl": 0<br>
    },<br>
    "replication_time": 21.739563226699829<br>
}<br>
------------------------------------------------------------------------------<br>
<br>
* container<br>
------------------------------------------------------------------------------<br>
# curl <a href="http://192.168.1.11:6002/recon/replication/container" target="_blank">http://192.168.1.11:6002/recon/replication/container</a> | python -mjson.tool<br>
{<br>
    "replication_last": 1416353436.9448521,<br>
    "replication_stats": {<br>
        "attempted": 13346,<br>
        "diff": 0,<br>
        "diff_capped": 0,<br>
        "empty": 0,<br>
        "failure": 870,<br>
        "hashmatch": 0,<br>
        "no_change": 1908,<br>
        "remote_merge": 0,<br>
        "remove": 0,<br>
        "rsync": 0,<br>
        "start": 1416349377.3627851,<br>
        "success": 1908,<br>
        "ts_repl": 0<br>
    },<br>
    "replication_time": 4059.5820670127869<br>
}<br>
------------------------------------------------------------------------------<br>
<br>
* object<br>
------------------------------------------------------------------------------<br>
# curl <a href="http://192.168.1.11:6002/recon/replication" target="_blank">http://192.168.1.11:6002/recon/replication</a> | python -mjson.tool<br>
{<br>
    "object_replication_last": 1416334368.60865,<br>
    "object_replication_time": 2316.5563162644703<br>
}<br>
# curl <a href="http://192.168.1.11:6002/recon/replication/object" target="_blank">http://192.168.1.11:6002/recon/replication/object</a> | python -mjson.tool<br>
{<br>
    "object_replication_last": 1416334368.60865,<br>
    "object_replication_time": 2316.5563162644703<br>
}<br>
------------------------------------------------------------------------------<br>
<br>
Best Regards,<br>
Kenichiro Matsuda.<br>
<br>
<br>
From: Clay Gerrard [mailto:<a href="mailto:clay.gerrard@gmail.com">clay.gerrard@gmail.com</a>]<br>
Sent: Friday, November 21, 2014 4:22 AM<br>
To: OpenStack Development Mailing List (not for usage questions)<br>
Subject: Re: [openstack-dev] [swift] a way of checking replicate completion on swift cluster<br>
<div class="HOEnZb"><div class="h5"><br>
You might check if the swift-recon tool has the data you're looking for.  It can report the last completed replication pass time across nodes in the ring.<br>
<br>
On Thu, Nov 20, 2014 at 1:28 AM, Matsuda, Kenichiro <<a href="mailto:matsuda_kenichi@jp.fujitsu.com">matsuda_kenichi@jp.fujitsu.com</a>> wrote:<br>
Hi,<br>
<br>
I would like to know about a way of checking replicate completion on swift cluster.<br>
(e.g. after rebalanced Ring)<br>
<br>
I found the way of using swift-dispersion-report from Administrator's Guide.<br>
But, this way is not enough, because swift-dispersion-report can't checking<br>
replicate completion for other data that made by not swift-dispersion-populate.<br>
<br>
And also, I found the way of using replicator's logs from Q&A.<br>
But, I would like to more easy way, because check of below logs is very heavy.<br>
<br>
  (account/container/object)-replicator * All storage node on swift cluster<br>
<br>
Could you please advise me for it?<br>
<br>
Findings:<br>
  Administrator's Guide  Cluster Health<br>
    <a href="http://docs.openstack.org/developer/swift/admin_guide.html#cluster-health" target="_blank">http://docs.openstack.org/developer/swift/admin_guide.html#cluster-health</a><br>
  how to check replicator work complete<br>
    <a href="https://ask.openstack.org/en/question/18654/how-to-check-replicator-work-complete/" target="_blank">https://ask.openstack.org/en/question/18654/how-to-check-replicator-work-complete/</a><br>
<br>
Best Regards,<br>
Kenichiro Matsuda.<br>
<br>
<br>
_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br>
_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</div></div></blockquote></div><br></div>