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
Suggested server architecture and size #2
Comments
Great idea, Lightsail should work just fine for hosting the Minipub service. It should run in the smallest sized Lightsail instance with no issue. For comparison, it runs in a Cloudflare Worker, which is a single JavaScript isolate with at most 128mb ram. You will also have trouble using any significant amount of disk space with Minipub, since it only stores information about the users / user profile images, text comments that it produces. Any flavor of Linux should be fine, the Minipub installation instructions for self-hosting are OS agnostic, the primary requirement is to be able to install Deno with typically a one-liner If I misunderstood and you meant running your own Mastodon instance (ie something that could be the target of incoming Minipub comments), I would suggest one with at least 1GB of ram. I'm planning on using these notes along with the standard Mastodon installation instructions when I have time to do that. And I would stick with the recommended Ubuntu 18.04 base image for Mastodon. |
Thanks. I'll have a play - I don't much want to run a full comment server, and minipub looks ideal. Would suggest specifying the suggested size in the docs. I'm sure it would work as a Lambda function too, but I lack the brains. |
Amazon Linux 2, or CentOS 7, is sadly a no-go. |
Ugh, sorry. Looks like you're running into denoland/deno#13516 Deno releases quickly, and will probably have that fixed in the next point release, since it affects so many people. In the meantime, try installing the prior version: curl -fsSL https://deno.land/x/install/install.sh | sh -s v1.17.3 |
Some documentation for you: On Amazon Linux 2, here's how to install a compatible version of deno:
Open
...adding these two lines at the bottom
Open a new terminal window. Type ...then go to instruction 2 on https://minipub.dev/get-started On instruction 4:
For example, in your Lightsail control panel, you'll want to go to click the 'networking' tab, and "add rule". You want a "Custom" application, protocol TCP, port 2022. ... however, I'm a little stumped for instruction 5. I don't know where storage.db lives, or what I need to do with that. |
Thanks - I think ultimately I'd like to keep the getting started page curt, and link off to a separate self-hosting doc page with comprehensive docs for each option and OS-specific stuff. I'll definitely include lightsail docs on this page. In lieu of this yet-to-be-written comprehensive page, the cli should at least provide a hint as to the parameters of each minipub server should dump something like this:
So You'll need to make sure deno can write to whatever path you specify, which will depend on how you installed the If you used |
Deno finally got to the bottom of that regression for older glibc environments. Apparently fixed as of Deno 1.19.3, which is currently the latest version. |
Imagine you're a dim person who really doesn't understand this world but would like to have a play...
Which of these would be recommended?
(These are the standard AWS Lightsail builds, which dim people who don't really understand this world are a fan of using since they keep things simple, it turns out)
And - what flavour of Linux would be ideal? Is it likely to work on Amazon Linux (which is a flavour of CentOS)?
The text was updated successfully, but these errors were encountered: