From 5ca6e9726bcbd37fc8849dab9b4e3ea5fd74d2c0 Mon Sep 17 00:00:00 2001 From: Idan Hefetz Date: Tue, 9 Oct 2018 08:59:38 +0000 Subject: [PATCH] Update high-scale documentation Add api-workers suggested configuration Change-Id: I1855792fad3b9ba2818fc6a04ed3f26381b722d3 --- doc/source/contributor/high-scale.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/doc/source/contributor/high-scale.rst b/doc/source/contributor/high-scale.rst index 287de67d5..69b4fa1db 100644 --- a/doc/source/contributor/high-scale.rst +++ b/doc/source/contributor/high-scale.rst @@ -39,6 +39,18 @@ The following should be set in ``/etc/vitrage/vitrage.conf``, under ``[evaluator | workers | Number of workers for template evaluator | number of cores | 1 | +----------------------+---------------------------------------------------------+-----------------+-----------------+ +The default api workers count is 1. +Increasing it will reduce the latency of parallel api calls, but will result in higher memory consumption. +If the graph contains large amounts of entities, reducing this will reduce the memory consumption dramatically. + +The following should be set in ``/etc/vitrage/vitrage.conf``, under ``[api]`` section: + ++----------------------+---------------------------------------------------------+-----------------+-----------------+ +| Name | Description | Default Value | Suggested Value | ++======================+=========================================================+=================+=================+ +| workers | Number of workers for api handler | 1 | 1 | ++----------------------+---------------------------------------------------------+-----------------+-----------------+ + To apply, run ``sudo service vitrage-graph restart``