DevOps12 min read•Updated November 2026

VPS Hosting for Sentry Error Monitoring

Quick answer

To self-host Sentry on a VPS, use the official self-hosted repository, which deploys Sentry and its supporting services (PostgreSQL, Redis, Kafka, ClickHouse, Snuba, Relay, Symbolicator and others) with Docker Compose. The project lists minimum requirements of around 4 CPU cores and 16 GB of RAM plus swap and disk space, so choose a server with headroom and fast NVMe. Put it behind HTTPS, configure outgoing email, set event retention, scrub sensitive data, follow the documented upgrade path including hard stops, and back up volumes. If those requirements are too heavy, Sentry-SDK-compatible tools such as GlitchTip are lighter.

Error monitoring tells developers when their code breaks in production: exception details, stack traces, the release that introduced the bug, affected users and breadcrumbs leading up to it. Sentry is the best-known tool, available as a hosted service or self-hosted. Self-hosting keeps error data, which can contain personal information, on infrastructure you control, at the cost of running a fairly large system.

Licence

Sentry's source is available under the Functional Source License, which allows self-hosting for your own use while restricting offering it as a competing service; older versions become Apache-licensed after a delay. Read the current licence before deploying, especially for agency or commercial scenarios.

What Gets Installed

Self-hosted Sentry is not a single application. The Compose setup runs dozens of containers, including the web and worker services, PostgreSQL, Redis, Kafka, ClickHouse (through Snuba) for event storage and queries, Relay for ingesting events, Symbolicator for native and mobile stack traces, cron and cleanup jobs, and a web server. This explains the memory requirements.

Requirements

  • A fresh Linux VPS with Docker and Docker Compose installed.
  • The minimum resources listed in the self-hosted documentation (at the time of writing, around 4 CPU cores, 16 GB RAM plus 16 GB swap, and 20 GB of free disk); more for real traffic.
  • Fast NVMe storage, since Kafka, ClickHouse and PostgreSQL are write-heavy.

Installation

  1. Clone the official self-hosted repository and check out a release tag.
  2. Review the configuration files and environment settings.
  3. Run the install script, which pulls images, runs migrations and creates the first user.
  4. Start the stack with Docker Compose.
  5. Put Nginx or Caddy in front with HTTPS, and set the system URL prefix to the public address.
  6. Configure outgoing email for alerts and invitations through an SMTP or transactional email provider.

Connecting Applications

Create projects and add the DSN to each application's Sentry SDK. Set the release and environment in the SDK so errors link to deployments, upload source maps for JavaScript and debug symbols for native or mobile apps, and use sampling for performance monitoring to control volume.

Data Scrubbing and Privacy

Errors can contain request data, user details and secrets. Enable server-side data scrubbing, add custom rules for sensitive fields, avoid sending full request bodies unless needed, and set user context with IDs rather than emails where possible. Restrict access to projects by team.

Retention and Volume

Event retention is configurable (90 days by default in the self-hosted configuration). Shorter retention saves disk. Use rate limits and sampling per project, ignore known noisy errors, and fix frequent errors rather than letting them consume storage. Monitor disk space; Kafka and ClickHouse volumes grow with event volume.

Upgrades

Upgrade by checking out a newer release tag and re-running the install script. The project documents "hard stops", versions you must pass through when upgrading from older releases. Read release notes, back up first, and allow downtime for migrations. Do not let the installation fall far behind; long jumps are harder.

Backups

Back up the Docker volumes (especially PostgreSQL, which holds configuration, users and projects) and the configuration files. Sentry documents backup and restore commands for configuration data. Decide whether historical event data needs full backup or whether configuration is enough to recover.

Lighter Alternatives

If the requirements are more than you need, GlitchTip is an open-source error tracker compatible with Sentry SDKs that runs with PostgreSQL and Redis on much smaller servers, with fewer features. Self-hosted options also exist for application performance monitoring based on OpenTelemetry (see our OpenTelemetry Collector guide). Many small teams also use Sentry's hosted free tier.

Security

  • HTTPS only, with strong passwords and two-factor authentication or SSO.
  • Do not expose internal service ports; only the web entry point should be public.
  • Keep the host updated and Docker images at the released versions.
  • Rotate DSNs if they leak into public places and abuse appears.

Monitoring Sentry

Watch disk usage, memory and swap, container restarts, Kafka consumer lag and event ingestion rate. Alert on disk space well in advance. An external uptime check confirms the ingestion endpoint is reachable (see our monitoring guide).

Sizing

SetupSuggested plan
GlitchTip or similar lightweight tracker2 vCores / 8 GB
Self-hosted Sentry, small team4 vCores / 16 GB minimum, with swap and NVMe
Self-hosted Sentry, many projects or performance data8 vCores / 32 GB

Example: A Product Team

A product team self-hosts Sentry on an 8 vCore / 32 GB VPS for its web app, API and mobile apps. Releases and source maps upload from CI, data scrubbing removes tokens and card fields, retention is 60 days, alerts go to the team chat, and the instance is upgraded every quarter following the release notes.

Common Mistakes

  • Running self-hosted Sentry on a server below the requirements.
  • No swap, leading to out-of-memory kills.
  • Skipping hard-stop versions during upgrades.
  • Sending personal data and secrets without scrubbing.
  • Letting noisy errors fill the disk.

In Short

Self-hosted Sentry is powerful but heavy. Meet the requirements, install from the official repository behind HTTPS, scrub data, set retention and sampling, upgrade along the documented path and back up configuration. Choose a lighter compatible tool if you need less.

SkyRainCloud Plans for This Workload

Self-hosted Sentry runs many services: plan at least 4 vCores / 16 GB as the project recommends, with fast NVMe. Lighter Sentry-compatible tools such as GlitchTip run on 2 vCores / 8 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

Intel Xeon Platinum 8269CY VPS

KVM VPS on Intel Xeon Platinum 8269CY (up to 3.80 GHz Turbo) with DDR4 ECC memory, NVMe SSD, full root access and an unmetered 1 Gbps port.

PlanvCoresRAMStorageNetworkPriceGood forBuy
VPS 1 — Intel28 GB DDR4 ECC40 GB NVMe SSD1 Gbps, unmetered₹649/monthBusiness websites, small apps, scheduled jobs and botsOrder
VPS 2 — Intel416 GB DDR4 ECC80 GB NVMe SSD1 Gbps, unmetered₹1,169/monthBusiness software, mid-size databases, several sites on one serverCheck stock
VPS 3 — Intel832 GB DDR4 ECC150 GB NVMe SSD1 Gbps, unmetered₹2,249/monthERP/CRM stacks, heavier databases, multiple production appsCheck stock
VPS 4 — Intel1664 GB DDR4 ECC250 GB NVMe SSD1 Gbps, unmetered₹4,299/monthHigh-memory workloads and consolidated production serversCheck stock

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

Can Sentry be self-hosted?
Yes, using the official self-hosted repository with Docker Compose, under Sentry's licence terms.
What are self-hosted Sentry's requirements?
The project lists around 4 CPU cores and 16 GB RAM plus swap and disk as a minimum; plan more for real traffic.
Why does Sentry need so much memory?
It runs many services, including Kafka, ClickHouse, PostgreSQL, Redis, Snuba, Relay and Symbolicator.
How do I upgrade self-hosted Sentry?
Check out a newer release tag and re-run the install script, passing through documented hard-stop versions.
How long does Sentry keep events?
The self-hosted default is 90 days; it is configurable.
How do I protect personal data in Sentry?
Enable data scrubbing, add custom rules and avoid sending unnecessary request data.
Is there a lighter alternative?
GlitchTip is compatible with Sentry SDKs and runs on much smaller servers with fewer features.
Do I need email configured?
Yes, for alerts and invitations; use SMTP or a transactional email provider.
What should be backed up?
Configuration files and volumes, especially PostgreSQL; decide whether event data also needs backup.
Which plan suits self-hosted Sentry?
At least 4 vCores / 16 GB with swap and NVMe; 8 vCores / 32 GB for heavier use.
Instant UPI • ₹649/mo
Fast KVM Cloud Provisioning