FAQ

Updated at:

This topic describes the frequently asked questions (FAQs) about using Graph Database (GDB).

Product introduction

  • Q: What is Graph Database (GDB)?

    A: Graph Database (GDB) is a real-time and reliable online database service that supports the Property Graph model to store and query highly connected data. It supports the Apache TinkerPop Gremlin query language, which helps you quickly build applications that are based on highly connected datasets. GDB is ideal for scenarios with highly interconnected datasets, such as social networking, fraud detection, recommendation engines, real-time graphs, and network or IT operations. For more information, see What is Graph Database (GDB)?

  • Q: Does Graph Database (GDB) support atomicity, consistency, isolation, and durability (ACID) transactions?

    A: Yes. Unlike systems where you control the start and commit of transactions, GDB starts a transaction for each domain-specific language (DSL) request. It then automatically commits or rolls back the transaction based on the execution status. During the public preview, GDB provides the READ COMMITTED isolation level for transactions by default. More isolation level options will be available after the commercial release. Note that a single DSL transaction has a total buffer size limit of 64 MB. If this limit is exceeded, the transaction fails. To clear test data, you can use the data deletion tool. For more information about the tool, see GDB data deletion tool.

Instance specification

  • Q: Does Graph Database (GDB) support changing instance types?

    A: The High-availability Edition supports changing instance types. The Basic Edition does not support this feature, except for read-only instances.

  • Q: Does Graph Database (GDB) support storage scaling?

    A: Yes, both the High Availability and Basic editions are supported.

  • Q: What happens if the instance storage space is full?

    A: If the storage space of an instance is full, the instance is locked and becomes read-only. We recommend that you check the storage usage of your instance regularly.

Instance usage

  • Q: Do I need to create and maintain indexes for Graph Database (GDB)?

    A: No. GDB automatically creates and maintains indexes, so you do not need to manage them.

  • Q: Does Graph Database (GDB) perform query optimization?

    A: Yes. GDB performs query optimization. The optimization methods are rigorously tested to ensure that the results are accurate.

  • Q: Do I need to manually upgrade and maintain the minor engine version of GDB?

    A: Yes. New minor versions of the GDB database are released after rigorous testing. You can upgrade the minor engine version in the Graph Database (GDB) console. During the upgrade, transient disconnections may occur. We recommend that you configure your application to automatically reconnect. For more information about how to upgrade, see Upgrade the minor engine version.

  • Q: What should I know about failover for a GDB High-availability instance?

    A: For a GDB High-availability Edition instance, if the primary node fails, GDB quickly switches to the secondary node. This switch causes a brief transient disconnection. The switch itself is fast, but the total time required for the failover is mainly spent on diagnosing and confirming the primary node failure. To prevent service unavailability, we recommend that you configure your application to automatically reconnect.

  • Q: Does Graph Database (GDB) support cross-zone high availability?

    A: No, it does not.

Backup and recovery

  • Q: Do I need to perform backups manually for Graph Database (GDB)?

    A: No. GDB creates a default backup policy for each instance and performs backups automatically. You can modify the backup policy, but manual backups are not required.

  • Q: Is there a retention period limit for Graph Database (GDB) backups?

    A: Yes. You can set the retention period for backups to a value from 7 to 730 days in the backup settings. Backups are automatically deleted after the specified retention period expires.

Instance connection

  • Q: Does Graph Database (GDB) support access over the public network?

    A: Yes. You can apply for a public endpoint on the Basic Information page of your instance in the GDB console. After the endpoint is created, you can submit a ticket to disable public network access.

  • Q: How do I troubleshoot a Graph Database (GDB) connection failure?

    A: 1. Check the whitelist configuration of your GDB instance to ensure that the source IP address is not blocked. For public network access, you can visit myip.ipip.net to obtain the public IP address of your machine and add it to the instance whitelist. Note that this IP address may change. You can also add 0.0.0.0/0 to the whitelist to allow access from all source IP addresses. This ensures that your development machine can access the kernel. Note that public network access is for functional verification only and does not guarantee service performance or stability. 2. Ensure that you have added an account to the GDB instance and that the account information used for the connection is correct. For more information about how to add an account, see Create an account. 3. If you have a single-node, non-read-only instance that was previously connectable but is now experiencing connection issues, try restarting it in the console. Single-node instances do not have a Service-Level Agreement (SLA) and are intended for testing, not for production environments.

# Check if the domain name can be connected. Replace the domain name with your instance endpoint. Note the difference between internal and public endpoints. A successful connection returns ttl and time.
ping gds-uf6j53c35ko13u78129990pub.graphdb.rds.aliyuncs.com
PING gds-uf6j53c35ko13u78129990pub.graphdb.rds.aliyuncs.com (101.xxx.xxx.xxx): 56 data bytes
64 bytes from xxx.xxx.xxx: icmp_seq=0 ttl=91 time=31.061 ms
64 bytes from xxx.xxx.xxx: icmp_seq=1 ttl=91 time=30.576 ms
...
# Check if the instance port can be connected. Replace the endpoint and port with those of your instance. Note the difference between internal and public endpoints. A successful operation connects to the port.
telnet gds-uf6j53c35xxx.graphdb.rds.aliyuncs.com 3734
Trying 101.xxx.xxx.xxx...
Connected to gds-uf6j53c35xxx.graphdb.rds.aliyuncs.com.
Escape character is '^]'.

API, SDK, and instance access

  • Q: What graph query languages does Graph Database (GDB) support?

    A: GDB supports the open source Apache TinkerPop Gremlin graph query language. For more information about compatibility, see GDB Gremlin compatibility. GDB also supports the native Cypher graph query language. For more information about compatibility, see GDB Cypher compatibility.

  • Q: Can I use an open source Apache TinkerPop driver to access Graph Database (GDB)?

    A: Yes. GDB is compatible with Apache TinkerPop 3.3.x and 3.4.0 drivers. You can access GDB using Java, Python, C#, or REST. For an example of how to access GDB using the Java SDK, see Java SDK access example.

  • Q: While using an SDK, I encounter errors such as "Max frame length of 65536 has been exceeded" and "Timed out while waiting for an available host". What should I do?

    A: To resolve these errors, set the maxContentLength, maxSize, and minSize parameters on the client. For more information, see this topic.

  • Q: While using an SDK, I encounter the "rejected from java.util.concurrent.ThreadPoolExecutor[Running, pool size = xx, active threads = xx, queued tasks = xx, completed tasks = xx]" error. What should I do?

    A: For more information, see this link. After a `submit` operation, you must retrieve the results. You can use `all.join()` to retrieve all results, `one()` to retrieve a single result, or `some()` to retrieve a batch of results.

  • Q: When I access my instance, I receive the "Resource busy: engine write status disable" error. What should I do?

    A: This error can occur for two reasons: 1. The instance has expired. Check the instance expiration time on the instance details page. If the instance has expired, it is locked and write operations are disabled. The instance is automatically released after 7 days. To restore normal use, you must renew the instance. 2. The instance requires a restart. If you are using a single-node instance and it is not locked, try restarting it in the console. Single-node instances do not have an SLA and are intended for testing, not for production environments.

Instance monitoring

  • Q: Why does the Instance Monitoring page show "Unable to obtain data for now"?

    A: This message can appear for two reasons: 1. The instance was recently created. You may need to wait a few minutes for the monitoring data to appear. 2. You are logged on as a RAM user with insufficient permissions. If you are a RAM user, ask the Alibaba Cloud account owner to grant the AliyunGDBFullAccess and AliyunCloudMonitorFullAccess permissions to your RAM user. For more information, see Grant permissions to a RAM user.

Data import

RAM users

  • Q: As a RAM user, why can't I update the GDB instance name, whitelist, or backup policy?

A: This is because you do not have the required permissions. The Alibaba Cloud account owner must grant you the required permissions. For more information, see Preparations for a RAM user to use GDB.

Visualization

  • Q: Why is a DSL query executed in Data Management (DMS) faster than in my program?

    A: This is because DMS automatically appends limit(256) to all statements. Therefore, the execution performance in DMS does not represent the actual performance of the DSL statement.

  • Q: Does DMS support Cypher visualization?

    A: No. DMS does not currently support Cypher visualization.

  • Q: Does GDB have its own visualization tool?

    A: The open source gdb-console supports visualization for both Gremlin and Cypher. If you have specific visualization requirements, you can customize the tool based on its open source code.

Performance analysis

  • Q: How can I analyze the performance of a Gremlin statement?

    A: You can use the gremlin-console to analyze the performance of a Gremlin statement. To do this, append .profile() to the statement.