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.

@github-actions
Copy link

This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the [email protected] list. Thank you for your contributions.

@github-actions github-actions bot added the stale label Dec 22, 2025
@xxubai xxubai removed the stale label Dec 22, 2025
turboFei and others added 23 commits January 15, 2026 15:12
* separate

* java17

* build

* GA

* jdk17 tests

* fix conflicts

* <java.source.version>17</java.source.version>

* JDK8 + Spark-3.5

* revert JDK17
…pache#3858)

Each version of table metadata is stored in a metadata folder under the table’s base location using a naming scheme that includes a version and UUID: <V>-<random-uuid>.metadata.json.
[AMORO-3850][FOLLOWUP] Add GA for openAPI SDK
* Build project with fixed version

check-latest: false

GA

* docs

* shell
…y artifactId (apache#3861)

Using scala.binary.version for dependency artifactId
…ache#3874)

* Fix iceberg-spark artifactId in amoro-mixed-spark-3-common

* fix ut conflicts
* save

* 3.9.9

* mvnw

* slash

* maven 3.9.11

* maven wrapper 3.3.4
* [AMORO-3880] Make amoro-openapi-sdk standalone

* save
)

Bump netty version to 4.1.128.Final to fix CVE
* Bump Paimon 1.1.1 to 1.2.0

* [AMORO-3883] Bump Paimon 1.1.1 to 1.2.0

---------

Co-authored-by: Xu Bai <[email protected]>
…apache#3871)

* support to customize basic auth"

* save

* docs

* common

* address comments

* nit

---------

Co-authored-by: Xu Bai <[email protected]>
* scala binary version

save

bin

profile

GA

revert paimon ams

api compatiblity

fix flink scala

style

save

save

rewrite by scala

save

conflicts

dependency

save

save

scala paimon

ignore paimon

idea

* nit

* nit

* save

* revert ci change
…artifactId change (apache#3912)

* fix

save

* test

* Revert "test"

This reverts commit 6c38dbd.
@wardlican wardlican reopened this Jan 15, 2026
@github-actions github-actions bot removed module:mixed-flink Flink moduel for Mixed Format module:mixed-spark Spark module for Mixed Format module:mixed-hive Hive moduel for Mixed Format module:ams-optimizer AMS optimizer module module:mixed-trino trino module for Mixed Format type:infra type:build module:common type:site labels Jan 15, 2026
@codecov-commenter
Copy link

codecov-commenter commented Jan 15, 2026

Codecov Report

❌ Patch coverage is 31.81818% with 15 lines in your changes missing coverage. Please review.
✅ Project coverage is 29.38%. Comparing base (cbdc517) to head (c381c73).
⚠️ Report is 34 commits behind head on master.

Files with missing lines Patch % Lines
...org/apache/amoro/server/AmoroServiceContainer.java 14.28% 12 Missing ⚠️
...o/server/ha/DataBaseHighAvailabilityContainer.java 0.00% 1 Missing ⚠️
...amoro/server/ha/NoopHighAvailabilityContainer.java 0.00% 1 Missing ⚠️
...e/amoro/server/ha/ZkHighAvailabilityContainer.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #3846      +/-   ##
============================================
+ Coverage     22.12%   29.38%   +7.25%     
- Complexity     2461     4329    +1868     
============================================
  Files           445      700     +255     
  Lines         40897    56981   +16084     
  Branches       5767     7145    +1378     
============================================
+ Hits           9050    16743    +7693     
- Misses        31089    38972    +7883     
- Partials        758     1266     +508     
Flag Coverage Δ
core 28.77% <31.81%> (?)
trino 22.44% <ø> (+0.31%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

| thrift-server.selector-thread-count | 2 | The number of selector threads for the Thrift server. |
| thrift-server.table-service.bind-port | 1260 | Port that the table service thrift server is bound to. |
| thrift-server.table-service.worker-thread-count | 20 | The number of worker threads for the Thrift server. |
| use-master-slave-mode | false | Enable master & slave mode, which supports horizontal scaling of AMS. |
Copy link
Contributor

Choose a reason for hiding this comment

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

e should label it as a testing feature when describing it, only until it can run stably

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 type:docs Improvements or additions to documentation

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.