lyft / presto-gateway

A load balancer / proxy / gateway for prestodb
Apache License 2.0
358 stars 156 forks source link

Please help me understand how resourcegroup works here #165

Open xmubeta opened 2 years ago

xmubeta commented 2 years ago

Hi all,

I understood resource groups in Presto. But after I reviewed the code of presto-gateway, I can only see the CURD API for resource group and selector. I didn't find any clue about how it works in presto-gateway. So I am confused. Anyone can give me a hint? Thanks.

xmubeta commented 2 years ago

I may find the answer after reading the doc of Trino - https://trino.io/docs/current/admin/resource-groups.html. The Presto cluster can use MySQL DB as configuration instead of file. It is not mentioned in Presto doc - https://prestodb.io/docs/current/admin/resource-groups.html.

Please help confirm if my understanding is right. Thanks.

endoplasmicR commented 2 years ago

yes, the trino resource groups support dynamic loading when supplied in DB, presto-gateway supports that with: https://github.com/lyft/presto-gateway#resource-groups-api

endoplasmicR commented 2 years ago

also, feel free to join the slack channel for faster responses: https://trinodb.slack.com/archives/CG9K9MX1V