Hacker News new | ask | show | jobs
by stockerta 1002 days ago
Is the site itself hosted on a Mac SE? It's slow as hell.
4 comments

I run it out of my closet. The blog is a small Go program deployed to a k8s cluster across a few ESXi VMs on an HP DL380 G7, behind a pfSense router also running as a VM and using HAProxy for TLS offloading. My connection is 1gbps symmetric.

With no cache on my local network, Chrome reports the page loads fully in ~500ms, using the "slow 3G connection" performance tab preset it takes ~4s.

If you're nowhere near Little Rock, Arkansas; that might be the issue. I don't yet use a CDN and it always loads the same resolution image ("high" quality JPEG, ~200kb apiece).

I mean I'm in New Zealand and it's fine for me.
The use of VMs and liver eyes (no iPhone, kubernetes) to run a simple html server abound ancient hardware is kind of amusing.
It's over-engineered, but I wanted to try running k8s in my homelab to continue learning about networking; deploying a blog seemed like a perfect test case. The cluster uses Traefik, https://github.com/travisghansen/kubernetes-pfsense-controll... to sync service definitions to HAProxy, and MetalLB. The k8s service IPs are routable from my local network, as well as the MetalLB IPs, and MetalLB handles syncing them to pfSense using BGP. pfSense sends DNS for any *.k8s.home.arpa to k8s, so I can resolve e.g. blog.default.svc.k8s.home.arpa on my local network.

One interesting hiccup: I had to introduce a NAT at pfSense because MacBooks don't listen to ICMP redirects, the packet would go laptop -> router -> k8s and then k8s -> laptop. Since the MacBook ignored the ICMP redirect, it drops the reply packet.

It's not cloud hosted, I'll tell you that. LMAO
Running perfectly fine for me - loads fast.
You say that like it's a bad thing.
Yes it is, if half the images load only partialy or not at all.
It loads fast and fine for me in the DC area of the states.
Well, that's another matter. Slowness might come as a result of brokenness, but slowness by itself doesn't mean anything.

I host a web site on an LC III+ which is often compiling and multiple tens of megabytes in to swap, so I know what slow looks like:

http://elsie.zia.io/

(the page is about an LC II, but currently it's hosted by an LC III+)