]> git.ipfire.org Git - thirdparty/FORT-validator.git/commit
Delete the validation thread pool
authorAlberto Leiva Popper <ydahhrk@gmail.com>
Thu, 26 Oct 2023 21:40:48 +0000 (15:40 -0600)
committerAlberto Leiva Popper <ydahhrk@gmail.com>
Thu, 26 Oct 2023 21:53:32 +0000 (15:53 -0600)
commitf52d74a9fd940b1e49845308f4621d759fdb310c
tree6cc9ae9b767ce3ba1b1c038de86007bf5e1c27ec
parent455e560d996c13d29b28ad65bebea1da456acc5f
Delete the validation thread pool

My original intent was "deprecate thread-pool.validation.max," but it
turns out it was just a symptom of a (mostly inoffensive)
overcomplication.

thread-pool.validation.max has proven confusing to users, because it
doesn't make sense for it to be configurable. The thread count should
always equal the number of RPKI trees, which in turn equals the number
of TALs. There's no reason why Fort should offload this decision to the
user.

As for the thread pool, the validation cycle is not really a fitting
problem for such an ellaborate solution, because the former involves a
very small amount (typically 5) of long-lived threads that start at the
same time, once every hour or so.

So instead of pooling a configured amount of threads in the beginning,
spawn raw threads as needed.

The RTR server still employs a thread pool.
docs/usage.md
src/config.c
src/config.h
src/object/tal.c
src/object/tal.h
src/rtr/db/vrps.c