secana
secana

Reputation: 681

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

Upvotes: 0

Views: 357

Answers (1)

dothebart
dothebart

Reputation: 6067

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 follower.

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.11/deploy/architecture/storage-engine/

Upvotes: 1

Related Questions