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

Help defining a SinePacer to get to target values #714

Open
randwom opened this issue Oct 17, 2024 · 0 comments
Open

Help defining a SinePacer to get to target values #714

randwom opened this issue Oct 17, 2024 · 0 comments

Comments

@randwom
Copy link

randwom commented Oct 17, 2024

Question

Hi there,

First off, thanks for making such a solid package 💗.

I'm looking to move from a ConstantPacer to a SinePacer but I am struggling to get the inputs right.

My current ConstantPacer does 15000 requests over the course of a minute - so 250 requests a second throughput.

How do I get something similar with SinePacer?
Where I:

  • start at 0 requests
  • peak at 250 (or whatever to reach 250 throughput) requests a second
  • finish at 0 requests
  • (optional) last for a minute
  • (optional) total 15000 requests

I.e. Something like this:
image

Closest I've figured out is this:

pacer := vegeta.SinePacer{
	Period: time.Minute,
	Mean:   vegeta.Rate{Freq: 126, Per: time.Second},
	Amp:    vegeta.Rate{Freq: 124, Per: time.Second},
}

Many thanks.

@randwom randwom changed the title How to define a SinePacer via the library Help defining a SinePacer to get to target values Oct 17, 2024
@github-staff github-staff deleted a comment Oct 29, 2024
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