News for hackers. Stuff that matters.
Re:Why Discord is switching from Go to Rust by sorokod on Tuesday February 04, 2020 @02:02PM (#22239584)
Running every two minutes sounds pretty deterministic.
Re:Why Discord is switching from Go to Rust by jhgg on Tuesday February 04, 2020 @02:42PM (#22240057)
It was perhaps too deterministic. What's not mentioned in the blog is that after running for long enough, the cluster would line up it's GCs, and each node would do the 2 minute GC at exactly the same time causing bigger spikes as the entire cluster would degrade. I'm guessing all it takes is a few day night cycles combined with a spike in traffic to make all the nodes reset their forced GC timers to the same time.
Re:Why Discord is switching from Go to Rust by cellularmitosis on Tuesday February 04, 2020 @03:08PM (#22240350)
Interesting, sounds like 2 minutes + random fuzz might avoid the thundering herd. Might be worth submitting a patch to the golang team!