Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Turris
ucollect
Commits
230f2cf5
Verified
Commit
230f2cf5
authored
Jan 30, 2017
by
Michal 'vorner' Vaner
Browse files
Decrease number of background threads
Because pythons GIL
☺
parent
c78d0b15
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/master/collect-master.py
View file @
230f2cf5
...
...
@@ -32,7 +32,10 @@ import activity
import
importlib
import
os
reactor
.
suggestThreadPoolSize
(
4
)
# Too much seems to have trouble with locking :-(
# If we have too many background threads, the GIL slows down the
# main thread and cleants start dropping because we are not able
# to keep up with pings.
reactor
.
suggestThreadPoolSize
(
3
)
severity
=
master_config
.
get
(
'log_severity'
)
if
severity
==
'TRACE'
:
severity
=
log_extra
.
TRACE_LEVEL
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment