worker thread pool of 1, gremlin pool of 1 and boss thread pool of 1 ?

Hello - I have an remote gremlin setup backend as cassandra, In my gremlin remote logs I see a log statement "INFO org.apache.tinkerpop.gremlin.server.GremlinServer - Gremlin Server configured with worker thread pool of 1, gremlin pool of 1 and boss thread pool of 1." Can some help me understand what does it meant by worker thread pool of 1, gremlin pool of 1 and boss thread pool of 1 ?
S
spmallette391d ago
Those values correspond to the three thread pools in Gremlin Server. The boss accepts incoming connections and passes them off to the worker pool - the boss stays at 1 typically. The worker pool handles non-blocking operations in the processing pipeline for a request - the worker default to 1 and it's typically acceptable there but you might go as high as the number of cores available. the worker will delegate blocking operations to the gremlinPool which is what does the query processing. if you set your gremlinPool to 1 you will get just one query processed at time. You usually want a number larger than than if your server can support it. I assume yours is set to 1 because you've stayed with the default configuration of 0 which then defaults to the number of available processors (i'd imagine you're on a small instance running Gremlin Server).
N
neo4697390d ago
Thanks @spmallette for answering the query. Is there a ideal configuration mentioned for production systems, where we have 50millions+ vertices and edges, for fast query processing ?
S
spmallette390d ago
not sure there is an ideal configuration. your workload, types of queries and graph structure of those millions of elements are all going to impact "fast query processing". i assume that with a gremlinPool of "1" that output was coming from a test server of some sort and not your production system. i assume that when you move to production that number will be bigger by default. i'd just start with that and test your workload. then try some larger gremlinPool numbers and/or larger instance to see what effect it has if you're not satisfied.
Want results from more Discord servers?
Add your server
More Posts
Multiple next() steps in a traversalIs there a way to exit traversals at different steps? I tried using the `next()` step on a static, btell me writing query this patternvartex(orange): question: {code:string, type: string } vartex(purple):LeaningElement What I want toVersion Update differencesHi guys, We are upgrading from gremlin_python 3.4.11 to 3.6.2. We had some functions break and it What is the ordering of group?For instance (on Tinkerpop modern) g.V().group().by('age').by('name') gives [{32=[josh], 35=[peter],Export to graphml/graphson with PythonHello everyone, I hope this question has not been asked yet, if so I'm sorry for redundant content.Publish all Q&A on the webTo my best knowledge, Discord contents are not indexed by search engine crawlers. If we can export aOut edge of vertex is slowWhen i run this below query: "g.V().has("guid", "6203620951906330066").limit(10).out("matching").proTranslating bytecode into JupyterLabs compatible script.I've found that the gremlin syntax in jupyter is different from every other language, including pythQuery if else in gremlinI have a query and that return a list vertex. I want to do a query from those vertexes like this (ifDoes Gremlin do DFS or BFS?Does Gremlin perform a Depth First Search (DFS) or Breadth First Search (BFS) when traversing?Self-service roles for providers and areas of expertiseWe have roles for providers right now as listed in #roles - they are handed out by moderators. So faMore elaborate sack examples in the docsThere are a few examples for the `sack` step, but it would be good to have a more concrete one. For