[8/n] [sync-switch] read switch config in one transaction#10649
[8/n] [sync-switch] read switch config in one transaction#10649sunshowers wants to merge 3 commits into
Conversation
Created using spr 1.3.6-beta.1 [skip ci]
Created using spr 1.3.6-beta.1
The work I'm doing can be summarized as "move any progenitor/HTTP interactions between nexus and {mgd,dpd} out of |
Ohhh I might have misunderstood. Is this about this comment? omicron/nexus/src/app/background/tasks/sync_switch_configuration.rs Lines 616 to 621 in 4718e46 and the related code? If so, yes, you can ignore this for now - all of that is definitely under the "progenitor interaction between nexus and mgd" umbrella. It does use the db but not to construct the bootstore, and yeah we'll be able to just delete it all once the scrimlets are responsible for mgd config sync'ing. |
Yeah, exactly -- that's what I figured. |
Created using spr 1.3.6-beta.1
Part two of the fix for #10640. This wires up what was introduced in the previous commit, #10648, dropping the piecemeal reads. We aren't totally out of the woods yet, because the transactional read currently doesn't handle transient db issues as well as it could. We're going to fix that in a principled fashion in upcoming commits.
Note that I haven't touched the mgd and other parts of the switch config in this commit, since @jgallagher is actively working on them. (Let me know if I should also include those changes either here or in a followup.)
Depends on: