- remove external dependency on num_cpus(), use instead built-in available_parallelism() added in rust 1.59.0
- #529 API change temporaryily removed Gaggle support
gaggle
feature) to allow upgrading Tokio and other dependencies.- if you require Gaggle support, use Goose 0.16.4 with Tokio 0.15 for now; Gaggle support is being added back in tag1consulting#509
- updated Tokio to 1.23, updated tungestenite and tokio-tungstenite to 0.18; updated ctrlc to 3.2; updated num_cpus to 1.14, updated simplelog to 0.12, updated nix to 0.26, updated rustls to 0.20, updates serial_test to 0.9
- removed
nng
dependency andgaggle
feature - removed
--manager
,--expect-workers
,--no-hash-check
,--manager-bind-host
,--manager-bind-port
,--worker
,--manager-host
,--manager-port
and related configuration defaults - removed
AttackMode::Manager
andAttackMode::Worker
- ignore all Gaggle tests, will re-enable these tests when Gaggle support is re-implemented
- box
TransactionError
to avoid over-allocating memory on the stack (seeexamples/session.rs
for an example of working with this)
- #512 include proper HTTP method and path in logs and html report when using
GooseRequest::builder()
- #514 fix panic when an empty wait time interval is set
- #516 fix unescaped inner quotes in csv logs
- #519 implement
Default
forGooseConfiguration
- #522 display times on the report in local time (instead of UTC)
- #498 ignore
GooseDefault::Host
if set to an empty string - #487 add dev-dependency on (nix)[https://docs.rs/nix] to provide test coverage confirming proper shutdown from SIGINT (ctrl-c); capture ctrl-c in a lazy_static wrapped in a RwLock so it can be reset
- #489 don't panic when writing report file and shutting down with controller
- #505 introduce
--scenarios
(andGooseDefault::Scenarios
) so a subset of scenarios can be launched, and--scenarios-list
to display internal machine names for matching
- #477 introduce
--iterations
(andGooseDefault::Iterations
) which configures each GooseUser to run a configurable number of iterations of the assigned Scenario then exit; introduces Scenario metrics which can be disabled with--no-scenario-metrics
(GooseDefault::NoScenarioMetrics
); introduces--scenario-log
and--scenario-format
(andGooseDefault::ScenarioLog
andGooseDefault::ScenarioFormat
) - #483 remove duplicate help (-h) output
- #464 add
startuptime
(andstartup_time
) TIME to controllers, setting how long the load test should spend starting configured number of users - #469 support
users
INT command on controllers during a running load test - #473 introduce
test-plan PLAN
command allowing configuration of test plan with the controller during running and idle load tests
- #431 rename
--no-granular-data
to--no-granular-report
- #415 display granular data in HTML graphs, introduce
--no-granular-data
to disable it and display graphs as they were until this change - #406 make sure that the graphs are built correctly if the load test is interrupted during the starting phase
- #408 update 'Running the load test' page in the Goose book to show HTML report
- #411 API change: some public APIs have been made private or removed
o
util::MovingAverage
structure and all related functions have been moved to a different namespace and made private oGooseRequestMetricAggregate::requests_per_second
,GooseRequestMetricAggregate::errors_per_second
andGooseRequestMetricAggregate::average_response_time_per_second
have been removed oGooseTaskMetricAggregate::tasks_per_second
has been removed oGooseMetrics::users_per_second
has been removed o formerly public methodsreport::task_metrics_template()
andreport::errors_template()
have been made private oreport::graph_rps_template()
,report::graph_eps_template()
,report::graph_average_response_time_template()
,report::graph_users_per_second_template()
andreport::graph_tasks_per_second_template()
have been removed - #379 API change: default to
INFO
level verbosity, introduce-q
to reduce Goose verbosity o note:-v
now sets Goose toDEBUG
level verbosity which when enabled will negatively impact load test performance; set-q
to restore previous level of verbosity - #379 API change: remove
.print()
which is no longer required to display metrics after a load test, disable with--no-print-metrics
orGooseDefault::NoPrintMetrics
- #422 API change: introduce
--test-plan
andGooseDefault::TestPlan
o internally represent all load tests asVec<(usize, usize)>
l test plan o use [FromStr] to auto convert --test-plan "{users},{timespan};{users},{timespan}", where {users} must be an integer, ie "100", and {timespan} can be integer seconds or "30s", "20m", "3h", "1h30m", etc, to internal Vec<(usize, usize)> representation o don't allow--test-plan
together with--users
,--startup-time
,--hatch-rate
,--run-time
,--no-reset-metrics
,--manager
and--worker
o internalAttackPhase
s renamed:Starting
->Increase
,Running
->Maintain
,Stopping
->Decrease
- #449 API change: rename
GooseTaskSet
->Scenario
,GooseTask
->Transaction
,GooseTaskResult
->TransationResult
,GooseTaskEror
->TransactionError
,WeightedGooseTasks
->WeightedTransactions
,GooseTaskFunction
->TransactionFunction
,test_start_task
->test_start_transaction
,test_stop_task
->test_stop_transaction
,register_task
->register_transaction
,task!
->transaction!
,--no-task-metrics
->--no-transaction-metrics
,GooseTaskError
->TransactionError
- #450 add support for variable speed and multiple decrease AttackPhases
- #452 API change: rename
--status-codes
to--no-status-codes
and enable collecation and summary of status codes by default
- #391 properly sleep for configured
set_wait_time()
walking regularly to exit quickly if the load test ends - #394 add additional graphs to the HTML report: errors per second, average response time, active users, active tasks
- #403 wake up a couple times a second to handle message and allow for a quick shutdown if the load test is canceled during startup
- #374 renamed
simple-with-session.rs
tosession.rs
andsimple-closure.rs
toclosure.rs
to avoid confusion with thesimple.rs
example as they all do different things - #385 properly configure
--running-metrics VALUE
when set manually - #382 set client timeout to 60 seconds by default, used for all requests made; introduce
--timeout VALUE
where VALUE is seconds as integer or a float; timeout can be configured programatically usingGooseDefault::Timeout
- #381 display requests per second graph on the HTML report
- #372 de-deduplicate documentation, favoring The Goose Book
- #373 API change: introduce
GooseRequest
andGooseRequestBuilder
for more flexibility when making requests o removeGooseUser::post_named
,GooseUser::head_named
,GooseUser::delete_named
,GooseUser::goose_get
,GooseUser::goose_put
,GooseUser::goose_head
,GooseUser::goose_put
,GooseUser::goose_patch
,GooseUser::goose_delete
, andGooseUser::goose_send
o adds or modifies helpersGooseUser::get
,GooseUser::get_named
,GooseUser::post
,GooseUser::post_form
,GooseUser::post_json
,GooseUser::head
, andGooseUser::delete
o replacesGooseUser::goose_send
withGooseUser::request
which accepts aGooseRequest
object o fixes [#370] (seeGooseRequestBuilder::expect_status_code
)
- #364 add link from the Developer Documentation to The Git Book
- #368 fix performance regression: optimize fastpath if no delay between tasks
- #361 convert
README.md
(and enhance) intoThe Goose Book
- #356 API change: make
GooseAttack.execute
async,main()
function signature changed to:#[tokio::main] fn main() -> Result<(), GooseError> {
- #355 API change: add the possibility to attach custom session data
GooseUserData
to eachGooseUser
- #355 API change: change
GooseTask
signature to take a mutable reference ofGooseUser
:async fn example_task_function(user: &mut GooseUser) -> GooseTaskResult {
- #358 API change: update
GooseTaskSet::set_wait_time()
to acceptstd::time::Duration
instead ofusize
allowing more granularity - #355 remove
Clone
trait fromGooseUser
andGooseAttack
- #359 use request name when displaying errors to avoid having a large volume of distinct error for the same endpoint when using path parameters
- #360 updated
tungstenite
dependency to0.15
- #351 document GooseConfiguration fields that were only documented as gumpdrop parameters (in order to generate new lines in the help output) so now they're also documented in the code
- #353 fix panic when
--no-task-metrics
is enabled and metrics are printed; add tests to prevent further regressions
- #349, #345 fix broken links within the documentation; general documentation cleanups
- #348 introduce
--startup-time
which can be set together with--users
instead of using--hatch-rate
to configure how quickly to start users - #348 fix
--run-time
to always start counting after all users are fully started - #348 include starting and stopping time in addition to running time in text metrics and html report
- #338 add test to confirm a
base_url
can include a path and be joined with a relative path - #339 fix documentation typo
- #340 introduce
pretty
log format for--error-format
,--debug-format
,--request-format
, and--task-format
- #341 clippy cleanups: don't borrow references that are immediately dereferenced by the compiler: https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
- #342 consistently report users simulated, target host(s), start and end times, and total duration of test both in text metrics and html report
- #343 updated httpmock dev dependency to
0.6
- #334 API change: introduce
GooseRawMetric
which contains themethod
,url
,headers
andbody
of the client request made, and is now contained inraw
field of theGooseRequestMetric
- #328 enable
gzip
support and set Accept-Encoding header by default in the client; disable with--no-gzip
orGooseDefault::NoGzip
- #330 document how to add custom cookies (https://docs.rs/goose/*/goose/goose/struct.GooseUser.html#custom-cookies)
- #331 update
rustc_version
dependency to0.4
- #334 include client request headers in
GooseRequestMetric
so they show up in the request log and the debug log - #334 introduce
--request-body
(andGooseDefault::RequestBody
) which when enabled shows up in thebody
field of theGooseRawMetric
- #334 add
GooseRawMetric
to the request log, debug log and error log
- rename
rustls
feature torustls-tls
sotests/controller.rs
can build with therustls
library; updatetungstenite
to0.14
andtokio-tungstenite
=0.15
to allow building withrustls
- documentation cleanup; properly rename
GooseDefault::RequestFormat
and fix links - always configure
GooseConfiguration.manager
andGooseConfiguration.worker
; confirm Manager is enabled when setting--expect-workers
- moved
GooseConfiguration
,GooseDefault
, andGooseDefaultType
into newsrc/config.rs
file; standardized configuration precedence through internalGooseConfigure
trait definingget_value()
for all supported types; general improvements to configuration documentation
- API change: remove internal-only functions and structures from documentation, exposing only what's useful to consumers of the Goose library
o
goose::initialize_logger()
,Socket
reduced topub(crate)
scope ogoose::controller::GooseControllerProtocol
,GooseControllerRequestMessage
,GooseControllerResponseMessage
,GooseControllerRequest
,GooseControllerResponse
,GooseControllerState
,::controller_main()
reduced topub(crate)
scope ogoose::manager::manager_main()
reduced topub(crate)
scope ogoose::metrics::GooseRequestMetric::new()
,::set_final_url()
,::set_response_time()
, and::set_status_code()
,::per_second_calculations()
,format_number()
,merge_times()
,update_min_time()
,update_max_time()
,calculate_response_time_percentile()
, andprepare_status_codes()
reduced topub(crate)
scope ogoose::metrics::GooseRequestMetricAggregate::new()
,::set_response_time()
, and::set_status_code()
reduced topub(crate)
scope ogoose::metrics::GooseTaskMetric::new()
and::set_time()
reduced topub(crate)
scope ogoose::metrics::GooseMetrics::initialize_task_metrics()
and::print_running()
,::fmt_requests()
,::fmt_tasks()
,::fmt_task_times()
,::fmt_response_times()
,::fmt_percentiles()
,::fmt_status_codes()
and::fmt_errors()
reduced topub(crate)
scope o fromgoose::metrics::GooseMetrics
reducedfinal_metrics
,display_status_codes
anddisplay_metrics
fields topub(crate)
scope ogoose::metrics::GooseErrorMetric::new()
reduced topub(crate)
scope ogoose::logger::logger_main()
reduced topub(crate)
scope ogoose::user::user_main()
reduced topub(crate)
scope ogoose::worker::worker_main()
reduced topub(crate)
scope - API change: move all metrics-related stuctures and methods into
metrics.rs
, rename for consistency, and improve documentation ogoose::GooseRawRequest
changed togoose::metrics::GooseRequestMetric
ogoose::GooseRequest
changed togoose::metrics::GooseRequestMetricAggregate
ogoose::GooseRawTask
changed togoose::metrics::GooseTaskMetric
ogoose::GooseRawTask
changed togoose::metrics::GooseTaskMetricAggregate
ogoose::update_duration()
changed togoose::metrics::update_duration()
and reduced topub(crate)
scope ogoose::sync_metrics()
changed togoose::metrics::sync_metrics()
and reduced topub(crate)
scope ogoose::reset_metrics()
changed togoose::metrics::reset_metrics()
and reduced topub(crate)
scope ogoose::receive_metrics()
changed togoose::metrics::receive_metrics()
and reduced topub(crate)
scope ogoose::record_error()
changed togoose::metrics::record_error()
and reduced topub(crate)
scope - expose utility functions used by Goose for use by load tests
o
goose::util::parse_timespan()
,::gcd()
,::median()
,::truncate_string()
,::timer_expired()
,::ms_timer_expired()
,::get_hatch_rate()
, and::is_valid_host()
were elevated topub
scope - introduce (disabled by default) Coordinated Omission Mitigation, configured through
--co-mitigation
with the following options: "disabled" (default0), "average", "minimum", "maximum"; (or withGooseDefault::CoordinatedOmissionMitigation
) - (EXPERIMENTAL) Coordinated Omission Mitigation tracks the cadence that a GooseUser loops through all GooseTasks, (also accounting for time spent sleeping due to
.set_wait_time()
); it detects stalls (network or upstream server) that block and prevent other requests from running, and backfills the metrics to mitigate this loss of data (based on the general implementation found in HdrHistogram - When displaying metrics (via the cli and the html report) show both "raw" (actual) metrics and "coordinated omission mitigation" (back-filled with statistically generated) metrics, and the standard deviation between the average times for each
- introduce
GooseLog
enum for sendingGooseDebug
,GooseRequestMetric
andGooseTaskMetric
objects to the Logger thread for logging to file - introduce
--tasks-file
run-time option for loggingGooseTaskMetric
s to file - rename
GooseTaskMetric
toGooseTaskMetricAggregate
, and introduceGooseTaskMetric
which is a subset ofGooseRequestMetric
only used for logging - introduce
--error-file
run-time option for loggingGooseErrorMetric
s to file - introduce
GooseLogFormat
enum for formatting all logs; add--task-format
and--error-format
using new enum, update--requests-format
and--debug-format
. - renamed
--log-file
to--goose-log
,--requests-file
to--request-log
,--requests-format
to--request-format
,--tasks-file
to--task-log
,--tasks-format
to--task-format
,--error-file
to--error-log
, and--debug-file
to--debug-log
- introduce telnet Controller allowing real-time control of load test, optionally disable with
--no-telnet
, supports the following commands: ohelp
(and?
) display help oexit
(andquit
) exit the telnet Controller oshutdown
shuts down the running load test (and exits the controller) ohost
(andhosts
) HOST sets host to load test against, ie http://localhost/ ousers
(anduser
) INT sets number of simulated users ohatchrate
(andhatch_rate
) FLOAT sets per-second rate users hatch oruntime
(andrun_time
) TIME sets how long the load test should run oconfig
displays the current load test configuration oconfig-json
displays the current load test configuration in json format ometrics
(andstats
) displays metrics for the current load test ometrics-json
(andstats-json
) displays metrics for the current load test in json format - telnet Controller bind host defaults to
0.0.0.0
, can be configured with--telnet-host
- telnet Controller bind port defaults to
5116
, can be configured with--telnet-port
- telnet Controller defaults can be changed:
o default to not enabling telnet Controller:
GooseDefault::NoTelnet
(bool) o default host to bind telnet Controller to:GooseDefault::TelnetHost
(&str) o default port to bind telnet Controller to:GooseDefault::TelnetPort
(usize) - introduce WebSocket Controller allowing real-time control of load test, optionally disable with
--no-websocket
, supports the same commands as the telnet Controller, except: oconfig
andconfig-json
both return the load test configuration in json format ometrics
andmetrics-json
both return metrics for the current load test in json format - WebSocket Controller bind host defaults to
0.0.0.0
, can be configured with--websocket-host
- WebSocket Controller bind port defaults to
5117
, can be configured with--websocket-port
- WebSocket Controller defaults can be changed:
o default to not enabling WebSocket Controller:
GooseDefault::NoWebSocket
(bool) o default host to bind WebSocket Controller to:GooseDefault::WebSocketHost
(&str) o default port to bind WebSocket Controller to:GooseDefault::WebSocketPort
(usize) - make it possible to start and stop a load test without completely restarting Goose
- introduce
--no-autostart
to disable automatically starting the load test, leaves Goose in an idle state waiting for Controller commands (optionally change the default withGooseDefault::NoAutoStart
) o renamedstop
Controller command toshutdown
o added newstart
Controller command, telling idle Goose load test to start o added newstop
Controller command, telling running Goose load test to stop and return to idle state - code cleanup and logic consollidation to support Controller fixed a bug where metrics wouldn't display and the debug file, request file, and html report weren't written when load test was stopped while still launching users
- regularly sync metrics, using a timeout to avoid hanging the main loop
- properly reset metrics when load test is stopped and restarted
- properly flush debug file, request file, and html report when stopping load test with Controller
- properly (re)create debug file, request file, and html report when starting load test with Controller
- if metrics are enabled, display when controller stops load test
- de-duplicate code with traits, gaining compile-time validation that both Controllers are properly handling all defined commands
- add
async_trait
dependency as stable Rust doesn't otherwise support async traits - allow starting Goose without specifying a host if
--no-autostart
is enabled, requiring instead that the host be configured via a Controller before starting a load test - add test for telnet and WebSocket Controllers
- update
rand
dependency to0.8
branch, updategen_range
method call - update dependencies:
itertools
to0.10
,simplelog
to0.10
,url
to2
- update
nng
dependency for optionalgaggle
feature - simplify
examples/umami
regex when parsing form - allow configuration of algorithm for allocating
GooseTask
s the same asGooseTaskSet
s;GooseTaskSetScheduler
becomes more genericallyGooseScheduler
- specify (and detect) minimum
rustc
requirement of1.49.0
, due toflume
dependency which in turn depends onspinning_top
which useshint::spin_loop
which stabilized inrustc
version `1.49.0 - standardize links in documentation; general documentation cleanups
- capture errors and count frequency for each, including summary in metrics report; optionally disable with
--no-error-summary
- clippy cleanups (prepare for Rust 2021 https://blog.rust-lang.org/inside-rust/2021/03/04/planning-rust-2021.html):
o API change: all
GooseMethod
s renamed to enforce Rust naming conventions in regards to case, for exampleGooseMethod::GET
becomesGooseMethod::Get
o usevec![]
macro to avoid unnecessarily pushing data into mutable vectors o callformat!
macro directly for improved readability o remove unnecessarypanic!
- avoid unnecessary work on Manager when starting a Gaggle
- respect
--hatch-rate
when starting a Gaggle - update httpmock for running tests
- remove unnecessary
Result()
types where no error was possible
- introduce
--report-file
(andGooseDefault::ReportFile
) to optionally generate an HTML report when the load test completes - upgrade to
tokio
1.x, and switch toflume
for all multi-producer, multi-consumer channels - make
examples/umami
more generic for easier load testing of any Drupal 9 version of the demo install profile
- account for time spent doing things other than sleeping, maintaining more consistency when displaying statistics and shutting down
- start each debug log file with a line feed in case the page is too big for the buffer; increase the debug logger buffer size from 8K to 8M
- introduce
--no-debug-body
flag to optionally prevent debug log from including the response body - rename the metrics file to requests file to better reflect what it is
o
--metrics-file
becomes--requests-file
o--metrics-format
becomes--requests-format
oGooseDebug::MetricsFile
becomesGooseDebug::RequestsFile
oGooseDebug::MetricsFormat
becomesGooseDebug::RequestsFormat
- reset drift timer any time the attack_phase changes
- document all public high level files and functions
- replace
--only-summary
with--running-metrics <usize>
, running metrics are disabled by default - allow configuration of the algorithm used when allocating
GooseTaskSet
s to startingGooseUser
s: oGooseTaskSetScheduler::RoundRobin
allocates 1 of each availableGooseTaskSet
at a time (new default) oGooseTaskSetScheduler::Serial
allocates all of each availableGooseTaskSet
in the order they are defined oGooseTaskSetScheduler::Random
allocates 1 randomGooseTaskSet
from all available - when enabled, display running metrics for the entire duration of test, including ramp-up and shutdown
- support floating point hatch rate (ie, hatch 1 user every 2 seconds with
-r .5
)
- add new
examples/umami
for load testing Drupal 9 demo install profile - replace TermLogger with SimpleLogger for increased logging flexibility
- add initial OCI Dockerfile for container-based workflows
- use checked subtraction when calculating drift duration to prevent panic
- update
nng-rs
dependency to fix bug when testing that the manager is ready
- fixup sticky redirect tests to properly test functionality
- add
test/sequence.rs
to confirm sequencing tests works correctly, even in Gaggle mode - deduplicate test logic by moving shared functionality into
tests/common.rs
; consistently test functionality both in standalone and Gaggle mode - properly create debug log when enabled in Gaggle mode
- remove unnecessary
GooseAttack.number_of_cpus
instead callingnum_cpus::get()
directly - remove
tests/gaggle.rs
, instead mixing gaggle tests with per-feature integration tests - ensure
test_start
andtest_stop
run one and only one time even in Gaggle mode
- rework
hatch_rate
to be stored in anOption<usize>
as it can beNone
on a Worker - remove redundant
GooseAttack.users
instead using theOption<usize>
inconfiguration
- improve bounds handling of defaults, generate errors for invalid values
- properly handle early shutdown of Gaggle distributed load test from Worker process
- Manager starts timing Gaggle distributed load test only after all Workers start
- default to resetting statistics, disable with
--no-reset-stats
, display spawning statistics before resetting - only run gaggle integration tests when feature is enabled
- prevent time-drift when launching users and throttling requests
- add per-task statistics in addition to per-request statistics, disable with
--no-task-stats
- rename
stats
andstatistics
tometrics
for consistency and clarity o--no-stats
became--no-metrics
o--no-reset-stats
became--no-reset-metrics
o--no-task-stats
became--no-task-metrics
o--stats-log-file
became--metrics-log-file
o--stats-log-format
became--metrics-log-format
- shorten some configuration options to fit standard console width, preparation for switch to gumdrop
o
--debug-log-file
became--debug-file
o--debug-log-format
became--debug-format
o--metrics-log-file
became--metrics-file
o--metrics-log-format
became--metrics-format
- reworded errors for consistency, made error.detail required
- replace
structopt
withgumdrop
o restructured help page to logically group related options o rewrote/simplified configuration descriptions to fit standard console width - update prelude documentation
- increase precision of metrics for smaller values
- consistently build configuration from arguments
- replace
GooseAttack::set_host()
with more genericGooseAttack::set_default()
, exposes the following defaults: o default host:GooseDefault::Host
(&str) o default users to start:GooseDefault::Users
(usize) o default users to start per second:GooseDefault::HatchRate
(usize) o default number of seconds for test to run:GooseDefault::RunTime
(usize) o default log level:GooseDefault::LogLevel
(usize) o default log file name:GooseDefault::LogFile
(&str) o default verbosity:GooseDefault::Verbose
(usize) o default to only printing final summary metrics:GooseDefault::OnlySummary
(bool) o default to not resetting metrics after all users start:GooseDefault::NoResetMetrics
(bool) o default to not tracking metrics:GooseDefault::NoMetrics
(bool) o default to not tracking task metrics:GooseDefault::NoTaskMetrics
(bool) o default metrics log file name:GooseDefault::MetricsFile
(&str) o default metrics log file format:GooseDefault::MetricsFormat
(&str) o default debug log file name:GooseDefault::DebugFile
(&str) o default debug log file format:GooseDefault::DebugFormat
(&str) o default to tracking status codes:GooseDefault::StatusCodes
(bool) o default maximum requests per second:GooseDefault::ThrottleRequests
(usize) o default to following redirect of base_url:GooseDefault::StickyFollow
(bool) o default to enabling Manager mode:GooseDefault::Manager
(bool) o default number of Workers to expect:GooseDefault::ExpectWorkers
(usize) o default to ignoring load test checksum:GooseDefault::NoHashCheck
(bool) o default host to bind Manager to:GooseDefault::ManagerBindHost
(&str) o default port to bind Manager to:GooseDefault::ManagerBindPort
(usize) o default to enabling Worker mode:GooseDefault::Worker
(bool) o default host for Worker to connect to:GooseDefault::ManagerHost
(&str) o default port for Worker to connect to:GooseDefault::ManagerPort
(usize)
- return
GooseStats
fromGooseAttack
.execute()
- rework as methods of
GooseStats
:.print()
,.print_running()
,fmt_requests()
,fmt_response_times()
,fmt_percentiles()
, andfmt_status_codes()
- display
GooseStats
with fmt::Display (ieprint!("{}", goose_stats);
) - make it possible to pass a closure to GooseTask::new
- fix display of
GooseError
andGooseTaskError
- fix code documentation, requests are async and require await
- properly support setting host when registering task set
- rename
response
wrapper togoose
, so we end up withgoose.request
andgoose.response
- add
--throttle-requests
to optionally limit the maximum requests per second (api change) - introduce
GooseError
andGooseTaskError
- change task function signature, tasks must return a
GooseTaskResult
- change
GooseAttack
method signatures where an error is possible - where possible, pass error up the stack instead of calling
exit(1)
- introduce
GooseAttack.display()
which consumes the load test state and displays statistics panic!()
on unexpected errors instead ofexit(1)
client.log_debug()
will write debug logs to file when specified with--debug-log-file=
- add
-debug-log-format=
to switch betweenjson
(default) andraw
formats - cleanup code with clippy, automate clippy with PRs
- add optional compile-time
rustls
feature
- sort stats by method:name to ease comparisons
- optionally log all requests to file specified with
--stats-log-file=
- add
--stats-log-format=
to switch betweenjson
(default),csv
andraw
formats
- properly subtract previous statistic when handling
set_failure()
andset_success()
- detect and track redirects in
GooseRawRequest
--sticky-follow
makes redirect of GooseClient base_url sticky, affecting subsequent requests- changed
GooseClient
toGooseUser
- store actual URL requested in GooseRawRequest
- add
set_client_builder
, allow load test to build Reqwest clients with custom options - properly fix documentation links
- fix gaggles to not panic, add test
- fix test_start and test_stop to not panic, add tests
- optimize NNG usage, write directly to Message instead of first to buffer
- fix documentation links
- move client out of GooseClient into global GooseClientState
- introduce
test_start_task
andtest_stop_task
allowing global setup and teardown - don't panic if a load test doesn't define any normal tasks
- pass immutable GooseClient to tasks
- integrate httpmock into testing load test
- don't shuffle order of weighted task sets when launching clients
- remove GooseClientMode as it serves no useful purpose
- push statistics from client threads to parent in real-time
- simplify
set_failure
andset_success
to pass in request
- no longer compile Reqwest blocking client
- remove need to declare
use std::boxed::Box
in load tests - remove unnecessary mutexes
- introduce
use goose::prelude::*
- initial async support
- nng does not support udp as a transport protocol, and tcp overhead isn't problematic; remove to-do to add udp, hard-code tcp
- add worker id for tracing gaggle worker threads
- cleanup gaggle logic and comments
- replace
unsafe
code blocks withlazy_static
singleton - perform checksum to confirm workers are running same load test,
--no-hash-check
to ignore - code and documentation consistency
- replace
--print-stats
with--no-stats
, default to printing stats - make gaggle an optional compile-time feature
- GooseState is now GooseAttack
- Initial support for gaggles: distributed load testing