<@ULVA73B9P> how can i scale prefect app in self h...
# ask-marvin
r
@Marvin how can i scale prefect app in self hosted prefect 3.0
m
To scale a self-hosted Prefect 3.0 application, you can consider the following steps: 1. Kubernetes Deployment: Utilize the Prefect server Helm chart to deploy your Prefect server on Kubernetes. This allows for scalable and resilient infrastructure management. Learn more about self-hosting Prefect on Kubernetes. 2. Workers and Work Pools: Prefect 3.x replaces agents with workers and introduces work pools, which manage the execution environment. You can configure multiple workers to handle increased loads across different environments. 3. Prefect Server: Start your self-hosted Prefect server using the CLI command
prefect server start
. This command will spin up the server instance and provide access to the UI at
<http://127.0.0.1:4200>
by default. 4. Enhanced Performance: Prefect 3.0 introduces improved runtime performance and autonomous task execution, which can naturally help with scaling efforts. 5. Task Execution: Use the Prefect Python SDK to manage and execute tasks, leveraging the new caching layer and transactional semantics for better performance. For more detailed information on deploying and scaling Prefect, refer to the Prefect documentation. Additionally, be aware of some common gotchas in Prefect 3.x, such as the transition from agents to workers and infrastructure blocks to work pools. Ensure compatibility with these changes when scaling your application.