Create a primary instance
Graph Database (GDB) is an online database service that processes highly interconnected datasets, such as social networks and knowledge graphs. This topic describes how to create a GDB instance.
Prerequisites
You have registered an Alibaba Cloud account. For more information about the registration flow, see Register an Alibaba Cloud account.
If you use a Resource Access Management (RAM) user to purchase a GDB instance, make sure that your Alibaba Cloud account has granted the AliyunGDBFullAccess and AliyunVPCFullAccess permissions to the RAM user. For more information about how to grant permissions, see Manage RAM user permissions.
Precautions
If your application is deployed on an Elastic Compute Service (ECS) instance, make sure that the GDB instance and the ECS instance meet the following conditions to ensure network connectivity.
They are in the same region.
Optional: They are in the same zone to reduce network latency.
The ECS instance uses the virtual private cloud (VPC) network type and is in the same VPC as the GDB instance.
NoteYou can view the region, zone, and VPC ID of an ECS instance. For more information, see View instance information.
If the network type of the ECS instance is classic network, you can migrate the ECS instance from the classic network to a VPC.
You can create GDB instances only in the following regions.
China: China (Shenzhen), China (Beijing), China (Qingdao), China (Shanghai), China (Hong Kong), China (Zhangjiakou), and China (Hangzhou).
Asia-Pacific: Singapore and Indonesia (Jakarta).
Europe and Americas: US (Virginia) and US (Silicon Valley).
Billing
For more information about the billing of Graph Database (GDB), see Product pricing.
Procedure
- Log on to the GDB console.
In the upper-left corner of the page, click Create GDB Instance.
Set Product Type to Tair for Graph.
Select a Billing Method. The following billing methods are supported:
Subscription: This is a subscription billing method. You must pay upfront when you create an instance. This method is suitable for long-term use and is more cost-effective than the pay-as-you-go method. The longer the subscription duration, the higher the discount.
Pay-as-you-go: This is a post-paid billing method. You are charged on an hourly basis. This method is suitable for short-term use. You can release the instance immediately after use to save costs.
Set the following parameters.
Parameter
Parameter description
Region and Zone
Select the region where the instance resides. For more information about the regions that GDB supports, see Precautions.
NoteYou cannot change the region after the instance is created. Select the region with caution.
If your application is deployed on an ECS instance, select the same region as the ECS instance. Otherwise, the instances cannot communicate over the internal network.
Zone
Select the zone where the instance resides.
NoteYou cannot change the zone after the instance is created. Select the zone with caution.
If your application is deployed on an ECS instance, select the same zone as the ECS instance to reduce network latency.
Series
Select the product series for the instance.
High-availability Edition: uses a classic high availability architecture with primary and secondary nodes. The primary and secondary nodes are independent GDB nodes. This edition uses a compute-storage decoupled architecture and provides higher availability than the Single Node Edition. For more information, see High-availability Edition.
Single Node Edition: is used for testing only. This edition does not have a Service-Level Agreement (SLA) guarantee and has a risk of data loss. Do not use this edition in a production system. For more information, see Single Node Edition.
Number of nodes
Select the number of nodes for the instance.
High-availability Edition: The value is fixed at 2, which specifies a primary node and a secondary node.
Single Node Edition: The value is fixed at 1.
Engine Version
Select the engine version for the instance.
Gremlin
OpenCypher
For more information about engine versions, see Engine versions.
Storage Type
Select the storage type for the instance.
ESSD PL1: provides better performance than standard SSDs and can meet the requirements for high-performance versions or specifications.
Standard SSD: provides high stability, high random read and write performance, and high reliability.
For more information about storage types, see Storage types.
Network Type
The value is fixed at Virtual Private Cloud.
NoteA virtual private cloud (VPC) is an isolated network environment that provides higher security and performance than the classic network.
If your application is deployed on an ECS instance, make sure that the network type of the ECS instance is VPC to ensure network connectivity.
VPC Network
Select the VPC to which the instance belongs.
NoteIf no VPC is available, you can create one in the VPC console. For more information, see Create and manage a VPC.
If your application is deployed on an ECS instance, the ECS instance and the GDB instance must be in the same VPC.
vSwitch
Select the vSwitch to which the instance belongs.
NoteIf no vSwitch is available, you can create one in the VPC console. For more information, see Create and manage a vSwitch.
If your application is deployed on an ECS instance, the ECS instance and the GDB instance must use the same vSwitch in the same VPC.
Specification
Select the CPU and memory specifications for the instance.
Storage Space
Select the storage space size for the instance.
NoteThe storage space includes the space for your data files, system files, and log files.
Quantity
Select the number of instances with the same configuration that you want to purchase. Valid values: 1 to 50.
Subscription Duration
If you create a subscription instance, select a subscription duration. You can select a duration of 1 to 9 months, or 1, 2, 3, or 5 years.
NoteThis parameter is required only when Billing Method is set to Subscription.
If you want to enable auto-renewal for the instance, select Auto-renewal. Make sure that your account has a sufficient balance before the instance expires.
Click Buy Now.
On the Confirm Order page, perform the following operations based on the Billing Method that you selected:
Subscription
Confirm the parameter settings, select Terms of Service, and then click Pay.
On the Payment page, click Pay.
Pay-as-you-go
Confirm the parameter settings, select Terms of Service, and then click Activate Now.
After the instance is created, you can view the new instance on the Instance List page.
NoteThe instance initialization takes 10 to 15 minutes. You can perform subsequent operations only after the instance status changes to Running.
Shopping cart checkout
If you purchase a Subscription instance, you can also click Add to Cart after you configure the instance to pay for it together with other products. The procedure is as follows:
On the right side of the page, click the shopping cart icon.
In the Shopping Cart panel, select the products that you want to purchase and click Proceed to Checkout.
On the Shopping Cart page, confirm that your selected products are correct.
Click Buy Now.
If they are not, select the correct products and click Buy Now.
NoteYou can also reselect the Subscription Duration and Quantity for the GDB instance.
On the Confirm Order page, select Terms of Service and click Confirm Purchase.
On the Payment page, follow the prompts to complete the payment.
What to do next
After you create the instance, you must perform the following operations:
Create an account and set a password. For more information, see Create an account.
Configure a whitelist for the instance to allow external devices to access it. For more information, see Configure a whitelist.
Optional: To connect to the instance over the internet, you must first apply for a public endpoint. For more information, see Apply for a public endpoint.