Database management¶
This topic introduces how to manage database instances in NebulaGraph Cloud, including creating, suspending, resuming, scaling, and deleting instances.
Prerequisites¶
- A project is created. For more information, see Create a project.
- To perform the operations in this topic, you must be granted related roles. For more information, see Account user management.
Create an instance¶
Required role: Project Admin
- In NebulaGraph Cloud, switch to the organization and project you want to use.
- In the left-side navigation pane, click Databases.
- On the database page, click Create Database in the upper-right corner.
-
On the Create database page, specify the following information:
- Database Tier: Select a type of plan based on your requirements. For more information about the differences between the paid plans, see Upgrade to a paid plan.
-
Basic
- Database Name: Customize a name for the database.
- Cloud Provider: AWS is selected by default.
- Region: Choose the region based on your business requirements. For more information about the available regions for your business, see AWS Regions.
us-east-2
: US East (Ohio)us-west-2
: US West (Oregon)
-
Capacity: Choose node and storage specifications based on your requirements.
New users can enjoy a 14-day free trial per NebulaGraph Cloud account, which comes with one database instance of 2 vCPUs, 4 GB of RAM, and 10 GB of storage, without requiring any payment information. For more information, see Try NebulaGraph Cloud for free.
- Payment Method: Click Add a payment method to bind your AWS account as the payment method. You are prompted to log in to your AWS account and purchase NebulaGraph Cloud on the AWS Marketplace.
Note
After you complete the binding, it may take a few minutes for the payment method to be displayed on the NebulaGraph Cloud Web UI. You can refresh the page to check the status.
-
Review the summary on the right, then click Create. Once the database instance is created, you can take note of the default database user and password in a dialog.
Suspend & resume an instance¶
Required role: Project Admin
To suspend an instance, click ... of an instance on the Database page or its details page. In the drop-down list, select Suspend and confirm this action.
When the instance is suspended, note that:
- Only the following costs will be charged:
- Disk storage costs: $0.0002/GB/hour
- Fixed costs for data transfer usage: $0.0225/hour (charged if access to the instance through a public or private network is enabled)
- The instance is unaccessible, and read and write operations are impossible.
- The instance metrics are not monitored.
- The instance cannot be scaled.
To resume a suspended instance, click the Resume button for a database instance on the Database page. After confirming this action in a dialog, the instance's status will change from Suspended to Resuming, and then to Running. At this point, you will be charged fully based on your service plan and the affected items above will be restored.
Scale an instance¶
Required role: Project Admin
Note
- To scale an instance, you must upgrade to a paid plan and the instance is in the Running status.
- During scaling, the instance will be temporarily unaccessible.
When you first upgrade to a paid plan, the instance remains at 2 vCPUs, 4 GB of RAM, and 10 GB of storage. You can purchase a capacity bundle to reallocate the baseline resources.
After purchasing a capacity bundle, you can further scale your instance according to your workload requirements by using the following methods:
Purchase a capacity bundle¶
Required role: Project Admin
To purchase a capacity bundle, follow these steps:
- Click ... of an instance on the Database page or its details page.
- In the drop-down list, select Upgrade capacity.
- In the dialog, select a capacity bundle and click Upgrade capacity.
Resize node specification¶
Required role: Project Admin
To increase or decrease the vCPU and RAM resources for an instance, follow these steps:
- Click ... of an instance on the Database page or its details page.
- In the drop-down list, select Resize.
- In the dialog, select a node specification and click Resize.
Increase storage size¶
Required role: Project Admin
To increase the storage capacity for an instance, follow these steps:
- Click ... of an instance on the Database page or its details page.
- In the drop-down list, select Increase storage size.
- In the dialog, set the new storage capacity and click Increase storage size.
Note that after the storage size is increased, you are not allowed to change it within the following 6 hours due to the limitation of Amazon EBS.
Delete an instance¶
Required role: Project Admin
To delete an instance, click ... of an instance on the Database page or its details page. In the drop-down list, select Delete and confirm this action.
For free trial users, your instance will be automatically deleted once the trial ends unless you upgrade to a paid plan beforehand.