Adding a counter of pushes since last garbage collection, incremented when pushed...
authorMarius Mathiesen <marius@shortcut.no>
Wed, 3 Feb 2010 14:38:03 +0000 (15:38 +0100)
committerMarius Mathiesen <marius@shortcut.no>
Wed, 3 Feb 2010 14:38:03 +0000 (15:38 +0100)
commit2ba975497d9d1fa0014d0414631210726c7ef0f3
treeec00b9e91ad2268b7366aaaf6dd9cfa443638831
parent95b7efce99f7c405cb0a50185f467f8aba74f932
Adding a counter of pushes since last garbage collection, incremented when pushed to and reset when gc-ed

The algorithm for finding gc candidates is unchanged, will run this in production and collect metrics for changing this the next few days.

- Also tracking disk usage for repositories, calculated when pushed to and stored in the database
app/models/repository.rb
app/processors/push_event_processor.rb
db/migrate/20100203132425_adding_disk_size_and_push_count_to_repositories.rb [new file with mode: 0644]
db/schema.rb
test/unit/repository_test.rb