prestodb / presto

The official home of the Presto distributed SQL query engine for big data
http://prestodb.io
Apache License 2.0
15.92k stars 5.33k forks source link

Presto Router to support custom SPI plugin scheduler to route query #23530

Open saravanan19 opened 3 weeks ago

saravanan19 commented 3 weeks ago

Traditional scheduling algorithms like RoundRobin, WeightedRoundRobin doesn't work in all scenarios. It leads to poor cluster utilization and performance. There user may want to control the scheduling based on lot of factors like data source attached, cluster resource status, cluster size, historical performance, and other parameters. Providing SPI plugin to load custom schedulers would be beneficial to improve the overall performance and utilization of the clusters.

Expected Behavior or Use Case

Provide a way for the user to load custom scheduler SPI plugins to route query.

Presto Component, Service, or Connector

presto-router

Possible Implementation

Example Screenshots (if appropriate):

Context

tdcmeehan commented 3 weeks ago

@saravanan19 this seems like a pretty reasonable request. Would you like to work on this?