From 02c6c19687fac181ef3e3250f8de5dd85e10d11e Mon Sep 17 00:00:00 2001 From: drebs Date: Thu, 23 Nov 2017 16:05:51 -0200 Subject: [feature] add bandwidth throttling to the client Intercept the creation of the protocol factory in the HTTP connection pool to use twisted.protocols.policies.ThrottlingFactory and control the incoming and outgoing bandwidth. The factory only controls one connection, so when throttling we limit the number of connections of the pool to one per host. This way, throttling happens in a per-host basis. Closes: #8931 --- docs/reference/environment_variables.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'docs/reference/environment_variables.rst') diff --git a/docs/reference/environment_variables.rst b/docs/reference/environment_variables.rst index 321c925c..9b441e86 100644 --- a/docs/reference/environment_variables.rst +++ b/docs/reference/environment_variables.rst @@ -6,11 +6,12 @@ Some environment variables affect the behaviour of Soledad: ============================== =============== ================================= variable affects description ============================== =============== ================================= -``SOLEDAD_COUCH_URL`` server override the CouchDB url. ``SOLEDAD_HTTP_PERSIST`` client persist HTTP connections. +``SOLEDAD_THROTTLING`` client enable bandwidth throttling. ``SOLEDAD_USE_PYTHON_LOGGING`` client / server use python logging instead of twisted's logger. ``SOLEDAD_LOG_TO_STDOUT`` client / server log to standard output. +``SOLEDAD_COUCH_URL`` server override the CouchDB url. ``SOLEDAD_SERVER_CONFIG_FILE`` server use this configuration file instead of the default one. ``LOCAL_SERVICES_PORT`` server which port to use for local -- cgit v1.2.3