How can I control how many threads Deephaven uses for query processing?

Deephaven parallelizes query work across two thread pools, each sized by its own configuration property:

  • OperationInitializationThreadPool.threads — threads used to initialize query operations in parallel
  • PeriodicUpdateGraph.updateThreads — threads used to process table updates during each update graph cycle

Both default to -1, which tells Deephaven to use the number of processors available to the JVM (Runtime.availableProcessors). In a container, that number reflects the container's CPU limit. Any value less than or equal to zero has the same effect.

These properties control query-engine parallelism, not total JVM CPU use. Other threads (garbage collection, gRPC, etc.) are not governed by them.

Set them like any other configuration property, for example with -DPeriodicUpdateGraph.updateThreads=4 in START_OPTS. See How to set properties.

For more on concurrency in Deephaven, see Managing thread pool sizes.

Note

These FAQ pages contain answers to questions about Deephaven Community Core that our users have asked in our Community Slack. If you have a question that is not answered in our documentation, join our Community and we'll be happy to help.