##// END OF EJS Templates
docs/usage: rework section on statistics
Thomas De Schampheleire -
r4974:ac7e4332 default
parent child Browse files
Show More
@@ -1,33 +1,31 b''
1 .. _statistics:
1 .. _statistics:
2
2
3 ==========
3 =====================
4 Statistics
4 Repository statistics
5 ==========
5 =====================
6
6
7 The Kallithea statistics system makes heavy demands of the server resources, so
7 Kallithea has a ``repository statistics`` feature, disabled by default. When
8 in order to keep a balance between usability and performance, the statistics are
8 enabled, the amount of commits per committer is visualized in a timeline. This
9 cached inside db and are gathered incrementally. This is how Kallithea does
9 feature can be enabled using the ``Enable statistics`` checkbox on the
10 this:
10 repository ``Settings`` page.
11
11
12 With Celery disabled
12 The statistics system makes heavy demands on the server resources, so
13 --------------------
13 in order to keep a balance between usability and performance, statistics are
14 cached inside the database and gathered incrementally.
15
16 When Celery is disabled:
14
17
15 - On each first visit to the summary page a set of 250 commits are parsed and
18 On each first visit to the summary page a set of 250 commits are parsed and
16 updates statistics cache.
19 added to the statistics cache. This incremental gathering also happens on each
17 - This happens on each single visit to the statistics page until all commits are
20 visit to the statistics page, until all commits are fetched.
18 fetched. Statistics are kept cached until additional commits are added to the
19 repository. In such a case Kallithea will only fetch the new commits when
20 updating its cache.
21
22
21
23 With Celery enabled
22 Statistics are kept cached until additional commits are added to the
24 -------------------
23 repository. In such a case Kallithea will only fetch the new commits when
24 updating its statistics cache.
25
25
26 - On the first visit to the summary page Kallithea will create tasks that will
26 When Celery is enabled:
27 execute on Celery workers. This task will gather all of the stats until all
28 commits are parsed, each task will parse 250 commits, and run the next task to
29 parse the next 250 commits until all of the commits are parsed.
30
27
31 .. note::
28 On the first visit to the summary page, Kallithea will create tasks that will
32 At any time you can disable statistics on each repository via the repository
29 execute on Celery workers. These tasks will gather all of the statistics until
33 edit form in the admin panel. To do this just uncheck the statistics checkbox.
30 all commits are parsed. Each task parses 250 commits, then launches a new
31 task.
General Comments 0
You need to be logged in to leave comments. Login now