简体   繁体   中英

ArangoDB blocking AQL queries

we encounter a new problem with our anrango installation. If we send an complex AQL query like iterating over multiple collections to find specific information and then follow edges etc, the whole database blocks. We see that one of our three CPU cores is at 100% the other two are around 0%-1%. While the AQL query runs, the database does not react to any other request and the web interface is unreachable, too. This means that the whole processing is halted until the one query finished.

There are two problem in this: First: The query takes much to long (graph queries) Second: The database does not react while the one query is in work.

Any ideas/solutions for this problem? What are the biggest databases/graphs you have successfully worked with?

Thx, secana

ArangoDB 2.8 contains a deadlock detection. So ArangoDB will now raise an exception if your query blocks on locking.

ArangoDB 2.8 also offers fast graph traversals which improve graph performance a lot.

Another good solution is to separate reading to a second instance with a replication slave .

With RocksDB as storage engine (available since 3.2) there are no collection-level locks anymore, which means most queries can be executed in parallel without blocking: https://docs.arangodb.com/3.4/Manual/Architecture/StorageEngines.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM