<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Custom Hosting on 5ok — sysadmin, devops, hosting</title><link>https://www.5ok.eu/categories/custom-hosting/</link><description>Recent content in Custom Hosting on 5ok — sysadmin, devops, hosting</description><generator>Hugo</generator><language>en</language><lastBuildDate>Wed, 20 May 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://www.5ok.eu/categories/custom-hosting/index.xml" rel="self" type="application/rss+xml"/><item><title>Hosting for an e-shop doing 40,000 orders a month</title><link>https://www.5ok.eu/references/hosting-for-an-e-shop-doing-40000-orders-a-month/</link><pubDate>Wed, 20 May 2026 00:00:00 +0000</pubDate><guid>https://www.5ok.eu/references/hosting-for-an-e-shop-doing-40000-orders-a-month/</guid><description>&lt;h2 id="the-problem"&gt;The problem&lt;/h2&gt;
&lt;p&gt;An e-shop built on a custom PHP application ran on managed hosting that fell over during every campaign. Average TTFB 1.8 s, over 6 s at peak. The hosting provider&amp;rsquo;s answer was that they were &amp;ldquo;exceeding plan limits&amp;rdquo;.&lt;/p&gt;
&lt;h2 id="what-we-did"&gt;What we did&lt;/h2&gt;
&lt;p&gt;We built dedicated infrastructure across three machines:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;App server&lt;/strong&gt; — Nginx + PHP-FPM, pool settings tuned to the real load profile.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;DB server&lt;/strong&gt; — PostgreSQL with a replica, &lt;code&gt;shared_buffers&lt;/code&gt; and &lt;code&gt;work_mem&lt;/code&gt; sized to the dataset rather than left at defaults.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Cache layer&lt;/strong&gt; — Varnish in front of the application for anonymous requests, Redis for sessions and application cache.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The migration ran over a weekend with a 12-minute window for the DNS switch and final database sync.&lt;/p&gt;</description></item></channel></rss>