diff options
author | Michael Fenn <fennm@deshawresearch.com> | 2013-10-09 15:48:51 -0400 |
---|---|---|
committer | Michael Fenn <fennm@deshawresearch.com> | 2013-10-09 15:48:51 -0400 |
commit | cde00779a8d4d9c2624a3b82c6911ccf1cb2aaef (patch) | |
tree | 5ca1032934cfa03e606a23b17803edf6f4b9dce5 /schemas/info.xsd | |
parent | af6fb8f8a16d6141f5a34b66fa81d74d4693ec67 (diff) | |
download | bcfg2-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 'schemas/info.xsd')
0 files changed, 0 insertions, 0 deletions