<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Anubis on Ubuntu Tips</title><link>https://ubuntips.com/tags/anubis/</link><description>Recent content in Anubis on Ubuntu Tips</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Sun, 22 Nov 2026 16:32:21 +0800</lastBuildDate><atom:link href="https://ubuntips.com/tags/anubis/index.xml" rel="self" type="application/rss+xml"/><item><title>Checking Anubis cookies in Angie, and two slowdowns no log reported</title><link>https://ubuntips.com/posts/anubis-pass-cookie-in-angie-and-two-silent-slowdowns/</link><pubDate>Sun, 22 Nov 2026 10:00:00 +0800</pubDate><guid>https://ubuntips.com/posts/anubis-pass-cookie-in-angie-and-two-silent-slowdowns/</guid><description>&lt;p&gt;Every release of my &lt;a href="https://ubuntips.com/posts/one-idempotent-script/"&gt;provisioning script&lt;/a&gt; goes through the same audit before it ships. A dedicated test server starts from a clean Ubuntu 26.04 install. It gets the full stack, three real applications and a set of load and security tests, and then it is restored to the exact package set it started with.&lt;/p&gt;&#10;&lt;p&gt;This cycle found three problems. None of them showed up as an error in a log:&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;&lt;strong&gt;Anubis cost real visitors about 70% of the throughput.&lt;/strong&gt; A browser that had already solved the challenge still went through the Anubis proxy on every request. Angie now checks the cookie itself: 17.7k → &lt;strong&gt;55.2k requests per second&lt;/strong&gt; for cached forum pages.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;A site deployed in the normal order never got its fast cache path.&lt;/strong&gt; Cached WordPress pages were served at 6.6k requests per second instead of 93k, because Angie was compressing every cache hit.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;The install failed on a CDN that served mismatched files.&lt;/strong&gt; The retry logic waited 7.5 minutes for a &amp;ldquo;mirror sync&amp;rdquo; that was really a stale cache, then gave up.&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;h2 id="the-test-bed" class="heading-anchor"&gt;The test bed&lt;a class="anchor" href="#the-test-bed" aria-label="Link to section: The test bed"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;One dedicated server: 6-core / 12-thread Xeon, 62 GB RAM, Ubuntu 26.04.1, CPU mitigations on.&lt;/li&gt;&#10;&lt;li&gt;Angie, PHP-FPM 8.5 (&lt;code&gt;pm = static&lt;/code&gt;, one worker per CPU thread), MariaDB, Valkey, Elasticsearch and Node.js, all installed by the script.&lt;/li&gt;&#10;&lt;li&gt;Three applications from their release archives: WordPress 7.1.4, XenForo 2.3.13 (filled with 20,000 users, 10,000 threads and about 90,000 posts by a seeder add-on) and Chevereto 4.5.9.&lt;/li&gt;&#10;&lt;li&gt;Load from &lt;a href="https://github.com/wg/wrk"&gt;wrk&lt;/a&gt; on the server itself over HTTPS, 100 connections for 10 seconds after a 2-second warm-up. My workstation is too far away for a meaningful number: from there every site topped out at 160-172 requests per second, bounded by network latency rather than by the server.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="1-anubis-let-angie-check-the-pass-cookie" class="heading-anchor"&gt;1. Anubis: let Angie check the pass cookie&lt;a class="anchor" href="#1-anubis-let-angie-check-the-pass-cookie" aria-label="Link to section: 1. Anubis: let Angie check the pass cookie"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;&lt;a href="https://github.com/TecharoHQ/anubis"&gt;Anubis&lt;/a&gt; is a proof-of-work bot filter. The browser solves a small puzzle once and gets a signed cookie; Anubis checks that cookie on later requests and proxies them to the site. In my setup it sits between the TLS terminator and the application:&lt;/p&gt;</description></item></channel></rss>