Skip to content

Commit 4949a51

Browse files
authored
Merge pull request #218 from unitmatrix/cleanup
Unused settings cleanup
2 parents b657737 + 9e68ecc commit 4949a51

File tree

2 files changed

+1
-22
lines changed

2 files changed

+1
-22
lines changed

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,9 @@ Additional environment variables can be set to adjust performance.
160160
* GRAPHITE_REPLICATION_FACTOR: (1) # The replication factor to use with consistent hashing. This should usually match the value configured in Carbon.
161161
* GRAPHITE_CLUSTER_SERVERS: ('') This should list of remote servers in the cluster. These servers must each have local access to metric data. Note that the first server to return a match for a query will be used. See [docs](https://graphite.readthedocs.io/en/latest/config-local-settings.html#cluster-configuration) for details.
162162
* GRAPHITE_USE_WORKER_POOL: (true) Creates a pool of worker threads to which tasks can be dispatched. This makes sense if there are multiple CLUSTER_SERVERS and/or STORAGE_FINDERS because then the communication with them can be parallelized.
163-
* GRAPHITE_POOL_WORKERS_PER_BACKEND: (8) The number of worker threads that should be created per backend server
164-
* GRAPHITE_POOL_WORKERS: (1) A baseline number of workers that should always be created
165163
* GRAPHITE_REMOTE_FIND_TIMEOUT: (30) Timeout for metric find requests
166164
* GRAPHITE_REMOTE_FETCH_TIMEOUT: (60) Timeout to fetch series data
167165
* GRAPHITE_REMOTE_RETRY_DELAY: (0) Time before retrying a failed remote webapp.
168-
* GRAPHITE_REMOTE_PREFETCH_DATA: (false) # set to True to fetch all metrics using a single http request per remote server instead of one http request per target, per remote server. # Especially useful when generating graphs with more than 4-5 targets or if there's significant latency between this server and the backends.
169166
* GRAPHITE_MAX_FETCH_RETRIES: (2) Number of retries for a specific remote data fetch
170167
* GRAPHITE_FIND_CACHE_DURATION: (0) Time to cache remote metric find results
171168
* GRAPHITE_STATSD_HOST: ("127.0.0.1") If set, django_statsd.middleware.GraphiteRequestTimingMiddleware and django_statsd.middleware.GraphiteMiddleware will be enabled.

conf/opt/graphite/webapp/graphite/local_settings.py

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -284,17 +284,6 @@
284284
# memory consumption (and number of connections to memcached).
285285
USE_WORKER_POOL = os.environ.get("GRAPHITE_USE_WORKER_POOL", "true").lower() in ['1', 'true', 'yes']
286286

287-
# The number of worker threads that should be created per backend server.
288-
# It makes sense to have more than one thread per backend server if
289-
# the graphite-web web server itself is multi threaded and can handle multiple
290-
# incoming requests at once.
291-
POOL_WORKERS_PER_BACKEND = int(os.environ.get('GRAPHITE_POOL_WORKERS_PER_BACKEND', '8'))
292-
293-
# A baseline number of workers that should always be created, no matter how many
294-
# cluster servers are configured. These are used for other tasks that can be
295-
# off-loaded from the request handling threads.
296-
POOL_WORKERS = int(os.environ.get('GRAPHITE_POOL_WORKERS', '1'))
297-
298287
# Maximum number of worker threads for concurrent storage operations
299288
#POOL_MAX_WORKERS = 10
300289

@@ -336,13 +325,6 @@
336325
# when making a request to a remote webapp server in CLUSTER_SERVERS
337326
#REMOTE_STORE_FORWARD_HEADERS = [] # An iterable of HTTP header names
338327

339-
## Prefetch cache
340-
# set to True to fetch all metrics using a single http request per remote server
341-
# instead of one http request per target, per remote server.
342-
# Especially useful when generating graphs with more than 4-5 targets or if
343-
# there's significant latency between this server and the backends.
344-
REMOTE_PREFETCH_DATA = os.environ.get("GRAPHITE_REMOTE_PREFETCH_DATA", "false").lower() in ['1', 'true', 'yes']
345-
346328
## Remote rendering settings
347329
# Set to True to enable rendering of Graphs on a remote webapp
348330
#REMOTE_RENDERING = True
@@ -455,4 +437,4 @@
455437
except NameError:
456438
pass
457439
else:
458-
MIDDLEWARE_CLASSES = MIDDLEWARE
440+
MIDDLEWARE_CLASSES = MIDDLEWARE

0 commit comments

Comments
 (0)