4 ms·
GC isn't "slow" insofar as it's non deterministic. Modern garbage collectors are extremely fast, in fact.
by unlinked_dll 7y ago
GC isn't "slow" insofar as it's non deterministic. Modern garbage collectors are extremely fast, in fact.
- sorokod 7y agoRunning every two minutes sounds pretty deterministic.
- jhgg 7y agoIt 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.
- cellularmitosis 7y agoInteresting, sounds like 2 minutes + random fuzz might avoid the thundering herd. Might be worth submitting a patch to the golang team!