[ADDED] Tiered limits and fix limit issues on updates (#2945)

* Adding tiered limits and fix limit issues on updates

Signed-off-by: Matthias Hanel <mh@synadia.com>
This commit is contained in:
Matthias Hanel
2022-03-28 20:47:54 -04:00
committed by GitHub
parent 26c6dcdc4d
commit 0c5f3688a7
18 changed files with 1155 additions and 257 deletions

View File

@@ -949,11 +949,13 @@ func testMQTTEnableJSForAccount(t *testing.T, s *Server, accName string) {
if err != nil {
t.Fatalf("Error looking up account: %v", err)
}
limits := &JetStreamAccountLimits{
MaxConsumers: -1,
MaxStreams: -1,
MaxMemory: 1024 * 1024,
MaxStore: 1024 * 1024,
limits := map[string]JetStreamAccountLimits{
_EMPTY_: {
MaxConsumers: -1,
MaxStreams: -1,
MaxMemory: 1024 * 1024,
MaxStore: 1024 * 1024,
},
}
if err := acc.EnableJetStream(limits); err != nil {
t.Fatalf("Error enabling JS: %v", err)