Skip to content

Conversation

@wardlican
Copy link
Contributor

@wardlican wardlican commented Oct 29, 2025

A new configuration item has been added to control whether master & slave mode is enabled, in order to support the horizontal scaling capability of AMS.

Why are the changes needed?

Close #3845

Brief change log

Add a new configuration USE_MASTER_SLAVE_MODE to control whether master & slave mode is enabled.

How was this patch tested?

  • Add some test cases that check the changes thoroughly including negative and positive cases if possible

  • Add screenshots for manual tests if appropriate

  • Run test locally before making a pull request

Documentation

  • Does this pull request introduce a new feature? (yes / no)
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

@github-actions github-actions bot added the module:ams-server Ams server module label Oct 29, 2025
Copy link
Contributor

@xxubai xxubai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the contribution — this is an important feature.

.withDescription("The administrator password");

/** Enable master & slave mode, which supports horizontal scaling of AMS. */
public static final ConfigOption<Boolean> USE_MASTER_SLAVE_MODE =
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’m wondering whether we could control the single-node and multi-node modes with a configuration option, with the default being the single-node mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module:ams-server Ams server module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Subtask]: Use a new configuration item to control whether master & slave mode is enabled.

2 participants