Caleb
10/29/2024, 2:07 AMMarvin
10/29/2024, 2:07 AMCaleb
10/29/2024, 2:08 AMMarvin
10/29/2024, 2:08 AMHTTPS_PROXY
.
3. Concurrency Control: For managing tasks or processes that require limiting resource usage, you can use Prefect's concurrency controls. Prefect allows you to specify concurrency limits globally or on a per-task basis to prevent exhausting system resources.
4. Configuration Adjustments: Adapt the configuration settings, such as PREFECT_API_URL
, to point to your server instances as required by your infrastructure setup.
For detailed instructions, you can look into the Prefect 3.x documentation on self-hosting. This will provide more specific guidance tailored to your infrastructure setup.
If you run into any issues or need more help with a specific aspect, please feel free to ask!Nate
10/29/2024, 2:34 AM1. Running Multiple Instances: Prefect does allow you to run multiple server instances, which can be connected to a single shared database. This setup can help distribute the load and ensure high availability.this is not correct what specific problems are you having when scaling? do you have any jobs to clean up old data?
Caleb
10/29/2024, 3:30 AMCaleb
10/29/2024, 3:31 AMCaleb
10/29/2024, 4:03 AMCaleb
10/29/2024, 5:30 PMNate
10/29/2024, 5:36 PMNate
10/29/2024, 5:37 PMNate
10/29/2024, 5:38 PMWe are seeing most of that being taken up by web socketscan you explain how you're seeing this? we use websockets to send events to the server, but that shouldnt be so resource intensive
Caleb
10/29/2024, 5:41 PMNate
10/29/2024, 5:46 PMCaleb
10/29/2024, 5:46 PM<https://prefect>.../api/events/in.
and saw about 678 events for a single job submitted (that had 32 sub flows)Nate
10/29/2024, 5:47 PMNate
10/29/2024, 5:48 PMis there a good way to reduce the number of requests a job/flow run makes to the server?short answer is use the decorators more sparingly / intentionally
Nate
10/29/2024, 5:49 PMCaleb
10/29/2024, 5:51 PMCaleb
10/29/2024, 5:52 PMCaleb
10/29/2024, 6:01 PMCaleb
10/29/2024, 6:03 PMNate
10/29/2024, 6:14 PMCaleb
10/29/2024, 6:36 PMCaleb
10/29/2024, 6:36 PM