[TNZ-71257][ai-assisted=yes] remove nats-v1 ref#93
Merged
Conversation
b220c51 to
d86a2e5
Compare
Member
|
Could you please write a PR description explaining your change and select whether it's a breaking change or not? Thanks! |
[ai-assisted=yes]
ameowlia
approved these changes
Mar 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
[ai-assisted=yes]
Summary
We used to run nats v1 (package name: gnatsd). We wanted to update to nats v2 (package name: nats-server). However, nats v1 and nats v2 cannot communicate with each other. This means that if we updated them the "normal" bosh way, there would be nats split brains while the nats VMs were rolling. Split brains are bad.
So instead we built a custom nats-v2-migrate. It would wait until the bosh deploy had finished rolling the nats vms and then it would update all of the nats servers to use nats v2 all at once.
In order for the migration to work the nats v1 and nats v2 binaries must be present on all of the nats vms.
At this point, now all customers should have upgrades to nats v2 and it is safe to rip out nats v1 and the migrator.
test results:
ci updates: cloudfoundry/wg-app-platform-runtime-ci#120
Backward Compatibility
Breaking Change? No