Hosting a bluesky (bsky) Relay server
I had been looking for new projects to start working on, and one that seemed interesting to me was hosting a bluesky (bsky) relay server. As a daily user of bluesky, I figured it could be a good use of spare resources I have.
Here's bluesky's documentation on what it is:



I provisioned an Ubuntu 24.04 VM with the following specs:
16GB RAM (DDR3)
8 CPU cores (Intel Xeon E5-2650 v2)
160GB SSD space
For the most part, I used this guide below from Bryan Newbold for getting it setup, which is a great guide and does a perfect job explaining the steps:
Some changes I made from the guide:
Changed the line:
RELAY_REPLAY_WINDOW=2h to RELAY_REPLAY_WINDOW=12h
And instead of installing Caddy, I used an existing nginx reverse proxy I had setup on the network
After installing and getting it setup, I confirmed that my relay is up and running.

At the time of writing, I have 1151 Personal Data Servers (PDS) indexed and interfacing with my relay, with millions of events per day. Of course since most bluesky users are using the primary bluesky company run servers, I see most events from those, but I've seen events from about 74% of those 1151 PDS.

After running for 5 days, it's definitely interesting to see the trends of usage. The resource utilization really goes down during the US night hours. It's never too high, but there's noticeable dips.





Overall it's been a fun and interesting project that I'll keep up with and I'm excited to see how resource utilization changes as bluesky keeps growing.