Black Friday infrastructure deals are easy to find and difficult to evaluate. My goal was not simply to buy a cheap VPS: I needed to migrate an existing website and engineering blog, preserve a controlled deployment pipeline, and build a separate self-hosted n8n automation environment.

After comparing offers across multiple regions, including flash sales that sold out before checkout, I selected a PomeloHost KVM VPS at $24 per quarter, equivalent to $8 per month. This is a case study of the actual implementation, not a sponsored recommendation or a performance benchmark.

1. Choosing the infrastructure

Resource Previous VPS New VPS
Virtual CPUs 1 4 AMD EPYC virtual CPUs
RAM 1.7 GiB 15.36 GiB usable total
Root filesystem 29 GiB 198.74 GiB
Swap 2 GiB 4 GiB
Operating system CentOS Stream 9 CentOS Stream 9
Monthly equivalent $10 $8

The advertised new configuration was 16 GB RAM and 200 GB storage. The operating system reports slightly different usable capacities. The annualized hosting cost is $96 if the quarterly price remains unchanged, excluding domains, taxes and administration time.

2. Selective Linux migration

I migrated only the active portfolio, technical blog and deployment infrastructure. Legacy PHP applications, databases and unrelated services were deliberately excluded. The static site did not need a database server.

I used rsync over SSH, preserving permissions, ownership, hard links and symbolic links. The following commands illustrate the approach with a placeholder destination:

rsync -aHAz /var/www/ root@NEW_SERVER:/var/www/ rsync -aHAnc /var/www/ root@NEW_SERVER:/var/www/ 

The second command performs a checksum-based dry run. SELinux labels were restored on the destination using restorecon rather than assuming that old security attributes would transfer correctly. The checksum comparison reported no differences in the migrated web content.

3. Nginx, Cloudflare and TLS

Before changing public DNS, I tested the new origin directly using curl with hostname resolution overridden. This preserved normal TLS certificate validation.

curl --resolve ta551.info:443:NEW_SERVER_IP https://ta551.info/ 

The portfolio and blog returned HTTP 200, and the www hostname redirected to the canonical domain. Cloudflare DNS was then switched to the new origin. I confirmed requests in the new Nginx logs, stopped Nginx on the old VPS, and checked the public websites again. The old machine remained available as a temporary fallback. These checks do not establish a measured zero-downtime migration.

Let's Encrypt certificates were issued using DNS validation with separate zone-scoped Cloudflare credentials. A systemd renewal timer and a deploy hook validate the Nginx configuration before reloading it. The initial renewal simulation passed for the portfolio certificate; a combined renewal simulation remained pending.

4. Security hardening

The host retains SELinux in enforcing mode, firewalld and Fail2Ban for SSH. Public application traffic enters through Nginx. Unused RPC services were disabled, and the default virtual host rejects unexpected requests. Legacy application paths and sensitive file patterns are blocked.

Password-based SSH was retained by operational choice, so the host is not presented as fully hardened. Fail2Ban bans were checked against actual firewall rules. External port scanning and a broader SSH audit remain follow-up work.

I created an encrypted configuration and website backup and verified its checksum and archive readability. Off-site storage and a full restore exercise were not yet confirmed.

5. Preserving GitHub Actions CI/CD

The existing deployment model separates build and production access:

GitHub Actions -> tested release artifact -> local Windows verification and upload -> restricted SSH staging account -> administrator-controlled promotion -> atomic blog symlink switch 

GitHub Actions does not require a production SSH key. During migration I pinned the build runner to Ubuntu 24.04 to resolve a Playwright compatibility issue. A new blog candidate was successfully built and staged.

The portfolio candidate exposed a useful preflight failure: its navigation label differed from the expected production label. I postponed promotion instead of weakening the validator. Both live websites continued serving the migrated releases.

6. Self-hosted n8n with Docker and PostgreSQL

The new VPS also hosts an independent n8n automation environment, separate from the ARTEX project. The stack uses Docker Compose, PostgreSQL 17, n8n 2.49.8 and matching external task runners.

The deployment uses persistent named volumes, pinned image digests, resource limits, bounded container logs and a PostgreSQL health check. Database credentials, the n8n encryption key and runner authentication token are stored outside the public website with restricted file permissions.

Only the n8n application port is published, and only on loopback:

ports: - "127.0.0.1:5678:5678" 

PostgreSQL and the task runner broker remain on the internal Docker network. Nginx provides HTTPS and an additional Basic Authentication layer. This private configuration intentionally restricts external webhooks and API access; a public webhook design would need separate access controls and proxy review.

I manually verified both JavaScript and native Python execution through external runners. The n8n editor and readiness endpoint also responded successfully.

7. Building a host monitoring collector in Python

Rather than granting n8n root access or mounting the Docker socket into its container, I created a small host-side Python collector. A systemd timer runs it every five minutes.

The collector reads CPU utilization, load averages, memory, swap, disk usage, uptime, container status, PostgreSQL health, TLS expiration, firewall state, SELinux, Fail2Ban and n8n readiness.

The collector writes a JSON snapshot using an atomic file replacement:

with open(tmp, "w") as f: json.dump(report, f, indent=2) os.chmod(tmp, 0o644) os.replace(tmp, path) 

The data directory is mounted read-only into n8n. The application can consume the latest snapshot without receiving host administration privileges. I verified that the container could read a newly generated snapshot with SELinux enforcing.

8. n8n Telegram automation: daily PDF reports

The first workflow combines HTTP availability checks with the host metrics snapshot, generates a PDF and sends it to a private Telegram chat.

Daily schedule / manual trigger -> endpoint list -> HTTP checks -> read host metrics -> generate PDF -> Telegram document 

The portfolio and blog are expected to return HTTP 200. The protected n8n endpoint is expected to return HTTP 401 without authentication. That response is not treated as an outage; the internal readiness check separately verifies the backend.

Manual PDF generation and Telegram delivery succeeded. The daily schedule is configured for 8 AM local time; unattended delivery still needs confirmation.

9. n8n infrastructure alerts every five minutes

A separate workflow evaluates availability and infrastructure thresholds. Its design includes CPU above 90%, RAM above 85%, swap above 50%, disk above 80%, certificates approaching expiration, stale metrics and unhealthy services.

CPU, RAM and swap use consecutive-sample thresholds to reduce noise. The workflow is designed to track incident state and recovery instead of repeatedly sending identical alerts. A manual all-checks-passed Telegram test succeeded. Production incident deduplication, recovery and regular scheduled execution require further observation.

10. Independent external monitoring

A monitoring system running on the same VPS cannot report a complete host outage reliably. I therefore added UptimeRobot checks for the portfolio, blog and server IP. All three were green during initial setup. Cloudflare may serve cached content, and ping does not establish application health, so these checks complement rather than replace internal monitoring. Mobile push delivery remains to be tested.

11. Architecture and trust boundaries

Internet -> Cloudflare -> Nginx -> static portfolio and blog | +-> private n8n editor |-> PostgreSQL |-> external JS/Python runners |-> Telegram reports and alerts ^ | read-only JSON Python host collector systemd timer / 5 minutes UptimeRobot -> independent external checks 

12. Initial resource snapshot

Metric Observed value
CPU utilization 1.5%
Available RAM 14,117 MiB
Swap used 0 MiB
Disk used 11.44 GiB (5.76%)
PostgreSQL Healthy
n8n readiness OK
SELinux Enforcing
Firewall and Fail2Ban Running

This is a point-in-time snapshot, not a load test or a long-term uptime measurement. It shows substantial unused capacity at the time of inspection, not guaranteed performance under production workloads.

13. Lessons and next steps

The most important lesson is that inexpensive infrastructure can still support disciplined engineering. The purchase price is only one part of the decision; controlled migration, least-privilege deployment, recoverability and observability matter more than a promotional headline.

Next steps include off-site backups of PostgreSQL and the n8n encryption key, a restore exercise, historical metrics and charts, validation of scheduled alert recovery, certificate renewal testing and further reverse-proxy hardening.

The result is a working Linux hosting and automation environment for an $8 monthly hosting equivalent, with verified website migration, manually tested n8n workflows and a clear list of remaining operational checks.