guysoft / PleromaPi

RaspberryPi / CustomPiOS distro that run Pleroma out of the box
GNU General Public License v3.0
35 stars 1 forks source link

scaling question #3

Open test2a opened 3 years ago

test2a commented 3 years ago

HI. I would like to test this project out because it "sounds" like a fun one. i just have a few questions. Any answers are welcome

  1. Raspberry pi 4 2Gb model. How many concurrent users can this handle? if we use only third party clients like fedilab and save on web interface, would that matter?
  2. horizontal scaling ? if one pi is good, would having 3 be better? can the software use it or is this limited to one physical pi ?
  3. would disabling images uploading do any good because i assume text only would save on image processing, network usage, displaying, etc.
guysoft commented 3 years ago
  1. I didn't test, depends how intensity they are using it. I saw far greater performance than Mastodon, for instance. Who is "we"? What is your aim or goal?
  2. To horizontal scale you will have to set up some kind of cluster, something like kubernetes on a pi and something to balance the node, perhaps put the database on its own pi. It would be a different setup than this image. If you never hosted an instance, this image would give you a good start to see what you actually need. Also how to set up storage.
  3. Text is faster, but images and videos is kinda how humans assimilate information - again, what is your goal?
test2a commented 3 years ago

@guysoft thank you for responding. The "aim" is for a family only instance, because i know for certain noone is going to use the web interface, i want to "save up" on that. i am not sure how many, lets say 20 users? 30 at max?

I have been running a few instances on VPS for some time now, one mailinabox server, another similar thing and i have done some thing with a selfhosted peertube instance back some time ago but no clustering, that is something new for me.

I want to "force" text only because i don't have storage for this new venture yet. I want to see if an old laptop hdd would suffice speed wise or i need an ssd, then its just a matter of adding drives but the limitation of a single pi would cause issues? i dont know

guysoft commented 3 years ago

From my experience I'd recommended:

  1. Get a dedicated drive and powered hub. I have 4TB WD elements drive. And another that backs up nightly. I am also working on an off-site solution (See BackupFriend). You want your family data safe and backed up. This is also enough for photos. Pleroma does not compress uploaded images. So just keep that in mind of people are uploading big photos. I think even 2TB is a lot for this.
  2. Depending on your internet speed, I think it should hold everyone.
test2a commented 3 years ago

@guysoft thanks a ton. That should be it. I will buy one and get started right away. I have two connections, one 30Mbps and second 100Mbps. both have symmetric upload and download speed so i don't really care about that thing. i suppose i would have to set a size limit on photo uploads, i think the config allows that.

Anyways, will keep you posted on the status of the project. Thanks again for your work

guysoft commented 3 years ago

The auto-mount usb is not implemented yet. Not sure when I will get to that

guysoft commented 2 years ago

Related: https://github.com/guysoft/PleromaPi/issues/8