bosh icon indicating copy to clipboard operation
bosh copied to clipboard

Upgrading NATS to a supported version

Open danielfor opened this issue 2 years ago • 2 comments

  • Updated NATS to a supported version: 2.8.3

  • NATS 2.8.3 does not support wildcards in the users authorization section in the nats.cfg file. Wildcards were used previously to allow any bosh agents to publish/subscribe to NATS. Because of the new wildcards restrictions we need to add all the users explicitly in the configuration and that needs to be done continuously, as more VMs/Agents are added. To execute this continuous synchronization, we created the ruby gem 'bosh-nats-sync' which keeps the list of active agents up to date.

  • Added the monit infrastructure to start the bosh-nats-sync gem.

What tests have you run against this PR?

The BOSH Director unit tests.

How should this change be described in bosh release notes?

This is an update of NATS. This component used by the director was in an unsupported version.

Does this PR introduce a breaking change?

No, this won't affect users using BOSH with a standard NATS installation. Warning: For BOSH installations with custom NATS configurations (e.g custom NATS server running outside of the director VM) the bosh-nats-sync component needs to be configured and run according to the customizations.

Tag your pair, your PM, and/or team!

Co-authored-by: Brian Upton [email protected] Co-authored-by: Seth Boyles [email protected] Co-authored-by: Brian Cunnie [email protected] Co-authored-by: Manuel Alba [email protected] Co-authored-by: Long Nguyen [email protected] Co-authored-by: Daniel Felipe Ochoa [email protected]

danielfor avatar Jul 18 '22 23:07 danielfor

@beyhan @jpalermo @rkoster could ya'll take a look at this at some point?

lnguyen avatar Aug 01 '22 14:08 lnguyen

CLA Signed

The committers listed above are authorized under a signed CLA.

  • :white_check_mark: login: lnguyen / name: Long Nguyen (60f51b696ded464269d3589ce64618650eb6a15e, 95961b9ed41831479e34747cfcb4bd40bf18d33d)

@lnguyen could you note the performance tests you did here? How many "VMs" and how long it was taking to render?

jpalermo avatar Aug 17 '22 22:08 jpalermo

@lnguyen could you note the performance tests you did here? How many "VMs" and how long it was taking to render?

I ran 500 vms on BOSH-lite and it was taking about 1 min per vm to come up

lnguyen avatar Aug 22 '22 15:08 lnguyen