Kevin Beaumont on Nostr: If anybody runs a Mastodon server and wants some unsolicited advice - alter Content ...
If anybody runs a Mastodon server and wants some unsolicited advice - alter Content retention -> Media cache retention period to a small number.
At Cyberplace we run it at 2 days. Do you not need it to be unlimited, or a high number.
If a user requests an old toot, they automatically download the original media - it's transparent to user.
If you cache media it's very very expensive as it consumes vast amount of data - around 40gb a day with ~10k users, from experience.
Published at
2024-09-07 20:47:54Event JSON
{
"id": "503e432ce6fba98b595e18119acf505b60e8c9beb59c9b3a4510e00493a8547e",
"pubkey": "fe31a74ce7a735689686a4a8bdb765a8f4db945d91b67412c75058a82a51cffd",
"created_at": 1725742074,
"kind": 1,
"tags": [
[
"proxy",
"https://cyberplace.social/@GossiTheDog/113098232564096070",
"web"
],
[
"imeta",
"url https://cyberplace.social/system/media_attachments/files/113/098/223/094/211/346/original/53e42508d7ae0622.png",
"m image/png"
],
[
"proxy",
"https://cyberplace.social/users/GossiTheDog/statuses/113098232564096070",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://cyberplace.social/users/GossiTheDog/statuses/113098232564096070",
"pink.momostr"
],
[
"-"
]
],
"content": "If anybody runs a Mastodon server and wants some unsolicited advice - alter Content retention -\u003e Media cache retention period to a small number.\n\nAt Cyberplace we run it at 2 days. Do you not need it to be unlimited, or a high number. \n\nIf a user requests an old toot, they automatically download the original media - it's transparent to user.\n\nIf you cache media it's very very expensive as it consumes vast amount of data - around 40gb a day with ~10k users, from experience.\nhttps://cyberplace.social/system/media_attachments/files/113/098/223/094/211/346/original/53e42508d7ae0622.png\n",
"sig": "04f91583297915d146425fb4e0b6fd03b93b3cc4b8bdb505f7fb31673ce2c58787679e6f083793380767bfb7af898d9de4193817a6aa4c9139799486e8d0b8c4"
}