Workspace groups allow you to deploy applications across regions. A single workspace group can be associated with multiple workspaces in different regions, and a tenant can have multiple workspace groups. This topic describes how to create a workspace group in the SOFAStack console.
Background information
You can create workspace groups to manage multiple workspaces.
For an active-active architecture within a single city, a workspace group uses a single-region, dual-data-center pattern. In this pattern, a one-to-one relationship between a workspace and a region is recommended. The two data centers in that region can then share a single workspace.
For an active geo-redundancy architecture, a workspace group can span multiple regions. This lets you deploy applications across different regions.
Procedure
Log on to the console. In the left navigation pane, click Global Settings > Workspace Group to go to the workspace group list page.
Click Create Workspace Group, enter the following information, and then click Next.
Workspace Group Name: The display name for the workspace group, such as `development environment`. The name must be 1 to 64 characters long.
Workspace Group ID: A unique identifier for the workspace group. This ID must be unique within a tenant and is passed to containers as an environment variable. For example, `dev`.
NoteThe workspace group ID must meet the following naming constraints:
It can contain only letters and digits.
It must start with an uppercase or lowercase letter.
It must be 2 to 45 characters long.
Region: The region where the workspace group is located. Select multiple regions to enable cross-region deployment.
Network Type: Select VPC.
Import VPC: Select a VPC. This attaches the workspace group to an existing VPC, which lets you reuse its resources without creating a new one.
Advanced Configuration: This option is disabled by default. If you enable this option, you can customize the workspace ID. By default, the workspace ID is a unique identifier created by combining the workspace group ID and the region. Enabling this option lets you set a custom ID.
On the Create Unit Architecture page, click Add Data Center and select a zone or data center. If you selected multiple regions, you can add zones or data centers for each region.
Click Next. On the Preview page, verify that the information is correct, and then click Submit.
Results
After the workspace group is created, you can view it on the workspace group list page.
If you selected a single region when creating the workspace group, an associated workspace is automatically generated for that region. You can view it on the workspace list page.
If you selected multiple regions when creating the workspace group, an associated workspace is automatically generated for each region. You can view them on the workspace list page.