rimu,
@rimu@mastodon.nzoss.nz avatar

Quite happy with the speed of the background task that ingests data sent to from other servers. Most Activitys are processed in around 0.1 seconds, average of 0.22 seconds, or ~5 per second. This is with just one worker process.

If a 4 core VPS can handle 6(?) worker processes/threads it'll do 6 * 5 = 30 per sec.

Based on the load of https://kglitch.social I expect at most 3 per second.

That'll be fine for now.

Graph comparing the times taken by each task
POSTs coming into kglitch.social

rimu,
@rimu@mastodon.nzoss.nz avatar

Glad to report that I've figured out what was causing some activities to spike to up to 1.4 seconds and fixed it. That should bring the average down to 0.1 seconds, or 10 Activities processed per second. Decent!

When an Activity arrives if it's the first time one from that instance or that user has arrived, there are a few extra network requests PieFed needs to make to ensure the Activity data is fully fleshed out. Fortunately most of them can be deferred to future background tasks.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • fediverse
  • thenastyranch
  • DreamBathrooms
  • tacticalgear
  • magazineikmin
  • khanakhh
  • everett
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • ethstaker
  • InstantRegret
  • kavyap
  • ngwrru68w68
  • megavids
  • cisconetworking
  • cubers
  • osvaldo12
  • modclub
  • GTA5RPClips
  • tester
  • Durango
  • provamag3
  • anitta
  • Leos
  • normalnudes
  • JUstTest
  • lostlight
  • All magazines