NLnetLabs / krill

RPKI Certificate Authority and Publication Server written in Rust
https://nlnetlabs.nl/projects/routing/krill/
Mozilla Public License 2.0
289 stars 40 forks source link

Support multi-node task-queue #1112

Closed timbru closed 9 months ago

timbru commented 11 months ago

Depends on #1101.

When multi-node setups with database storage (postgresql) are supported, then we also need to support multiple nodes using a shared queue.

We may want to insist that each node has a unique name (if postgresql is used as a storage option) and track which node is running a certain task.

Then we can also use this info on a restart. I.e. all running tasks for the restarted node can be assumed to have failed and can be restarted.

timbru commented 9 months ago

Closing this for now. The task queue relies on storage transactions, at least in #1152. This should work cross node if a database is introduced. If there is a desire to do something else then it should probably be discussed elsewhere, and then issues can be created as needed.