summaryrefslogtreecommitdiffstats
path: root/COPYRIGHT
diff options
context:
space:
mode:
authorMichael Fenn <fennm@deshawresearch.com>2013-10-09 15:48:51 -0400
committerMichael Fenn <fennm@deshawresearch.com>2013-10-09 15:48:51 -0400
commitcde00779a8d4d9c2624a3b82c6911ccf1cb2aaef (patch)
tree5ca1032934cfa03e606a23b17803edf6f4b9dce5 /COPYRIGHT
parentaf6fb8f8a16d6141f5a34b66fa81d74d4693ec67 (diff)
downloadbcfg2-cde00779a8d4d9c2624a3b82c6911ccf1cb2aaef.tar.gz
bcfg2-cde00779a8d4d9c2624a3b82c6911ccf1cb2aaef.tar.bz2
bcfg2-cde00779a8d4d9c2624a3b82c6911ccf1cb2aaef.zip
Reporting: start a new thread for each import
When dealing with a high-latency database connection (eg. across a WAN), the bcfg2-report-collector process can fall behind in its import queue. The imports are very much bound by the response latency of the database server and not processing throughput. This patch fires off a new thread for each database interaction. The thread itself simply falls out of scope when the interaction is finished processing. The interaction object is still read from the disk serially in order avoid having to create a locking mechanism for that part of the process. This change does potentially create greater load on the database server, but ultimately the load is limited by rate at which the bcfg2 server can generate work.
Diffstat (limited to 'COPYRIGHT')
0 files changed, 0 insertions, 0 deletions