Orchestrator
This page contains the API documentation for the gradual.base.orchestrator module.
gradual.base.orchestrator
The orchestrator module provides the main coordination logic for stress testing. It manages the execution of test phases and handles the overall test flow.
Classes
Orchestrator(test_config_file_path: str, request_configs_path: str)
Main orchestrator class that coordinates the execution of stress tests.
The Orchestrator is responsible for: 1. Loading and parsing test configurations 2. Managing the execution of test phases 3. Handling timing between test phases 4. Coordinating the overall test flow
Attributes:
| Name | Type | Description |
|---|---|---|
test_config_file_path |
str
|
Path to the main test configuration file |
request_configs_path |
str
|
Path to the request configurations file |
parser |
Parser
|
Instance of the configuration parser |
Initialize the Orchestrator with configuration file paths.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
test_config_file_path
|
str
|
Path to the main test configuration file |
required |
request_configs_path
|
str
|
Path to the request configurations file |
required |
Source code in src/gradual/base/orchestrator.py
Attributes
test_config_file_path = test_config_file_path
instance-attribute
request_configs_path = request_configs_path
instance-attribute
parser = Parser(self.test_config_file_path, self.request_configs_path)
instance-attribute
Functions
start_stress_test()
Start the stress test execution.
This method: 1. Iterates through each phase in the test configuration 2. Creates and executes a Phase instance for each configuration 3. Waits for the specified time between phases 4. Uses gevent for concurrent execution of phases