Functions | Variables
performance.loadtest_template Namespace Reference

Functions

None insert_worker (Dict[str, Any] worker, List[Dict[str, Any]] workers)
 
Dict[str, Anyloadtest_template (Iterable[str] input_file_names, Mapping[str, Any] metadata, bool inject_client_pool, bool inject_driver_image, bool inject_driver_pool, bool inject_server_pool, bool inject_big_query_table, bool inject_timeout_seconds, bool inject_ttl_seconds)
 
None main ()
 
Type[yaml.SafeDumper] template_dumper (str header_comment)
 
None uniquify_workers (Dict[str, List[Dict[str, Any]]] workermap)
 

Variables

string TEMPLATE_FILE_HEADER_COMMENT
 

Function Documentation

◆ insert_worker()

None performance.loadtest_template.insert_worker ( Dict[str, Any worker,
List[Dict[str, Any]]  workers 
)
Inserts client or server into a list, without inserting duplicates.

Definition at line 52 of file loadtest_template.py.

◆ loadtest_template()

Dict[str, Any] performance.loadtest_template.loadtest_template ( Iterable[str]  input_file_names,
Mapping[str, Any metadata,
bool  inject_client_pool,
bool  inject_driver_image,
bool  inject_driver_pool,
bool  inject_server_pool,
bool  inject_big_query_table,
bool  inject_timeout_seconds,
bool  inject_ttl_seconds 
)
Generates the load test template.

Definition at line 74 of file loadtest_template.py.

◆ main()

None performance.loadtest_template.main ( )

Definition at line 193 of file loadtest_template.py.

◆ template_dumper()

Type[yaml.SafeDumper] performance.loadtest_template.template_dumper ( str  header_comment)
Returns a custom dumper to dump templates in the expected format.

Definition at line 170 of file loadtest_template.py.

◆ uniquify_workers()

None performance.loadtest_template.uniquify_workers ( Dict[str, List[Dict[str, Any]]]  workermap)
Name workers if there is more than one for the same map key.

Definition at line 65 of file loadtest_template.py.

Variable Documentation

◆ TEMPLATE_FILE_HEADER_COMMENT

string performance.loadtest_template.TEMPLATE_FILE_HEADER_COMMENT
Initial value:
1 = """
2 # Template generated from load test configurations by loadtest_template.py.
3 #
4 # Configuration templates contain client and server configurations for multiple
5 # languages, and may contain template substitution keys. These templates are
6 # used to generate load test configurations by selecting clients and servers for
7 # the required languages. The source files for template generation may be load
8 # test configurations or load test configuration templates. Load test
9 # configuration generation is performed by loadtest_config.py. See documentation
10 # below:
11 # https://github.com/grpc/grpc/blob/master/tools/run_tests/performance/README.md
12 """

Definition at line 38 of file loadtest_template.py.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:41