diff --git a/storage/distributedstorage.py b/storage/distributedstorage.py index d13362d55..1544d9725 100644 --- a/storage/distributedstorage.py +++ b/storage/distributedstorage.py @@ -18,7 +18,6 @@ def _location_aware(unbound_func): storage = self._storages[preferred] if not storage: - print locations storage = self._storages[random.sample(locations, 1)[0]] storage_func = getattr(storage, unbound_func.__name__) diff --git a/tools/logsize.py b/tools/logsize.py deleted file mode 100644 index ec7339553..000000000 --- a/tools/logsize.py +++ /dev/null @@ -1,20 +0,0 @@ -import logging -import json -import numpy - -from app import app, storage as store - -storage = store._storages['s3_us_east_1'] -storage._initialize_cloud_conn() - -sizes = [] -for key in storage._cloud_bucket.list('logarchive'): - sizes.append(key.size) - -array = numpy.array(sizes) -print 'Max: %s' % max(sizes) -print 'Min: %s' % min(sizes) -print 'Avg: %s' % (float(sum(sizes))/len(sizes)) -print 'Median: %s' % numpy.median(array) -print 'Std: %s' % numpy.std(array) -print 'Percent <= 64k: %s' % (float(len([entry for entry in sizes if entry <= 64000]))/len(sizes))