The MDEX Engine manages all processor-intensive tasks related to query processing using a pre-configured threading pool.

By managing the threading pool, the MDEX Engine ensures that the system resources are used effectively for the prioritized tasks in the MDEX Engine that support high performance query processing.

You define the number of threads in the MDEX Engine threading pool at MDEX Engine startup, using the --threads num flag, where num can be 1 or greater.

You can also specify the auto option for the existing --threads flag, for both dgraph and dgidx. Specifying --threads auto causes one thread to be used for each core on the machine.

The threading pool manages the following MDEX Engine tasks:

MDEX Engine operations that do not have a significant impact on CPU use are not managed by the threading pool.

If you use operating system commands such as top to examine the number of threads used by the MDEX Engine server, you may see a number that is larger than the number you specify with the --threads flag. This is because in addition to this number of threads, the MDEX Engine may use additional threads for other tasks. These additional threads support tasks that are run infrequently, are less-CPU intensive, and do not affect overall MDEX Engine performance. You cannot control these additional threads.


Copyright © Legal Notices