Skip to content

Allow --duration=0 or infinite duration #333

@howardjohn

Description

@howardjohn

It can be useful to continually apply load. For these cases, an infinite duration would be nice. Currently setting duration=0 provides an error:

$ docker run envoyproxy/nighthawk-dev:59683b759eb8f8bd8cce282795c08f9e2b3313d4 nighthawk_client google.com --duration 0
[2020-05-01 17:01:34.204][1][warning][misc] [external/envoy/source/common/protobuf/utility.cc:198] Using deprecated option 'nighthawk.client.CommandLineOptions.tls_context' from file options.proto. This configuration will be removed from Envoy soon. Please see https://www.envoyproxy.io/docs/envoy/latest/intro/deprecated for details.
[2020-05-01 17:01:34.204][1][debug][misc] [external/envoy/source/common/protobuf/utility.cc:255] Proto validation error; throwing Proto constraint validation failed (CommandLineOptionsValidationError.Duration: ["value must be greater than or equal to " "1ns"]): requests_per_second {

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions