Skip to content

Commit

Permalink
fix(nats-server): Use 3 replicas for stream and consumer in nats-clus…
Browse files Browse the repository at this point in the history
…ter-test
  • Loading branch information
misuzu committed Jan 3, 2025
1 parent 98245fa commit bbf8dac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nix/services/nats-server_test.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
'';
Expand Down

0 comments on commit bbf8dac

Please sign in to comment.