presto-router-example-plugin-scheduler/README.md
This package contains an example of a custom scheduler plugin.
Place the plugin jar and all the dependent jars for the plugin in the plugin directory relative to the Presto install directory.
The configuration file for this plugin must be etc/router-config/router-scheduler.properties.
In router-scheduler.properties, set the name of the custom scheduler factory.
For example, use the following line to set the custom scheduler factory name to metricsBased.
router-scheduler.name=metricsBased
The scheduler name must be set to CUSTOM_PLUGIN_SCHEDULER in etc/router-config.json.
scheduler: CUSTOM_PLUGIN_SCHEDULER
RouterSchedulerPlugin - Custom Scheduler Plugin class to be loaded by the Router plugin manager.com.facebook.presto.spi.RouterPlugin.MetricsBasedSchedulerFactory - Factory for creating specific custom scheduler.com.facebook.presto.spi.SchedulerFactory.MetricsBasedScheduler - Example custom scheduler implementing the scheduling logic for clusters.com.facebook.presto.spi.router.Scheduler.