Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If an environment has only 1 region, functionality will be same as the current CS installation.  Id of this region will be 1. All accounts/users/domains will have region_is id as 1

Adding 2nd Region

1. Install a 2nd CS instance.

2. Before staring the mgmt server for the 1st time, While installing databse set region_id in db.properties(for all mgmt servers in region 2) by adding below line       region.id=2using -r option in cloud-setup-databases script.

cloud-setup-databases cloud:<dbpassword>@localhost --deploy-as=root:<password> -e <encryption_type> -m <management_server_key> -k <database_key-r <region_id>

3. Start mgmt server

4. Using addRegion API, add region 1 to region 2 and also region 2 to region 1.

5. copy account/user/domain tables from Region1 DB to Region2 DB:

  • mysqldump -u cloud -p -h <region1_db_host> cloud account user domain > region1.sql
  • mysql -u cloud -p -h <region2_db_host> cloud < region1.sql      

Adding 3rd and subsequent Regions

...

5. copy account/user/domain tables from any existing Region DB to RegionN DB

  • mysqldump -u cloud -p -h <region1_db_host> cloud account user domain > region1.sql
  • mysql -u cloud -p -h <regionN_db_host> cloud < region1.sql  

Remove Region

1. Ownership of all the resource created in the region being removed(say Region 3) should change to another region. Set region_id =1 (or one of the other regions) for account/user/doman tables where region_id = 3

...