Lurker News

Comments (112) 30 threads

Show all comments

Showing thread 8 of 30

recrudesce3 replies#
Website constantly times out for me, stuff doesn't load etc. Not sure if that's because of traffic due to this post or not.
techindex3 replies#
Definitely the traffic. Wasn't expecting the front page. Working on it now.
MiroF1 reply#
Is the site self-hosted?
jannes1 reply#
That's not what people use the term "self-hosted" for. It doesn't really apply to websites that you created yourself. It rather applies to off-the-shelf software that you use as an alternative to SaaS offerings.

Continue this thread — 1 reply

ricardbejarano1 reply#
I know a lot of people here don't like Cloudflare, but they provide a solution to the "HN hug of death" mentioned above for free.

Whenever you expect to get a traffic spike, you can always turn proxying on for a day or two and turn it off afterwards.

jagged-chisel5 replies#
Does the HN crowd not like Cloudflare? If that's the case, why not?

Continue this thread — 5 replies

prophesi1 reply#
I'd highly recommend Solr[0] for searching to cut down the load. Or, if this is a static site, you could use Lunr[1] to have an efficient search that runs on the client. Is this site OSS?

[0] https://lucene.apache.org/solr/
[1] https://lunrjs.com/

techindex1 reply#
Thank you. I will check out Solr. I'm using Elasticsearch currently for the readmes, but I disabled it while troubleshooting so it's currently just searching on titles and descriptions via mysql. I will re-enable elasticsearch later and figure out how to better optimize it for future traffic.
prophesi#
Ah, then there's no need to check out Solr! They both use the same backend search engine called Lucene.
max23_#
Probably HN hug of death.
techindex#
Bug. It should be fixed now. Sorry about that.