A server for the Keitaro tracker: system requirements, disk, domain and backups
Keitaro is an ad campaign tracker that you install on your own server. Clicks on advertising links pass through it: the tracker records the click, the source, the creative and the campaign parameters, redirects the visitor to the landing page and receives conversion data from affiliate networks and CRMs. Reports are built from this data: which source and which ad pay off, and which only spend the budget. Since every click goes through the server, its speed and availability directly affect the quality of your statistics, and saving on it is more dangerous than it seems.
Official system requirements
The developer publishes the requirements in the installation documentation, and they are stricter than for an ordinary website:
- Operating system: only CentOS 9 Stream or CentOS 10 Stream; the installer is not designed for Ubuntu, Debian or other systems.
- KVM virtualization. Container-based OpenVZ and LXC are not suitable.
- A clean server without a control panel or third-party software: the installer sets up the web server, databases and everything else itself.
- Disk: SSD, 20 GB or more.
The documentation ties memory and cores to the number of clicks per day:
- up to 100 thousand: 2 cores and 4 GB;
- 100–500 thousand: 4 cores and 8 GB;
- 0.5–1 million: 4 cores and 16 GB;
- 1–5 million: 4 cores and 32 GB;
- 5–10 million: 8 cores and 64 GB.
The mandatory memory minimum in the documentation is 4 GB. Installing on 1 core and 2 GB is technically possible, but the developer warns of performance problems straight away; if you use the tracker's API heavily, take resources with headroom. That is why the table filter above starts at 2 cores and 4 GB; above 100,000 clicks a day look at plans with 4 cores and 8 GB. One more note from the documentation: on servers located in Russia tracker updates may be unstable, so this selection is built from locations outside Russia. Before buying, check with the host that a CentOS Stream image of the right version is available on the plan: some hosts do not have it in their list of systems.
Why NVMe
Every click is a write to the database, every conversion is an update of rows already stored, and every monthly report is a read of millions of records grouped by campaign, source and date. On a slow disk this shows immediately: the response time per click grows and a report takes minutes to open. An NVMe drive handles this mixed load noticeably better than an ordinary SSD, especially at peak buying hours. More about the difference between disk types is on the NVMe VPS page.
Reserve space for growing statistics: the database size depends on the click flow and on how many days detailed statistics are kept. The tracker's system settings define the statistics retention period (256 days by default): clicks older than that are deleted automatically, and this is the simplest way not to run out of disk.
Domain and SSL
Advertising links must open over HTTPS: ad platforms and browsers are increasingly strict about redirects to insecure addresses, and mixed content breaks landing pages. The order is as follows:
- Buy a domain or set aside a subdomain and point an A record at the server's IP.
- Add the domain in the tracker's domains section: once DNS has updated, it requests a free Let's Encrypt certificate by itself.
- Separate the addresses: campaign links on one domain, panel login at another address with IP-based access restriction and a strong password.
If the domain is connected through a CDN or proxy, keep in mind that the tracker must see the visitor's real IP, otherwise geo statistics and filtering of repeat clicks will be wrong. The Keitaro documentation has a separate guide for connecting through Cloudflare.
The tracker's address is public, so the selection takes DDoS protection into account: a burst of junk requests should not stop click tracking for live campaigns. What exactly such protection includes at different hosts is on the VPS with DDoS protection page.
Database backup
The most valuable part of a tracker is not the program, which can be reinstalled in half an hour, but the database: the settings of campaigns, flows and sources, and the accumulated statistics. Losing it means losing the history on which budget decisions are based. The minimum set of measures:
- a scheduled daily dump of the database and tracker settings;
- copying the dumps off the server, to object storage or to a separate VPS for backups;
- keeping several recent copies rather than one that gets overwritten;
- a disk snapshot at the host before updating the tracker or the system;
- a trial restore on a test server at least once, to make sure the copy works.
A snapshot at the same host protects against a failed update, but not against losing the account or a failure of the facility, so an external copy is a must.