Skip to content

Commit 723a2ec

Browse files
committed
Updating limits document
1 parent 57ba5d2 commit 723a2ec

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

articles/cosmos-db/gremlin-limits.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,13 @@ When Gremlin limit is reached, traversal is canceled with **x-ms-status-code** =
2020

2121
**Resource** | **Default limit** | **Explanation**
2222
--- | --- | ---
23-
*Memory per request* | **2 GB** | Maximum memory that a request can consume during processing. Requests that need to compute large data sets will consume additional memory. Consider scoping requests to smaller data sets to avoid crossing this limit or use OLAP solutions.
2423
*Script length* | **64 KB** | Maximum length of a Gremlin traversal script per request.
2524
*Operator depth* | **400** | Total number of unique steps in a traversal. For example, ```g.V().out()``` has operator count of 2: V() and out(), ```g.V('label').repeat(out()).times(100)``` has operator depth of 3: V(), repeat(), and out() because ```.times(100)``` is a parameter to ```.repeat()``` operator.
2625
*Degree of parallelism* | **32** | Maximum number of storage partitions queried in a single request to storage layer. Graphs with hundreds of partitions will be impacted by this limit.
2726
*Repeat limit* | **32** | Maximum number of iterations a ```.repeat()``` operator can execute. Each iteration of ```.repeat()``` step in most cases runs breadth-first traversal, which means that any traversal is limited to at most 32 hops between vertices.
2827
*Traversal timeout* | **30 seconds** | Traversal will be canceled when it exceeds this time. Cosmos DB Graph is an OLTP database with vast majority of traversals completing within milliseconds. To run OLAP queries on Cosmos DB Graph, use [Apache Spark](https://azure.microsoft.com/services/cosmos-db/) with [Graph Data Frames](https://spark.apache.org/docs/latest/sql-programming-guide.html#datasets-and-dataframes) and [Cosmos DB Spark Connector](https://github.com/Azure/azure-cosmosdb-spark).
2928
*Predicate limit* | **20** | Count of ```.has()``` or ```.hasNot()``` steps applied on a single vertex or edge. When this limit is hit error surfaced to the application is ```The SQL query exceeded the maximum number of joins. The allowed limit is 20```. It's a temporary inconvenience as team is working to lift this limit.
30-
*Idle connection timeout* | **5 hours** | Amount of time Graph server will keep websocket connection open without traffic on it. TCP keep-alive packets or HTTP keep-alive requests don't extend connection lifespan beyond this limit, however if they aren't sent then underlying Azure infrastructure may close the connection even sooner. Cosmos DB Graph engine considers to be idle if there are no Gremlin traversals running on it.
29+
*Idle connection timeout* | **1 hour** | Amount of time Graph server will keep idle websocket connections. TCP keep-alive packets or HTTP keep-alive requests don't extend connection lifespan beyond this limit. Cosmos DB Graph engine considers websocket connections to be idle if there are no active Gremlin requests running on it.
3130
*Resource token per hour* | **100** | Number of unique resource tokens used by Gremlin clients to connect to Gremlin account in a region. When application exceeds hourly unique token limit, `"Exceeded allowed resource token limit of 100 that can be used concurrently"` will be returned on next authentication request.
3231

3332
## Next steps

0 commit comments

Comments
 (0)