DESCRIPTION

Print Memory Stats before/after Rebalance

Change-Id: I1f8e102bb9a52be3e822584e8b744ea75dfb6175
Signed-off-by: Amani Conrad gangal xxx@xxx.xxx


COMMENTS

author: Amani Conrad
date: 2012-05-02 17:41:02.517000000

Patch Set 1:

output from fragmentation print addition
---------

INCREMENTAL REBALANCE IN
2012-05-02 10:09:18,411 - root - INFO - tcmalloc fragmentation stats before Rebalance 
2012-05-02 10:09:18,444 - root - INFO - dict:{'username': 'Administrator', 'ip': u'10.1.3.67', 'password': 'password', 'port': 8091}
2012-05-02 10:09:18,444 - root - INFO - creating direct client 10.1.3.67:11210 bucket-0
2012-05-02 10:09:18,485 - root - INFO -  Stats {'total_fragmentation_bytes': '2917344', 'tcmalloc_current_thread_cache_bytes': '1280552', 'ep_mem_low_wat': '590767718', 'ep_overhead': '1762900', 'total_allocated_bytes': '5954592', 'ep_tmp_oom_errors': '0', 'total_heap_bytes': '9437184', 'ep_value_size': '106670', 'total_free_bytes': '565248', 'mem_used': '7569187', 'ep_max_data_size': '984612864', 'tcmalloc_unmapped_bytes': '0', 'tcmalloc_max_thread_cache_bytes': '33554432', 'ep_oom_errors': '0', 'ep_mem_high_wat': '738459648', 'ep_kv_size': '187000'}
ip:10.1.3.69 ssh_username:jenkins
2012-05-02 10:09:19,120 - root - INFO - adding node 10.1.3.69:8091 to cluster
2012-05-02 10:09:19,121 - root - INFO - adding remote node : 10.1.3.69 to this cluster @ : 10.1.3.67
2012-05-02 10:09:19,286 - root - INFO - rebalance params : password=password&ejectedNodes=&user=Administrator&knownNodes=ns_1%4010.1.3.67%2Cns_1%4010.1.3.69
2012-05-02 10:09:19,294 - root - INFO - rebalance operation started
2012-05-02 10:09:20,310 - root - INFO - rebalance percentage : 0.0 %
2012-05-02 10:09:21,310 - root - INFO - doc-get-taskfd170f5: 800 ops completed
2012-05-02 10:09:21,310 - root - INFO - doc-load-task9e19fb1: 1000 ops completed
2012-05-02 10:09:21,318 - root - INFO - rebalance percentage : 14.5833333333 %
2012-05-02 10:09:22,334 - root - INFO - rebalance percentage : 29.1666666667 %
2012-05-02 10:09:23,347 - root - INFO - rebalance percentage : 45.8333333333 %
2012-05-02 10:09:24,356 - root - INFO - rebalance percentage : 60.4166666667 %
2012-05-02 10:09:25,364 - root - INFO - rebalance percentage : 68.75 %
2012-05-02 10:09:26,371 - root - INFO - rebalance percentage : 73.9583333333 %
2012-05-02 10:09:27,380 - root - INFO - rebalance percentage : 77.0833333333 %
2012-05-02 10:09:28,389 - root - INFO - rebalance percentage : 81.25 %
2012-05-02 10:09:29,397 - root - INFO - rebalance percentage : 86.4583333333 %
2012-05-02 10:09:30,405 - root - INFO - rebalance percentage : 90.625 %
2012-05-02 10:09:32,413 - root - INFO - rebalance percentage : 98.9583333333 %
2012-05-02 10:09:34,422 - root - INFO - tcmalloc fragmentation stats after Rebalance 
2012-05-02 10:09:34,455 - root - INFO - dict:{'username': 'Administrator', 'ip': u'10.1.3.67', 'password': 'password', 'port': 8091}
2012-05-02 10:09:34,456 - root - INFO - creating direct client 10.1.3.67:11210 bucket-0
2012-05-02 10:09:34,498 - root - INFO -  Stats {'total_fragmentation_bytes': '2260608', 'tcmalloc_current_thread_cache_bytes': '1607976', 'ep_mem_low_wat': '590767718', 'ep_overhead': '1840680', 'total_allocated_bytes': '6824320', 'ep_tmp_oom_errors': '0', 'total_heap_bytes': '9437184', 'ep_value_size': '213340', 'total_free_bytes': '352256', 'mem_used': '7848945', 'ep_max_data_size': '984612864', 'tcmalloc_unmapped_bytes': '0', 'tcmalloc_max_thread_cache_bytes': '33554432', 'ep_oom_errors': '0', 'ep_mem_high_wat': '738459648', 'ep_kv_size': '374000'}

-------------------------------------
author: Reid Stokes
date: 2012-05-02 19:10:04.826000000

Patch Set 1: I would prefer that you didn't submit this

(3 inline comments)



Line:212, lib/tasks/task.py -> For all buckets..

Line:218, lib/tasks/task.py -> Can you have \n in the log.info.
and also the ip of machine

self.log.info(" ip %s : Stats %s \n")..... more easy to see

Line:297, lib/tasks/task.py -> Remove the whitespace

-------------------------------------
