Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

presto-gateway support low-latency HA #125

Open
sjx782392329 opened this issue Dec 26, 2020 · 2 comments
Open

presto-gateway support low-latency HA #125

sjx782392329 opened this issue Dec 26, 2020 · 2 comments

Comments

@sjx782392329
Copy link

We use presto-gateway as proxy front of the Presto cluster. Presto-gateway stores query_id and next_url in the memory.

If presto-gateway is down, the mapping relationship between query_id and next_url is lost. Although presto can get mapping relationship by using mysql, it is too slow.

We deploy presto-gateway on the k8s, it is common for presto-gateway instances to restart. So we stores mapping relationship in the Redis. Presto-gateway becomes stateless service.

There are some advantages

  • Horizontal expansion
  • Upgrade presto-gateway transparent to users
  • Tolerate N-1 instance failures

I think this feature can make Presto-gateway highly available. Now I want to contribute this feature to the presto-gateway.

@endoplasmicR
Copy link
Contributor

hi, we are running presto-gateway on k8s and it is stateless. have you run into any issues?

@sjx782392329
Copy link
Author

sjx782392329 commented Mar 15, 2021

hi, we are running presto-gateway on k8s and it is stateless. have you run into any issues?

I used the http protocol before, and now I use presto-gateway which is the https protocol. In Java 1.8 some versions jdbc-client can encounter timeout or get request blocked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants