AMD EPYC13 min read•Updated November 2026

AMD EPYC VPS for Python Applications

Quick answer

On an AMD EPYC VPS, run Python applications with a pinned interpreter version and an isolated environment per project (venv, uv or Docker), behind Nginx with Gunicorn (WSGI, for Django and Flask) or Uvicorn workers (ASGI, for FastAPI and async Django). Because of the GIL, use multiple processes rather than threads for CPU work: start with about 2–4 sync workers per vCore or one async worker per vCore, size them by memory, move slow tasks to Celery or RQ workers, and use multiprocessing or vectorised libraries for data jobs.

Python powers web backends, APIs, automation scripts, scrapers, data pipelines and machine-learning services. Each has different resource patterns, but they share the same foundations on a server: a reproducible environment, process management, and an understanding of how Python uses CPU cores. This guide covers those foundations and the specifics for each kind of workload. For step-by-step deployments, see our Django and FastAPI guides.

Interpreter and Environments

  • Pin the Python version your project uses. The distribution's Python is fine if it matches; otherwise use uv, pyenv or the deadsnakes PPA on Ubuntu, or a Docker image.
  • One isolated environment per project: a virtual environment or container, never global pip install as root.
  • Lock dependencies with exact versions (requirements.txt with hashes, Poetry or uv lock files) so production matches what you tested.
# with uv (fast installer and project manager)
uv venv /srv/app/.venv --python 3.12
uv pip sync requirements.lock --python /srv/app/.venv/bin/python

The GIL and Multiple Cores

In standard CPython, the Global Interpreter Lock lets only one thread execute Python bytecode at a time per process. Threads still help with I/O-bound work (waiting on databases or HTTP), but CPU-bound Python code needs multiple processes to use multiple vCores. That is why Python web servers run several worker processes, and why data jobs use multiprocessing, concurrent.futures.ProcessPoolExecutor or libraries whose heavy work runs in C and releases the GIL (NumPy, pandas, many ML libraries). Free-threaded CPython builds exist in recent versions but are not yet the default for most production stacks.

Web Servers: WSGI and ASGI

FrameworkInterfaceServer
Django (sync), FlaskWSGIGunicorn with sync or gthread workers
FastAPI, Starlette, async DjangoASGIUvicorn workers (directly or via Gunicorn's Uvicorn worker class)
# Gunicorn for Django: 2 vCores → start with 5 sync workers
gunicorn project.wsgi:application --workers 5 --bind 127.0.0.1:8000 \
  --timeout 30 --max-requests 1000 --max-requests-jitter 100

# FastAPI: one Uvicorn worker per vCore
uvicorn app.main:app --host 127.0.0.1 --port 8000 --workers 2

The traditional starting point for sync workers is (2 × vCores) + 1; async workers start at one per vCore. Then measure: each worker's memory multiplied by the worker count must fit in RAM alongside the database. --max-requests recycles workers to contain slow memory growth. Run the server under systemd and put Nginx in front for TLS and static files.

Async Is Not Automatically Faster

Async frameworks shine when requests spend most of their time waiting on I/O and you use async drivers throughout. A single blocking call (a synchronous database driver, requests, heavy CPU work) inside an async endpoint blocks every other request on that worker. Use async libraries end to end, run blocking code in a thread pool, and move CPU-heavy work to background jobs.

Background Jobs

Celery, RQ, Dramatiq and arq move slow work out of requests. Run workers as separate systemd services, set concurrency to match CPU for CPU-bound tasks, and use Redis or RabbitMQ as the broker (see our background workers guide). Celery's prefork pool uses processes, so it uses multiple vCores despite the GIL.

Scripts, Bots and Scrapers

Long-running scripts and bots should run as systemd services with restart policies, logs in journald and a heartbeat that alerts if they stop making progress. Scheduled scripts belong in cron or systemd timers with a lock to prevent overlaps. Scrapers using headless browsers need much more memory per worker than plain HTTP clients; size accordingly and respect target sites' terms and rate limits.

Data Processing and Machine Learning

  • Use vectorised libraries: NumPy and pandas operations run in optimised C and can be orders of magnitude faster than Python loops.
  • Control thread counts: BLAS libraries start a thread per core; when you also run several processes, set OMP_NUM_THREADS to avoid oversubscription.
  • Chunk large datasets instead of loading everything into memory; consider Polars or DuckDB for larger-than-memory analytics.
  • CPU inference: small and medium models run on CPU; use optimised runtimes (ONNX Runtime, quantised models) and batch requests. Large models need GPUs, which these VPS plans do not include.

Memory Planning

ProcessTypical memory
Django/Flask Gunicorn worker60–200 MB depending on the app
FastAPI Uvicorn worker50–150 MB
Celery worker processSimilar to a web worker, plus task data
pandas jobSeveral times the size of the data loaded
Headless browser for scrapingHundreds of MB per browser

Measure your own processes with ps -o rss or smem, and watch for growth over days.

Quick Performance Wins

  • Use a current Python release; recent versions are noticeably faster.
  • Cache database queries and rendered fragments in Redis.
  • Avoid N+1 queries in ORMs (select_related, prefetch_related in Django).
  • Profile before optimising: cProfile, py-spy (attaches to running processes without restarting) or an APM tool.
  • Use connection pooling for databases and HTTP clients.

Security Basics

Run apps as unprivileged users, keep secrets in environment files outside the repository, disable debug mode (DEBUG = False in Django) and set allowed hosts, and keep dependencies updated with a tool that flags known vulnerabilities, such as pip-audit.

Sizing

WorkloadEPYC plan
Django/FastAPI app with database and a worker2 vCores / 8 GB
Busy API with Celery workers and Redis4 vCores / 16 GB
Data pipelines, scraping at scale, CPU inference8–16 vCores, 32–64 GB

In Short

Isolate environments, run several worker processes, keep blocking work out of async code and plan memory per worker.

Next Steps

Deploy with our framework guides, then load test and adjust worker counts from measured memory.

SkyRainCloud Plans for This Workload

Python processes are memory-hungry compared with their CPU use: plan RAM per worker. 2 vCores / 8 GB runs a Django or FastAPI app with its database and a worker; data processing and ML inference benefit from 8–16 vCores and 32–64 GB.

AMD EPYC 7C13 VPS

Dedicated KVM vCores on AMD EPYC 7C13 (up to 3.70 GHz) with DDR4 ECC memory, NVMe SSD and an unmetered 1 Gbps port.

PlanvCoresRAMStorageNetworkPriceGood forBuy
VPS 1 — AMD28 GB DDR4 ECC40 GB NVMe SSD1 Gbps, unmetered₹649/monthWebsites, small APIs, bots, staging and VPN serversOrder
VPS 2 — AMD416 GB DDR4 ECC80 GB NVMe SSD1 Gbps, unmetered₹1,299/monthWooCommerce, Node.js/Python backends, Docker Compose stacks, CI runnersOrder
VPS 3 — AMD832 GB DDR4 ECC150 GB NVMe SSD1 Gbps, unmetered₹2,499/monthProduction databases, high-traffic sites, multi-container appsOrder
VPS 4 — AMD1664 GB DDR4 ECC250 GB NVMe SSD1 Gbps, unmetered₹4,899/monthLarge production workloads, SaaS platforms, analytics, in-memory cachesOrder

Prices are monthly in INR as listed on the SkyRainCloud store (verified 2026-11-14). Stock and final pricing are shown on the product page at checkout.

Frequently Asked Questions

How do I run a Python web app in production?
Behind Nginx with Gunicorn (WSGI) or Uvicorn (ASGI) workers managed by systemd, in an isolated environment with locked dependencies.
How many Gunicorn workers should I use?
Start with (2 × vCores) + 1 sync workers, then adjust so total worker memory fits in RAM with the database and OS.
Does Python use multiple CPU cores?
A single CPython process runs Python code on one core at a time because of the GIL. Use multiple processes, or libraries that release the GIL, to use several cores.
Is async Python faster?
For I/O-heavy workloads with async drivers throughout, yes. Blocking calls inside async code slow everything; CPU-heavy work belongs in background jobs.
How should I manage Python versions on a server?
Pin the project's version and use uv, pyenv, the deadsnakes PPA or Docker, with a separate virtual environment per project.
How do I run background tasks in Python?
Use Celery, RQ, Dramatiq or arq with Redis or RabbitMQ, running workers as separate systemd services.
Can I run machine learning on a CPU VPS?
Small and medium models and classic ML run well on CPU with optimised runtimes. Large models generally need GPUs.
Why does my pandas job run out of memory?
pandas often needs several times the data size in RAM. Process in chunks, use more efficient dtypes, or try Polars or DuckDB.
How do I profile a slow Python app?
Use py-spy to sample a running process, cProfile for scripts, or an APM tool, and check database queries.
Which EPYC plan suits Python applications?
2 vCores / 8 GB for a typical web app with its database, 4 vCores / 16 GB with Celery and Redis, and 8–16 vCores for data and ML workloads.
Instant UPI • ₹649/mo
Fast KVM Cloud Provisioning