Unsolicited opinion: If #Mastodon wants to be a part of the #Fediverse that encourages small #selfhosted instances to be part of the whole, then it has to be a lean system able to be installed on second-hand/hand-me-down hardware and it should run reas...
-
Cadu Silva :v_blue:replied to Chris Alemany🇺🇦🇨🇦🇪🇸 on last edited by
@chris Puma is also very resource hungry.
I'm running bolha.one using two VMs, both eating around 10 GB of RAM (combined).
This includes Mastodon itself (Ruby, Puma, Node, etc), OpenSearch, PostgreSQL and Valkey.
I also had LibreTranslate installed, but it's now in another third-party server.
-
Chris Alemany🇺🇦🇨🇦🇪🇸replied to Cadu Silva :v_blue: on last edited by
@cadusilva It’s a lot!
-
Cadu Silva :v_blue:replied to Chris Alemany🇺🇦🇨🇦🇪🇸 on last edited by
@chris absolutely!
People interested in running their own instance should instead look to GoToSocial, Akkoma, Snac2, some Misskey fork or Hollo.
All of those serves the purpose of single or multi-user instance and can even be run in an old Raspberry Pi with only 512 MB of RAM (GoToSocial with sqlite as database).
I don't think Mastodon will ever be lightweight because of its inner gears and additional software (ElasticSearch et al.).
-
Chris Alemany🇺🇦🇨🇦🇪🇸replied to Cadu Silva :v_blue: on last edited by
@cadusilva if perhaps one day there is the ability to move one's posts/history over then people will find their preferred platform that suits their situation more closely.
-
Renaud Chaputreplied to Chris Alemany🇺🇦🇨🇦🇪🇸 on last edited by
@chris @sheogorath This is part of why we are working on https://www.fediscovery.org
Ideally, once this is done, you could run your instance without ElasticSearch and get very good search results (even better than with ES).
You can not have a fully distributed system, with all features that modern social media has, while not using a lot of resources. -
Chris Alemany🇺🇦🇨🇦🇪🇸replied to Renaud Chaput on last edited by
@renchap @sheogorath I had not heard of fediscovery.org! A good solution!
-
-
Edwin G. :mapleleafroundel:replied to Chris Alemany🇺🇦🇨🇦🇪🇸 on last edited by
@chris I spent a couple of days without ElasticSearch… it was horrible for searching my own posts.
Now, I will have a look at OpenSearch (?). It might fit my purpose better than ES.
-
[email protected]replied to Chris Alemany🇺🇦🇨🇦🇪🇸 on last edited by
IRC, or XMPP at worst, should be the gold standard to follow here. Those things can be installed on Pentium IVs that you can get from rural school trash yards, and still run reasonably well.
-
Jérômereplied to Edwin G. :mapleleafroundel: on last edited by
-
SomethingGenericreplied to Chris Alemany🇺🇦🇨🇦🇪🇸 on last edited by
@chris id argue it should also try its best to become single exec, so ir can be OS/distro agnostic too, but that's a major PITA
-
Chris Alemany🇺🇦🇨🇦🇪🇸replied to SomethingGeneric on last edited by
@SomethingGeneric a long term but very worthy goal!
-
Chris Alemany🇺🇦🇨🇦🇪🇸replied to Edwin G. :mapleleafroundel: on last edited by
@EdwinG yes I saw mention of it in the last release notes. I will be interested in your experience!
-
Sean Boyer 🇵🇸 FREE PALESTINEreplied to Chris Alemany🇺🇦🇨🇦🇪🇸 on last edited by
-
-
Philipp Krennreplied to Chris Alemany🇺🇦🇨🇦🇪🇸 last edited by
@chris
1. not sure you're seen it already, but if you have docker you can just run "curl -fsSL https://elastic.co/start-local | sh" to get going (https://www.elastic.co/guide/en/elasticsearch/reference/current/run-elasticsearch-locally.html#local-dev-quick-start)
2. while elasticsearch won't be tiny, the most common problem is that people don't configure the heap size and then elasticsearch assumes that it should own the entire machine. will depend on your activity and the initial data import but 1GB should get you going.
I'd also say that some of the java dislike is a bit dated at this point -
@jerome @EdwinG @chris I'm clearly biased here but we'd say that it's rather the opposite: https://www.elastic.co/blog/elasticsearch-opensearch-performance-gap
-
Chris Alemany🇺🇦🇨🇦🇪🇸replied to Philipp Krenn last edited by
@xeraa thanks! I’m running a strait install on Debian. Can you point to some configuration options for the Heap size?
-
-
Philipp Krennreplied to Chris Alemany🇺🇦🇨🇦🇪🇸 last edited by
@chris yes: https://www.elastic.co/guide/en/elasticsearch/reference/current/advanced-configuration.html
1. create a file in /etc/elasticsearch/jvm.options.d/ with the custom config (this will survive upgrades; don't change the jvm.options file directly)
2. try something like 700m as a starting point. you might be able to go a bit lower. or with more activity you might need to go higher. there are details on the setting page for Xmx + Xms — this is what you want