diff --git a/config.toml b/config.toml index 2155550..c390ce1 100644 --- a/config.toml +++ b/config.toml @@ -65,6 +65,12 @@ theme = 'LoveIt' [params.footer] enable = true + custom = '' + hugo = false + copyright = true + author = true + since = 2020 + license = '' # LoveIt NEW | 0.2.0 App icon config [params.app] @@ -198,7 +204,7 @@ theme = 'LoveIt' # LoveIt NEW | 0.2.0 whether to enable twemoji twemoji = false # whether to enable lightgallery - lightgallery = false + lightgallery = true # LoveIt NEW | 0.2.0 whether to enable the ruby extended syntax ruby = true # LoveIt NEW | 0.2.0 whether to enable the fraction extended syntax @@ -212,9 +218,9 @@ theme = 'LoveIt' # LoveIt NEW | 0.2.0 Table of the contents config [params.page.toc] # whether to enable the table of the contents - enable = true + enable = false # LoveIt NEW | 0.2.9 whether to keep the static table of the contents in front of the post - keepStatic = true + keepStatic = false # whether to make the table of the contents in the sidebar automatically collapsed auto = true # LoveIt CHANGED | 0.2.0 KaTeX mathematical formulas diff --git a/content/posts/mastodon_influx.md b/content/posts/mastodon_influx.md new file mode 100644 index 0000000..2712852 --- /dev/null +++ b/content/posts/mastodon_influx.md @@ -0,0 +1,37 @@ +--- +title: "Hosting mastodon.nz and the recent twitter influx" +tags: ["mastodon", "twitter", "self hosting"] +date: "2022-05-08" +draft: true +featuredimagepreview: "/server1.jpg" +--- + +Where to begin.. It's been an interesting fortnight! + +I started hosting [mastodon.nz](https://mastodon.nz) around January 2020 on my home 'server' for myself and few friends. It started off as a small LXC container inside Proxmox with 2 cores and 2GB RAM allocated. It stayed this way until about 6 months ago when I kept having scheduled power outages and I couldn't keep running it from my house while maintaining a reasonable uptime. + +{{< image src="/kitchen_server.jpg" caption="\"Server\" - April 2021" src_s="/kitchen_server.jpg" src_l="/kitchen_server_l.jpg" >}} + +Mid 2021 a good friend of mine offered a great deal on some actual hosting in a datacenter. Now we had 8vCPU + 8GB RAM to play with, time to migrate everything. After a few hours of mastering `rsync` and `pg_dump` - it was done, we were set for awhile. At least that's what I thought.. + +April 2022 brought a nice little surprise - I started getting notifications of new users joining [mastodon.nz](https://mastodon.nz). Confused I started to look at what has changed.. Didn't take long to realise this was only the beggining. I had to allocate more resource to the container to account for the higher throughput. + +You can see in the image below it started to approach the allocated 3GB - I bumped it up to 4GB, then shortly after up to 6GB. That's as much as I could give it without moving to bigger hardware. + +{{< image src="/masto_memory.jpg" caption="Memory usage in mastodon.nz container" >}} + +I thought that would be enough for now. Nope. I got an email from Sendgrid that we had hit their 100 email/day free tier limit. Crap. I managed to upgrade the plan to account for the burst of registrations before any emails started to bounce. + +{{< image src="/sendgrid.jpg" caption="Email throughput peaking around 400/day" >}} + +It was about at this time I figured we probably needed to look into the future of mastodon and if we plan on maintaining it long term with a much higher capacity. I jumped on trademe and started working out we could afford and what we needed to maintain a decent growth over the next 12+ months. Boom! Found the perfect thing in our price range. A second hand HP DL360p Gen8 - With 32 cores and 80GB ram. The only issue is disks. I've never been one to trust second hand disks. So went waaaay over budget and bought 2 x 500GB EVO870's and 2 x 2TB EVO870's to run in a ZFS mirror for storage. + +{{< image src="/server1.jpg" caption="New server" >}} + +{{< image src="/server_prov.jpg" caption="Provisioning everything (Excuse the mess)"src_s="/server_prov.jpg" src_l="/server_prov_l.jpg" >}} + +After about 6 hours of configuring and installing everything required, I was ready to make a trip to a local datacenter to rack it (Thanks to previously mentioned friend!) and start the painful migration. +// opnsense + +// IP + diff --git a/static/aprs.jpg~ b/static/aprs.jpg~ deleted file mode 100644 index c2c16e6..0000000 Binary files a/static/aprs.jpg~ and /dev/null differ diff --git a/static/aprs.png~ b/static/aprs.png~ deleted file mode 100644 index 708c8e8..0000000 Binary files a/static/aprs.png~ and /dev/null differ diff --git a/static/kitchen_server.jpg b/static/kitchen_server.jpg new file mode 100644 index 0000000..c8297a6 Binary files /dev/null and b/static/kitchen_server.jpg differ diff --git a/static/kitchen_server_l.jpg b/static/kitchen_server_l.jpg new file mode 100755 index 0000000..864adf8 Binary files /dev/null and b/static/kitchen_server_l.jpg differ diff --git a/static/masto_memory.jpg b/static/masto_memory.jpg new file mode 100644 index 0000000..98de0a3 Binary files /dev/null and b/static/masto_memory.jpg differ diff --git a/static/masto_users.jpg b/static/masto_users.jpg new file mode 100644 index 0000000..0d02dc5 Binary files /dev/null and b/static/masto_users.jpg differ diff --git a/static/proxmox.jpg~ b/static/proxmox.jpg~ deleted file mode 100644 index 1be130d..0000000 Binary files a/static/proxmox.jpg~ and /dev/null differ diff --git a/static/sendgrid.jpg b/static/sendgrid.jpg new file mode 100644 index 0000000..de8a093 Binary files /dev/null and b/static/sendgrid.jpg differ diff --git a/static/server1.jpg b/static/server1.jpg new file mode 100644 index 0000000..f1cf5d1 Binary files /dev/null and b/static/server1.jpg differ diff --git a/static/server_prov.jpg b/static/server_prov.jpg new file mode 100644 index 0000000..eaaeb14 Binary files /dev/null and b/static/server_prov.jpg differ diff --git a/static/server_prov_l.jpg b/static/server_prov_l.jpg new file mode 100644 index 0000000..5fdb2df Binary files /dev/null and b/static/server_prov_l.jpg differ diff --git a/static/server_prov_l.jpg-autosave.kra b/static/server_prov_l.jpg-autosave.kra new file mode 100644 index 0000000..9ecb229 Binary files /dev/null and b/static/server_prov_l.jpg-autosave.kra differ diff --git a/themes/LoveIt b/themes/LoveIt deleted file mode 160000 index ebe8257..0000000 --- a/themes/LoveIt +++ /dev/null @@ -1 +0,0 @@ -Subproject commit ebe8257d89403ac2bc4b7ddfb4e4afae3bc925b3