Deploy Polyaxon
Looking for a managed solution? Consider Polyaxon Cloud maintained by the Polyaxon team.
Polyaxon is open source and can be self-hosted using Docker. This section contains guides for different deployment scenarios. Some add-on features require a license key.
When self-hosting Polyaxon, you run the same infrastructure that powers Polyaxon Cloud. Read "Why Polyaxon?" to learn more about why this is important to us.
Deployment Options
Polyaxon Cloud
Polyaxon Cloud is a fully managed version of Polyaxon that is hosted and maintained by the Polyaxon team. Generally, it is the easiest and fastest way to get started with Polyaxon at affordable pricing.
Low-scale deployments
You can run a small scale deployment of Polyaxon with minimal infrastructure requirements. This is ideal for testing, proof of concepts, and small teams:
- by installing directly the system using pip or uv.
- by running Polyaxon on a VM or locally using Docker Compose.
This deployment option is for using tracking and observability features only, it lacks high-availability, scaling capabilities, and backup functionality.
Production-scale deployments
For production and high-availability deployments, we recommend one of the following options:
Architecture
Polyaxon only depends on open source components and can be deployed locally, on cloud infrastructure, or on-premises.
Polyaxon consists of two application containers, storage components, and an optional LLM API/Gateway.
- Application Containers
- Polyaxon Web: The main web application serving the Polyaxon UI and APIs.
- Polyaxon Worker: A worker that asynchronously processes events.
- Storage Components:
- Postgres: The main database for transactional workloads.
- Clickhouse: High-performance OLAP database which stores traces, observations, and scores.
- Redis/Valkey cache: A fast in-memory data structure store. Used for queue and cache operations.
- S3/Blob Store: Object storage to persist all incoming events, multi-modal inputs, and large exports.
- LLM API / Gateway: Some features depend on an external LLM API or gateway.
Polyaxon can be deployed within a VPC or on-premises in high-security environments. Internet access is optional. See networking documentation for more details.
Optimized for performance, reliability, and uptime
Polyaxon self-hosted is optimized for production environments. It is the exact same codebase as Polyaxon Cloud, just deployed on your own infrastructure. The Polyaxon team serves thousands of teams with Polyaxon Cloud with high availability (status page) and performance.
Some of the optimizations include:
- Asynchronous scheduling: Operations are compiled and validated by the Compiler, then placed in queues managed by Agents. The Scheduler coordinates with Agents asynchronously via Redis/RabbitMQ, ensuring high spikes in submission load do not block the API or lead to timeouts.
- Agent-based execution: Agents deployed on Kubernetes clusters poll the control plane for work and manage workloads locally via the Operator. This decoupled architecture enables multi-cluster deployments and complete isolation between the control plane and execution environments.
- Caching of API keys and tokens: API keys and agent tokens are cached in Redis. The database is not hit on every API call and unauthorized requests can be rejected with very low resource usage.
- Artifacts in object storage: All artifacts, logs, and model files are stored directly in S3/GCS/Azure/NFS. Large files are uploaded directly from the client SDKs to the configured artifacts store, keeping the API lightweight.
- Horizontal scalability: API, Scheduler, and Worker components can be independently scaled with replicas. Celery workers support configurable concurrency and prefetch settings for fine-tuned throughput.
- Recoverability of events: All incoming tracking events and metadata are persisted in PostgreSQL with transactional guarantees. Artifacts are written to object storage first, ensuring data is not lost even if individual components are temporarily unavailable.
- Background migrations: Long-running migrations that are required by an upgrade but not blocking for regular operations are offloaded to a background job. This reduces downtime during upgrades.
If you have any feedback or questions regarding the architecture, please reach out to us.
Features
Polyaxon supports many configuration options and self-hosted features. For more details, please refer to the configuration guide.
Subscribe to updates
Release notes are published on GitHub. Polyaxon uses tagged semver releases (versioning policy).
You can subscribe to our mailing list to get notified about new releases and new major versions.
You can also watch the GitHub releases page to get notified about new releases.
Support
If you experience any issues when self-hosting Polyaxon, please:
- Check out Troubleshooting & FAQ page.
- Ask the maintainers on GitHub Discussions.
- Create a bug report or feature request on GitHub.