Post AZYsKBQyZliZW316CO by justin@ser.endipito.us
 (DIR) More posts by justin@ser.endipito.us
 (DIR) Post #AZY8CQ1O1Tz0IFcXpY by justin@ser.endipito.us
       2023-09-07T19:44:56Z
       
       0 likes, 1 repeats
       
       Switching from Apache to Varnish has definitely made a big difference in performance for my Serendipitous server. Mastodon is pretty noisy and a simple thing like changing my profile summary (which generates 700+ external connections pretty much instantly) was enough to overwhelm the Apache reverse proxy server. Varnish (using Hitch for TLS) handles it with aplomb.#varnish #mastoadmins
       
 (DIR) Post #AZY8HDsqZuDc63uvtQ by selea@social.linux.pizza
       2023-09-08T06:59:09Z
       
       0 likes, 0 repeats
       
       @justin I wish that I was smarter so I could write my own clever vcl's.That is the only reason I am not using it everywhere
       
 (DIR) Post #AZYsKBQyZliZW316CO by justin@ser.endipito.us
       2023-09-08T15:35:05Z
       
       0 likes, 0 repeats
       
       @selea In the end, the VCL is really simple:```backend mastodon {    .host = "10.10.10.10";    .port = "80";}sub vcl_recv {    if (req.http.upgrade ~ "(?i)websocket") {        return (pipe);    }    if (req.http.host == "ser.endipito.us") {       set req.backend_hint = mastodon;    }}sub vcl_pipe {    if (req.http.upgrade) {        set bereq.http.upgrade = req.http.upgrade;        set bereq.http.connection = req.http.connection;    }}```