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

initial commit for multi master changes #89

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

utsab4u
Copy link

@utsab4u utsab4u commented Nov 2, 2023

Anyone planning to use the multi master current needs to implement the following methods

               @Override
                protected boolean enableMultiMaster(){
                    return true; //default false
                }

                @Override
                protected int shardCount(){
                    return 3; //default numShards. Needs to be the total number of shardBundles required across all shards
                }

The current config looks like

  shards:
    - driverClass: org.mariadb.jdbc.Driver
      user: username
      password: password
      url: jdbc:mariadb:sequential://vip1/shard_1
      ..........
      ........
    - driverClass: org.mariadb.jdbc.Driver
      user: username
      password: password
      url: jdbc:mariadb:sequential://vip2/shard_2
      ..........
      ........

The new config would looks like

  shards:
    - driverClass: org.mariadb.jdbc.Driver
      user: username
      password: password
      url: jdbc:mariadb://vip1-1/shard_1, jdbc:mariadb:sequential://vip1-2/shard_1 
      ..........
      ........
    - driverClass: org.mariadb.jdbc.Driver
      user: username
      password: password
      url: jdbc:mariadb://vip2/shard_2 //not using multiple vips
      ..........
      ........

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

Successfully merging this pull request may close these issues.

2 participants