Documentation ¶
Index ¶
Constants ¶
View Source
const ( // LogEveryN controls how frequently common log messages are logged. LogEveryN = 100 // ChannelCreateDelay controls the rate at which channels are created. ChannelCreateDelay = 20 * time.Millisecond // ChannelTrackTopic is the topic tp track channel join/leaves. ChannelTrackTopic = "Pixie.JetStream.Loadtest.Channels" // UpdateTopic is the topic for messages on a particular channel. UpdateTopic = "Pixie.JetStream.Loadtest.Update" )
Variables ¶
View Source
var LoadTestStream = &nats.StreamConfig{ Name: "LoadTestStream", Subjects: []string{ ChannelTrackTopic, GetTopicForChannel("*"), }, Replicas: 5, AllowDirect: true, MaxAge: time.Hour * 24, }
LoadTestStream is the stream config for loadtest messages.
Functions ¶
func GetTopicForChannel ¶
GetTopicForChannel gets the topic name given a channel name.
func SetupJetStream ¶
SetupJetStream parses the given flags, connects to nats/jetstream and returns the streamer interface.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.