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]: Support multi-instance AMS REST service #2810

Open
2 tasks done
link3280 opened this issue May 3, 2024 · 0 comments
Open
2 tasks done

[Feature]: Support multi-instance AMS REST service #2810

link3280 opened this issue May 3, 2024 · 0 comments
Labels
type:feature Feature Requests

Comments

@link3280
Copy link
Contributor

link3280 commented May 3, 2024

Description

Currently, only the leader AMS would provide REST service. When an AMS leader transition happens, the standby AMS would take 30+ seconds to initialize optimizing, after which the REST service is available. That affects the availability of the REST service.

I proposed to make the REST service independent of the leadership. That's to say, the stand-by AMS instances need to initialize and run REST service on start. Their only difference to a leader instance is no optimizing service.

Use case/motivation

No response

Describe the solution

I drew a diagram of the main modules in AMS.

amoro-follower-rest (1)

  • The green ones are the modules that should be run by both the leader and the followers when starting.
  • The yellow ones are the leader-only services that should be run when an AMS becomes the leader.
  • The remaining red one is a new module that syncs catalog changes from the leader through reloading from the database.

Subtasks

No response

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@link3280 link3280 added the type:feature Feature Requests label May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature Feature Requests
Projects
None yet
Development

No branches or pull requests

1 participant