Does ActivityPub send those to other instances, or does ActivityPub only send the original post and the rest (upvotes, downvotes, replies) are stored only on the original server where the post was made?

You are viewing a single thread.
View all comments
-14 points

haven’t worked with AP yet, but as a webdev I’m certain it’s original server only. Syncing upvotes between nodes would be an insane datavolume and one hell to properly keep in sync to begin with.

permalink
report
reply
17 points

They are synced. There is an insane data volume, yes. It is hell.

permalink
report
parent
reply
5 points

no way, that’s a massive oof o.O

permalink
report
parent
reply
7 points

Yeah. A lot of hand-wringing has gone on about it, e.g. https://gist.github.com/jdarcy/60107fe4e653819138396257df302eef. I’ll post this and then show you a video of server activity that results.

permalink
report
parent
reply
10 points
*

My instance has 800 users, is 4 months old, and the database only is over 30GB. It is an insane amount of data.

permalink
report
parent
reply
3 points

How much RAM does your server have to handle a 30 GB database?

permalink
report
parent
reply
2 points
*

I’m a bad example. I haven’t properly tuned the settings, currently RAM will grow to whatever is available.

I’m very lucky, the instance is running in a proxmox container alongside some other fediverse servers (run by others), on dedicated hardware in a datacentre. The sysadmin has basically thrown me plenty of spare resources since the other containers aren’t using them and RAM not used is wasted, so I’ve got 32GB allocated currently. I still need to restart once a week or that RAM gets used up and the database container crashes.

It’s been on my list of things to do for a while, try some different postgres configs, but I just haven’t got around to it.

I know a couple of months back lemmy.world were restarting every 30 mins so they didn’t use up all the RAM and crash. I presume some time and some lemmy updates later that’s no longer the case.

I know some smaller servers get away with 2gb of RAM, and we should be able to use a lot less than 32GB if I actually try to tune the postgres config.

permalink
report
parent
reply
2 points

There is a postgres command to show the size of each table. Most likely it is from activity tables which can be cleared out to save space.

permalink
report
parent
reply
1 point

After the second-to-last update the database shrunk and I was under the impression there was some automatic removal happening. Was this not the case?

It’s helpful info for others but personally I’m not that worried about the database size. The size of the pictrs cache is much more of a concern, and as I understand it there isn’t an easy way to identify and remove cache images without accidentally taking out user image uploads.

permalink
report
parent
reply
6 points
*

[This comment has been deleted by an automated system]

permalink
report
parent
reply
4 points

Thanks, that’s very informative. How does this work since ActivityPub can be used for other things, e.g., Mastodon? They ignore any “Type” entries that they don’t support?

permalink
report
parent
reply
8 points
*

[This comment has been deleted by an automated system]

permalink
report
parent
reply
5 points

It does sync them, I can even query all of your votes on my local DB for every community my instance is tracking.

permalink
report
parent
reply

Asklemmy

!asklemmy@lemmy.ml

Create post

A loosely moderated place to ask open-ended questions

Search asklemmy 🔍

If your post meets the following criteria, it’s welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

Icon by @Double_A@discuss.tchncs.de

Community stats

  • 9.5K

    Monthly active users

  • 5.6K

    Posts

  • 303K

    Comments