Open puneetjaiswal opened 5 years ago
Custom rule engine can be plugged at GatewayProviderModule.getProxyHandler()
. The same will evaluate the rules from QueryIdProxyHandler.rewriteTarget()
A Presto admin should be able to add/edit routing rules on the fly through an easy admin UI. These routing rules could be of following types:
user = X
, route the query to xyz
routing group.source.startsWith(“etl”)
then route the query to etl
routing grouptable = system.jdbc.columns
then block the query.query.contains (“select *”)
and contains a bad table then block the query.Also we should be able to assign an order of preference among these rule types at the time of RuleEngine
instantiation.
We should supply a dummy routing rule engine that can be plugged into Routing
ProxyHandler
. A user should be able to override this with a custom rule engine.