Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ClusterTraffic to account claims #223

Merged
merged 3 commits into from
Sep 10, 2024
Merged

Add ClusterTraffic to account claims #223

merged 3 commits into from
Sep 10, 2024

Conversation

neilalexander
Copy link
Member

@neilalexander neilalexander commented Aug 1, 2024

For supporting nats-io/nats-server#5466.

For now expected values would be:

  • "system" - use the system account (default, as today)
  • "owner" - use the same account that owns the asset
  • "account:ACCNAME" - use a third specified ACCNAME

Signed-off-by: Neil Twigg [email protected]

@coveralls
Copy link

coveralls commented Aug 1, 2024

Pull Request Test Coverage Report for Build 10801003787

Details

  • 2 of 2 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 81.12%

Totals Coverage Status
Change from base Build 9809885119: 0.0%
Covered Lines: 2737
Relevant Lines: 3374

💛 - Coveralls

v2/account_claims.go Outdated Show resolved Hide resolved
For supporting nats-io/nats-server#5466.

For now expected values would be:
* `"system"` - use the system account (default, as today)
* `"owner"` - use the same account that owns the asset
* `"account:ACCNAME"` - use a third specified `ACCNAME`

Signed-off-by: Neil Twigg <[email protected]>
@neilalexander neilalexander changed the title Add NRGAccount to account claims Add ClusterTraffic to account claims Sep 10, 2024
@neilalexander neilalexander marked this pull request as ready for review September 10, 2024 09:29
@neilalexander
Copy link
Member Author

CI failure seems to be related to installing staticcheck.

@neilalexander neilalexander merged commit 4445fcd into main Sep 10, 2024
8 checks passed
derekcollison added a commit to nats-io/nats-server that referenced this pull request Sep 13, 2024
…5466)

This PR adds the ability to move NRG traffic out of the system account
and into the asset accounts. Particularly in heavily multi-tenanted
systems, this can help cases where head-of-line blocking may happen in
the system account due to large amounts of replication traffic.

This needs to be enabled on a per-account basis on each participating
server. Servers advertise their capability to support account NRG to
each other. If a Raft group detects a peer coming up without support,
they will revert back to using the system account automatically.

Requires nats-io/jwt#223 and then `go.mod`
updating.

Signed-off-by: Neil Twigg <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants