about summary refs log tree commit diff
path: root/docs
diff options
context:
space:
mode:
authorAkihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp>2018-05-04 00:32:00 +0900
committerEugen Rochko <eugen@zeonfederated.com>2018-05-03 17:32:00 +0200
commitb1d4471e36830aa7dc4425ff6c48035a95c9367a (patch)
tree1a81358c283066d05ba1dba60e908537260ae167 /docs
parent7495a3470e7d2df139facacf24eca787f3422569 (diff)
Throttle media post (#7337)
The previous rate limit allowed to post media so fast that it is possible
to fill up the disk space even before an administrator notices. The new
rate limit is configured so that it takes 24 hours to eat 10 gigabytes:
10 * 1024 / 8 / (24 * 60 / 30) = 27 (which rounded to 30)

The period is set long so that it does not prevent from attaching several
media to one post, which would happen in a short period. For example,
if the period is 5 minutes, the rate limit would be:
10 * 1024 / 8 / (24 * 60 / 5) = 4

This long period allows to lift the limit up.
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions