Commit 52c27bd
committed
fix: [torrust#1510] disable torrent stats importation at start
The the tracker starts if stats persistence is enabled, all torrents
that have ever been downloaded are loaded into memory (Swarms type) with
their downloads counter.
That's the current way to count all downloads ans expose that mertric.
However, it does not work with millions of torrents (like in the tracker
demo) becuase:
- It's too slow.
- It consumes too much memory (all torrents that have ever been
downloaded have to be loaded).
It's needed a new solution to keep that metric, but in the mean time
this disables that feature, producing
- Non accurate value for downloads when the tracker is restarted
- Increasing indefenitively the number of torrents in memory even if the
"remove peerless torrents" policy is enabled (becuase this fetaure
overrides that policy and peerless torrents are kept in memory).1 parent 672dfaa commit 52c27bd
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
65 | 70 | | |
66 | 71 | | |
67 | 72 | | |
| |||
110 | 115 | | |
111 | 116 | | |
112 | 117 | | |
| 118 | + | |
113 | 119 | | |
114 | 120 | | |
115 | 121 | | |
| |||
0 commit comments