~david-goetz/swift/wal_again

« back to all changes in this revision

Viewing changes to bin/swift-account-stats-logger

  • Committer: Tarmac
  • Author(s): gholt
  • Date: 2011-06-16 21:12:04 UTC
  • mfrom: (291.19.6 postcopy)
  • mto: This revision was merged to the branch mainline in revision 294.
  • Revision ID: tarmac-20110616211204-s5slh4h8nt9mrd2v
You can specify X-Newest: true on GETs and HEADs to indicate you want Swift to query all backend copies and return the newest version retrieved.
Object COPY requests now always copy the newest object they can find.
Object POSTs are implemented as COPYs now by default (you can revert to previous implementation with conf object_post_as_copy = false)
Account and container GETs and HEADs now shuffle the nodes they use to balance load.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# See the License for the specific language governing permissions and
15
15
# limitations under the License.
16
16
 
17
 
from swift.stats.account_stats import AccountStat
 
17
from swift.stats.db_stats_collector import AccountStatsCollector
18
18
from swift.common.utils import parse_options
19
19
from swift.common.daemon import run_daemon
20
20
 
21
21
if __name__ == '__main__':
22
22
    conf_file, options = parse_options()
23
 
    # currently AccountStat only supports run_once
 
23
    # currently AccountStatsCollector only supports run_once
24
24
    options['once'] = True
25
 
    run_daemon(AccountStat, conf_file, section_name='log-processor-stats',
 
25
    run_daemon(AccountStatsCollector, conf_file,
 
26
               section_name='log-processor-stats',
26
27
               log_name="account-stats", **options)