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
- Clone the official self-hosted repository and check out a release tag.
- Review the configuration files and environment settings.
- Run the install script, which pulls images, runs migrations and creates the first user.
- Start the stack with Docker Compose.
- Put Nginx or Caddy in front with HTTPS, and set the system URL prefix to the public address.
- 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
| Setup | Suggested plan |
|---|---|
| GlitchTip or similar lightweight tracker | 2 vCores / 8 GB |
| Self-hosted Sentry, small team | 4 vCores / 16 GB minimum, with swap and NVMe |
| Self-hosted Sentry, many projects or performance data | 8 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.
| Plan | vCores | RAM | Storage | Network | Price | Good for | Buy |
|---|---|---|---|---|---|---|---|
| VPS 1 — AMD | 2 | 8 GB DDR4 ECC | 40 GB NVMe SSD | 1 Gbps, unmetered | ₹649/month | Websites, small APIs, bots, staging and VPN servers | Order |
| VPS 2 — AMD | 4 | 16 GB DDR4 ECC | 80 GB NVMe SSD | 1 Gbps, unmetered | ₹1,299/month | WooCommerce, Node.js/Python backends, Docker Compose stacks, CI runners | Order |
| VPS 3 — AMD | 8 | 32 GB DDR4 ECC | 150 GB NVMe SSD | 1 Gbps, unmetered | ₹2,499/month | Production databases, high-traffic sites, multi-container apps | Order |
| VPS 4 — AMD | 16 | 64 GB DDR4 ECC | 250 GB NVMe SSD | 1 Gbps, unmetered | ₹4,899/month | Large production workloads, SaaS platforms, analytics, in-memory caches | Order |
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.
| Plan | vCores | RAM | Storage | Network | Price | Good for | Buy |
|---|---|---|---|---|---|---|---|
| VPS 1 — Intel | 2 | 8 GB DDR4 ECC | 40 GB NVMe SSD | 1 Gbps, unmetered | ₹649/month | Business websites, small apps, scheduled jobs and bots | Order |
| VPS 2 — Intel | 4 | 16 GB DDR4 ECC | 80 GB NVMe SSD | 1 Gbps, unmetered | ₹1,169/month | Business software, mid-size databases, several sites on one server | Check stock |
| VPS 3 — Intel | 8 | 32 GB DDR4 ECC | 150 GB NVMe SSD | 1 Gbps, unmetered | ₹2,249/month | ERP/CRM stacks, heavier databases, multiple production apps | Check stock |
| VPS 4 — Intel | 16 | 64 GB DDR4 ECC | 250 GB NVMe SSD | 1 Gbps, unmetered | ₹4,299/month | High-memory workloads and consolidated production servers | Check 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.