From 09d575865a5a1ef42db2ee3dafcc976c4e43b450 Mon Sep 17 00:00:00 2001 From: Flancian <0@flancia.org> Date: Sat, 9 Apr 2022 19:10:17 +0200 Subject: [PATCH] Auto saved by Logseq --- logseq/bak/agora speed.md.2022-04-09T17_09_47.020Z | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 logseq/bak/agora speed.md.2022-04-09T17_09_47.020Z diff --git a/logseq/bak/agora speed.md.2022-04-09T17_09_47.020Z b/logseq/bak/agora speed.md.2022-04-09T17_09_47.020Z new file mode 100644 index 000000000..6b60f1396 --- /dev/null +++ b/logseq/bak/agora speed.md.2022-04-09T17_09_47.020Z @@ -0,0 +1,12 @@ +- The Agora started very fast (it was pleasant) and then proceeded to get very slow (with features, but mostly really with the number of nodes+edges that it's handling, see stats in [[nodes]] if interested). +- It could be fast again -- we just need to fix some issues :) +- As of right now, very often the Agora takes almost 10s (!) to load some pages, particularly when under load. There's a variety of reasons this happens -- I could write about them here but right now I'd rather just go ahead and try to fix them ;) + - Doing pomodoros today, [[2022-03-20]], to try to address this issue. + - When starting benchmarking, dev.anagora.org/do is regularly taking 3.7s to load (measured with [[time curl]]). In production this is often longer, but this seems like a good test node (because of the amount of pushes it has, which I think is related to the slowdown). + - The *first* load after restarting the dev server is often 10s, which is closer to what we'd see in prod (because it needs to load+process the whole Agora graph). + - Same on [[2022-04-09]]. + - Increased organic traffic + crawler bot activity. + - Changed number of workers (it seems more is not necessarily better, trying running with 10.) + - Changed cache expiry to a random range to prevent thundering herd by workers hitting cache TTL in unison. + - Cached calls to node(). + - I wonder if there's low hanging fruit remaining; dev.anagora.org just tends to feel so fast in comparison with prod, perhaps I'm missing where's the bottleneck. Will add debugging data. \ No newline at end of file