|
| 1 | +--- |
| 2 | +title: "Overview" |
| 3 | +description: "You can self-host Trigger.dev on your own infrastructure." |
| 4 | +tag: "v4" |
| 5 | +--- |
| 6 | + |
| 7 | +Self-hosting Trigger.dev means you run and manage the platform on your own infrastructure, giving you full control over your environment, deployment process, and the URLs you expose the service on. |
| 8 | + |
| 9 | +You are responsible for provisioning resources, handling updates, and managing any security, scaling or reliability challenges that arise. |
| 10 | + |
| 11 | +We provide version-tagged releases for self-hosted deployments. It's highly advised to use these tags exclusively and keep them locked with your CLI version. |
| 12 | + |
| 13 | +## Should you self-host? |
| 14 | + |
| 15 | +For most users, Trigger.dev Cloud offers the best experience - it's fully managed, scalable, and comes with dedicated support. However, if you have specific requirements around data residency, compliance, or infrastructure control, self-hosting may be the right choice for you. |
| 16 | + |
| 17 | +The self-hosted version is functionally the same as Trigger.dev Cloud with [some exceptions](#feature-comparison), but our managed Cloud infrastructure is designed for high availability, security, and scale. |
| 18 | + |
| 19 | +Because we do not manage self-hosted instances, we cannot guarantee how Trigger.dev will perform on your infrastructure. You assume all responsibility and risk for your deployment, including security, uptime, and data integrity. |
| 20 | + |
| 21 | +You can read the rest of this overview and follow our guides for instructions on setting up a self-hosted Trigger.dev instance. If you prefer a managed experience, you can [sign up](https://cloud.trigger.dev/login) for our Cloud offering instead - we have a generous [free tier](https://trigger.dev/pricing) for you to try it out. |
| 22 | + |
| 23 | +{/* TODO: Architecture section with updated diagram */} |
| 24 | + |
| 25 | +## Feature comparison |
| 26 | + |
| 27 | +While [limits](#limits) are generally configurable when self-hosting, some features are only available on Trigger.dev Cloud: |
| 28 | + |
| 29 | +| Feature | Cloud | Self-hosted | Description | |
| 30 | +| :---------------- | :---- | :---------- | :-------------------------------------- | |
| 31 | +| Warm starts | ✅ | ❌ | Faster startups for consecutive runs | |
| 32 | +| Auto-scaling | ✅ | ❌ | No need for manual worker node scaling | |
| 33 | +| Checkpoints | ✅ | ❌ | Non-blocking waits, less resource usage | |
| 34 | +| Dedicated support | ✅ | ❌ | Direct access to our support team | |
| 35 | +| Community support | ✅ | ✅ | Access to our Discord community | |
| 36 | +| ARM support | ✅ | ✅ | ARM-based deployments | |
| 37 | + |
| 38 | + |
| 39 | +## Limits |
| 40 | + |
| 41 | +Most of the [limits](/limits) are configurable when self-hosting, with some hardcoded exceptions. You can configure them via environment variables on the [webapp](/self-hosting/env/webapp) container. |
| 42 | + |
| 43 | +| Limit | Configurable | Hardcoded value | |
| 44 | +| :---------------- | :----------- | :-------------- | |
| 45 | +| Concurrency | ✅ | — | |
| 46 | +| Rate limits | ✅ | — | |
| 47 | +| Queued tasks | ✅ | — | |
| 48 | +| Task payloads | ✅ | — | |
| 49 | +| Batch payloads | ✅ | — | |
| 50 | +| Task outputs | ✅ | — | |
| 51 | +| Batch size | ✅ | — | |
| 52 | +| Log size | ✅ | — | |
| 53 | +| Machines | ✅ | — | |
| 54 | +| Log retention | — | Never deleted | |
| 55 | +| I/O packet length | ❌ | 128KB | |
| 56 | +| Alerts | ❌ | 100M | |
| 57 | +| Schedules | ❌ | 100M | |
| 58 | +| Team members | ❌ | 100M | |
| 59 | +| Preview branches | ❌ | 100M | |
| 60 | + |
| 61 | +{/* TODO: Maybe clarify re OFFLOAD_IO_PACKET_LENGTH_LIMIT */} |
| 62 | + |
| 63 | +{/* TODO: add machine overrides section */} |
| 64 | + |
| 65 | +## Community support |
| 66 | + |
| 67 | +It's dangerous to go alone! Join the self-hosting channel on our [Discord server](https://discord.gg/NQTxt5NA7s). |
0 commit comments