Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scaling question #3

Open
test2a opened this issue Mar 28, 2021 · 6 comments
Open

scaling question #3

test2a opened this issue Mar 28, 2021 · 6 comments

Comments

@test2a
Copy link

test2a commented Mar 28, 2021

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
Copy link
Owner

guysoft commented Mar 28, 2021

  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
Copy link
Author

test2a commented Mar 29, 2021

@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
Copy link
Owner

guysoft commented Mar 29, 2021

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
Copy link
Author

test2a commented Mar 29, 2021

@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
Copy link
Owner

guysoft commented Mar 29, 2021

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

@guysoft
Copy link
Owner

guysoft commented Feb 4, 2022

Related: #8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants