The problem of high bandwidth usage of nats service
29 views
Skip to first unread message
SeeYouAgain
unread,
Dec 10, 2024, 9:47:42 AM12/10/24
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to nats
My nats is in cluster mode. I tried to traverse the for loop multiple times and start multiple instances. I used js.Publish to publish messages. The current message volume is not too much. The number of copies of each stream is 3, but it appears The problem of high bandwidth usage has been solved. The highest download reached 800 MB and the upload reached 600 MB. Is it a problem that I have created multiple instances? Or is it because the nats service needs to use so much bandwidth?
The following is my program to initialize the connection and obtain nats.JetStreamContext