Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publishing N samples in a single burst only once #6

Open
TheFixer opened this issue Aug 5, 2022 · 0 comments
Open

Publishing N samples in a single burst only once #6

TheFixer opened this issue Aug 5, 2022 · 0 comments

Comments

@TheFixer
Copy link

TheFixer commented Aug 5, 2022

Hi, I played around with this nice pubsub tool, and I find it very useful to write tests. In one of my test experiments I stumbled on the following.

In my experiment, I want a publishing node that publishes N key values in a single burst as fast as possible, and then wait forever. To achieve that I used the writer option N:R*B. Here, N is the number of key values, R is the rate, B is the burst size. Evidently, in my use case B equals N, because I want all data to be published at once. The question that I have relates to R (which is the rate in bursts/second). What is a proper values for R in my use case?

My naive was approach was to use R=0. After all, if I publish a data set of N key values only once and then wait forever, you would think that rate converges to 0 after waiting indefinitely. However, it looks like that data is published continously when R=0. Ofcourse, I can get my test case to work by using a very small R (e.g., R=0.001). In this case the set will be published once, and if my test finishes within 1000 sec I'll be OK. But it is not actually the same as my original problem, because I'll have be sure that my test now finishes within 1000 sec.

My concrete question is:
Is there any reason why N:0 * N does publishes data continuously, instead of publishing it once and then wait forever?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant