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

[FEATURE] Add HA mechanism to CLI #6580

Open
Abyss-lord opened this issue Mar 3, 2025 · 2 comments
Open

[FEATURE] Add HA mechanism to CLI #6580

Abyss-lord opened this issue Mar 3, 2025 · 2 comments
Labels
feature New feature or request

Comments

@Abyss-lord
Copy link
Contributor

Abyss-lord commented Mar 3, 2025

Describe the feature

Currently, the CLI can specify the address of the service to connect to via the 'uri' parameter, otherwise http://localhost:8090 is used by default. We expect Gravitino to introduce HA mechanisms similar to Hive Metastore, When deploying multiple services, we expect to automatically connect to the currently available Gravitino server.

Motivation

No response

Describe the solution

Add a new parameter. for example:

gravitino.server.webserver.uris = http://localhost:8090,http://localhost:8090 

and Add a polling mechanism to the 'GravitinoClientBase' class to automatically select the currently available Gravitino service as the target.

Additional context

No response

@Abyss-lord Abyss-lord added the feature New feature or request label Mar 3, 2025
@Abyss-lord
Copy link
Contributor Author

@justinmclean Plz help see if this idea works.

@tengqm
Copy link
Contributor

tengqm commented Mar 3, 2025

I don't get the idea of "HA". If we mean that there are more than one servers we could use, there will be a load balancer sitting in front of the servers for L7/L4 traffics. Another possibility is that the DNS resolver will point us to a different node. In either case, we don't have a need for the client to loop through the servers directly. Client side load-balancing has too many problems.

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

No branches or pull requests

2 participants