Skip to main content


what VPS offer fits best for a small friendica instance?


@…ᘛ⁐̤ᕐᐷ jesuisatire bitPickup

This a a pretty good tutorial from @Hank G ☑️ for ubuntu:

https://www.nequalsonelifestyle.com/2022/07/30/creating-friendica-server-ubuntu/
It also covers some security - which is great.

You can try Friendica on a 1C,1G,25GB setup but you will run in some shortages pretty fast.

@Raroun @…ᘛ⁐̤ᕐᐷ jesuisatire bitPickup @Hank G ☑️ @bitPickup mʕ•ﻌ•ʔm @TupambAdmin agree, probably 4 core, 8GB Ram and 100 GB Storage are better, you will run into problema after 2-3 years I guess.

You need to keep in mind that you need much storage for all the content from other Fediverse servers, so database will grow because of the content and also because of all the contacts that your server will discover over time.

Also you need to have free space, so much that the biggest table of the database can be created as a copy during updates and also during maintenace/optimization that MariaDB/Mysql needs.

So better get a bit bigger and always keep enough free space.

You can however start out with the small VPS and upgrade sooner.

@utzer [Friendica]

It's a matter of monetary resources.
I live of like 200 bucks a month, I guess that the limite for "poor" people on this planet as of now, so I really want and need the minimum limit.

General idea is to set post expiriation except own post's and starred posts by others to 30 days, and in any case "outsource" DB storage for pictures, videos and or other files.

@bitPickup mʕ•ﻌ•ʔm @Hank G ☑️ @Raroun @TupambAdmin

th! @Hank G ☑️

👍

learning question:
In general terms, to adapt this to a debian installation there would basically be the issue of apt-get install tools that don't come preinstalled with debian like they do in in ubuntu like:
snap and ufw

What other differences would there be in using debian directly?

@Raroun
@bitPickup mʕ•ﻌ•ʔm @TupambAdmin

@utzer [Friendica]

> I meant the price, but nevermind.

Upss, sry I forgot to add the price, it didn't fit in the cpoy/paste: Option 1 -> 1Gig RAm 5 usd, option 4 -> 8GB ram 40 usd (per month)

@bitPickup mʕ•ﻌ•ʔm @Hank G ☑️ @Raroun @TupambAdmin

@utzer [Friendica]

btw
Just looked into uberspace, don't have the means to pay their service from where I am. Even tho I don't like the energy waste of btc, I can use the few satoshis I have left from like a decade ago to pay the VPS I'm looking for.

@bitPickup mʕ•ﻌ•ʔm @Hank G ☑️ @Raroun @TupambAdmin

@…ᘛ⁐̤ᕐᐷ jesuisatire bitPickup
You probably don´t need the ufw stuff if you set up public key authorization.
I also don´t use snap 😀
@…ᘛ⁐̤ᕐᐷ jesuisatire bitPickup
If you want, i can provide you a proper vps without any cost for one year (so you have time to try out) but it is ubuntu 😀
@…ᘛ⁐̤ᕐᐷ jesuisatire bitPickup
Well, i´m working in a big data center - if someone is intrested in friendica and don´t have much money, i mostly provide a server for one year.
For no costs.
To be fair - most people give up after 1-2 months -.-
But anyway. i can provide you a server for one year for no money.
After 12 Months the server will get deletet automatically. Also - i have no access to that server. Best i can do ist reset the root password or recover from a backup. Timeframe for backups are 10 days.
@…ᘛ⁐̤ᕐᐷ jesuisatire bitPickup
Actually it would be a 4 Core CPU, 8 GB Ram with 300GB NVME Disk - unlimited traffic.
I had a 6-core 12-thread server with 128GB and 1TB NVME not enough, moved to a 10-core 20-thread 5Ghz machine with 256GB. With 6-core there was always a backlog in the worker queue.
@Nanook
I use that machine exclussively for friendica.
10-core 20-thread 5Ghz machine with 256GB

What precisely are you running on this machine that it'd need such much resources?

Friendica, Hubzilla, Mastodon, Yacy, Nextcloud, about 100 virtual domains, a similiar number of WordPress sites, our own website, and personal websites for around 500 people, we do not prune history for any of these sites and right now there is about 2-1/2 years of friendica history. Friendica currently has around 2600 users.
@Nanook Thanks for the insight.
A couple of points, about half the memory of this machine is in use and half is just being buffer and cache, and of memory in use Yacy eats about 99 GB of it. If you do not allow the max yacy can allocate to be allocated to it, then it locks up and dies. The memory that isn't in use though is not unimportant. By allowing the machine to cache a large amount of data, it speeds it up considerably, memory is considerably faster even than flash let alone rotary disk. With Linux, from a performance perspective memory is really your friend and you can never have too much.
@Nanook @Andy H3
Im running my Friendica Instance on a D´dedicated Server - Amd Ryzen 9 Pro 3900, 12 Cores, 24 Threads with 960 GB NVMe and 128 GB RAM.
SOMETIMES - when contact discovery is running, even that machine has a good amount of load.

I guess I'll comment just as a data point, I have a digital ocean droplet with 2GB of RAM and a database that is stable at 30GB after 6 years of continual use. But it was quite a roller-coaster setting up garbage collection aggressively enough to keep the database stable. That server runs all my stuff too, email, XMPP, several other websites. I seem to be paying 30 USD per month, half of that storage. I'm the only user.

I've run test instances on Raspberry Pi Zeros with no trouble. I don't think the website runs very happily that way, but if you use an app then latency probably doesn't even matter.

Haha, of this I have no doubt 😛 Been meaning to move somewhere else, but I made the mistake of deciding to learn how to use docker at the same time, and well, funny how quickly six months of weekends flies by with no progress...

@Matthew Exon @bitPickup mʕ•ﻌ•ʔm @Andy H3 @…ᘛ⁐̤ᕐᐷ jesuisatire bitPickup @Raroun @TupambAdmin Tell me about it, and the older I get the faster it flies.

Time doesn't fly like an arrow, it flies like a laser beam towards obliteration.

i run my 40 people instance in a qemu kvm virtual machine on an older hetzner server together with a few other webserver and mailserver virtual machines, it has access to 4 cpu cores, 4gb ram and 100gb of storage space on an ssd. i did not enable remote contact fetch, as that filled up the harddisk quite quickly when i tried it, and also created a lot of workload on the server.
@…ᘛ⁐̤ᕐᐷ jesuisatire bitPickup @Hank G ☑️ The reason I don't like and won't use certbot is that it won't let you create certs that last longer than 3 months, and if apache hits a bad cert it can prevent the entire server from launching.

@…ᘛ⁐̤ᕐᐷ jesuisatire bitPickup
You can export your DB - depending on the old provider you do a full export (with mysql tables) or only a "friendica db backup".
If you only have a friendica DB backup you have to create a new mysql user and a new password.
if you have a full backup, you can change the password of your db user - which is your db-password 😀

sFTP should work out of the box with any Application that supports private key authorization - like scp or FileZilla.