From bbf8dac42397bef5948b857b0b216bb033328c23 Mon Sep 17 00:00:00 2001 From: misuzu Date: Fri, 3 Jan 2025 19:00:36 +0200 Subject: [PATCH] fix(nats-server): Use 3 replicas for stream and consumer in nats-cluster-test --- nix/services/nats-server_test.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nix/services/nats-server_test.nix b/nix/services/nats-server_test.nix index b5ad70d..4b677ef 100644 --- a/nix/services/nats-server_test.nix +++ b/nix/services/nats-server_test.nix @@ -74,10 +74,10 @@ in nats account info # https://docs.nats.io/nats-concepts/jetstream/js_walkthrough - nats stream add my_stream --subjects=foo --storage=memory --defaults + nats stream add my_stream --subjects=foo --storage=memory --replicas=3 --defaults nats stream info my_stream nats pub foo --count=5 "publication #{{Count}} @ {{TimeStamp}}" - nats consumer add my_stream pull_consumer --pull --defaults + nats consumer add my_stream pull_consumer --pull --replicas=3 --defaults nats consumer next my_stream pull_consumer --count 5 nats stream rm -f my_stream '';