Today's #adventuresInSelfHosting, I was having trouble with #cloudnativePG where I'd always have n-1 pods stable and they'd constantly restart between the replicas in a massive loop, then eventually switch with the primary and continue the process. So, I set the instance count to 3 so there'd at least be one stable read replica at a time.
I finally found out what was wrong. I have my #cnpg cluster in the postgresql-system
namespace and I happened to see that I had an operator running in the default cnpg-system
namespace. I don't know how long it had been there, so both it and the one in my namespace were both competing for the state. Deleting and cleaning up that old cluster brought immediate stability.
I also realized that I wasn't overriding the default #php configuration for #pixelfed, so when I uploaded an image taking on my phone, the web server would restart. I bumped the php memory up to 1GB for now. For the expected userbase for the upcoming #keyboardvagabond #fediverse space, this should be fine.
Right now the services are running well, but I need to do more testing and get mastodon into an "interesting" state for new visitors. Pixelfed seems the hardest for me in terms of getting content onto the server so that it doesn't look barren.
The todo list for now is:
- comprehensive testing
- get hcaptcha working on all services, or find an alternative
- add the community block list to pixelfed
- make pixelfed look interesting (any tips would be greatly appreciated!)
- get bookwyrm running
- create an intro landing website for www subdomain
- get the #soonTM mascot in there! I'm super excited for what comes out of that
- set up mastodon SSO/OAuth
It's getting close! The services are essentially ready, just not necessarily turned on for signups until I'm ready for a pre-launch or full launch. I want to make sure things are in a good state.
But with the 2 node #kubernetes #cluster, I think things should be good!
By then end, it should look like:
- a good landing page for getting involved both in keyboardvagabond and the fediverse
- #pixelfed
- #piefed
- #mastodon
- #writefreely
- #bookwyrm
- technically authentik, but that didn't wind up being as useful as I thought