Skip to content

Help defining a SinePacer to get to target values #714

@randwom

Description

@randwom

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions