Merge remote-tracking branch 'upstream/master'

pull/6308/head
thinkerou 9 years ago
commit c59eef024f
  1. 1
      src/python/grpcio/README.rst
  2. 5
      src/python/grpcio/tests/stress/client.py
  3. 8
      src/ruby/ext/grpc/extconf.rb
  4. 3
      src/ruby/ext/grpc/rb_byte_buffer.c
  5. 3
      src/ruby/ext/grpc/rb_call.c
  6. 6
      src/ruby/ext/grpc/rb_call_credentials.c
  7. 3
      src/ruby/ext/grpc/rb_channel.c
  8. 3
      src/ruby/ext/grpc/rb_channel_args.c
  9. 5
      src/ruby/ext/grpc/rb_channel_credentials.c
  10. 2
      src/ruby/ext/grpc/rb_completion_queue.c
  11. 2
      src/ruby/ext/grpc/rb_event_thread.c
  12. 2
      src/ruby/ext/grpc/rb_grpc.c
  13. 3
      src/ruby/ext/grpc/rb_server.c
  14. 3
      src/ruby/ext/grpc/rb_server_credentials.c
  15. 45
      templates/tools/dockerfile/stress_test/grpc_interop_stress_python/Dockerfile.template
  16. 103
      tools/dockerfile/stress_test/grpc_interop_stress_python/Dockerfile
  17. 46
      tools/dockerfile/stress_test/grpc_interop_stress_python/build_interop_stress.sh
  18. 2
      tools/run_tests/stress_test/configs/csharp.json
  19. 98
      tools/run_tests/stress_test/configs/python.json
  20. 13
      tools/run_tests/stress_test/run_on_gke.py

@ -48,6 +48,7 @@ package named :code:`python-dev`).
$ export REPO_ROOT=grpc # REPO_ROOT can be any directory of your choice $ export REPO_ROOT=grpc # REPO_ROOT can be any directory of your choice
$ git clone https://github.com/grpc/grpc.git $REPO_ROOT $ git clone https://github.com/grpc/grpc.git $REPO_ROOT
$ cd $REPO_ROOT $ cd $REPO_ROOT
$ git submodule update --init
# For the next two commands do `sudo pip install` if you get permission-denied errors # For the next two commands do `sudo pip install` if you get permission-denied errors
$ pip install -rrequirements.txt $ pip install -rrequirements.txt

@ -117,7 +117,10 @@ def run_test(args):
for runner in runners: for runner in runners:
runner.start() runner.start()
try: try:
raise exception_queue.get(block=True, timeout=args.test_duration_secs) timeout_secs = args.test_duration_secs
if timeout_secs < 0:
timeout_secs = None
raise exception_queue.get(block=True, timeout=timeout_secs)
except Queue.Empty: except Queue.Empty:
# No exceptions thrown, success # No exceptions thrown, success
pass pass

@ -78,9 +78,11 @@ output_dir = File.expand_path(RbConfig::CONFIG['topdir'])
grpc_lib_dir = File.join(output_dir, 'libs', grpc_config) grpc_lib_dir = File.join(output_dir, 'libs', grpc_config)
ENV['BUILDDIR'] = output_dir ENV['BUILDDIR'] = output_dir
puts 'Building internal gRPC into ' + grpc_lib_dir unless windows
system("make -j -C #{grpc_root} #{grpc_lib_dir}/libgrpc.a CONFIG=#{grpc_config}") puts 'Building internal gRPC into ' + grpc_lib_dir
exit 1 unless $? == 0 system("make -j -C #{grpc_root} #{grpc_lib_dir}/libgrpc.a CONFIG=#{grpc_config}")
exit 1 unless $? == 0
end
$CFLAGS << ' -I' + File.join(grpc_root, 'include') $CFLAGS << ' -I' + File.join(grpc_root, 'include')
$LDFLAGS << ' ' + File.join(grpc_lib_dir, 'libgrpc.a') unless windows $LDFLAGS << ' ' + File.join(grpc_lib_dir, 'libgrpc.a') unless windows

@ -32,11 +32,10 @@
*/ */
#include <ruby/ruby.h> #include <ruby/ruby.h>
#include "rb_grpc_imports.generated.h" #include "rb_grpc_imports.generated.h"
#include "rb_byte_buffer.h" #include "rb_byte_buffer.h"
#include <ruby/ruby.h>
#include <grpc/grpc.h> #include <grpc/grpc.h>
#include <grpc/byte_buffer_reader.h> #include <grpc/byte_buffer_reader.h>
#include <grpc/support/slice.h> #include <grpc/support/slice.h>

@ -32,11 +32,10 @@
*/ */
#include <ruby/ruby.h> #include <ruby/ruby.h>
#include "rb_grpc_imports.generated.h" #include "rb_grpc_imports.generated.h"
#include "rb_call.h" #include "rb_call.h"
#include <ruby/ruby.h>
#include <grpc/grpc.h> #include <grpc/grpc.h>
#include <grpc/support/alloc.h> #include <grpc/support/alloc.h>

@ -32,10 +32,10 @@
*/ */
#include <ruby/ruby.h> #include <ruby/ruby.h>
#include "rb_grpc_imports.generated.h" #include "rb_grpc_imports.generated.h"
#include "rb_call_credentials.h" #include "rb_call_credentials.h"
#include <ruby/ruby.h>
#include <ruby/thread.h> #include <ruby/thread.h>
#include <grpc/grpc.h> #include <grpc/grpc.h>
@ -86,11 +86,11 @@ static VALUE grpc_rb_call_credentials_callback_rescue(VALUE args,
rb_funcall(exception_object, rb_intern("backtrace"), 0), rb_funcall(exception_object, rb_intern("backtrace"), 0),
rb_intern("join"), rb_intern("join"),
1, rb_str_new2("\n\tfrom ")); 1, rb_str_new2("\n\tfrom "));
VALUE exception_info = rb_funcall(exception_object, rb_intern("to_s"), 0); VALUE rb_exception_info = rb_funcall(exception_object, rb_intern("to_s"), 0);
const char *exception_classname = rb_obj_classname(exception_object); const char *exception_classname = rb_obj_classname(exception_object);
(void)args; (void)args;
gpr_log(GPR_INFO, "Call credentials callback failed: %s: %s\n%s", gpr_log(GPR_INFO, "Call credentials callback failed: %s: %s\n%s",
exception_classname, StringValueCStr(exception_info), exception_classname, StringValueCStr(rb_exception_info),
StringValueCStr(backtrace)); StringValueCStr(backtrace));
rb_hash_aset(result, rb_str_new2("metadata"), Qnil); rb_hash_aset(result, rb_str_new2("metadata"), Qnil);
/* Currently only gives the exception class name. It should be possible get /* Currently only gives the exception class name. It should be possible get

@ -32,11 +32,10 @@
*/ */
#include <ruby/ruby.h> #include <ruby/ruby.h>
#include "rb_grpc_imports.generated.h" #include "rb_grpc_imports.generated.h"
#include "rb_channel.h" #include "rb_channel.h"
#include <ruby/ruby.h>
#include <grpc/grpc.h> #include <grpc/grpc.h>
#include <grpc/grpc_security.h> #include <grpc/grpc_security.h>
#include <grpc/support/alloc.h> #include <grpc/support/alloc.h>

@ -32,11 +32,10 @@
*/ */
#include <ruby/ruby.h> #include <ruby/ruby.h>
#include "rb_grpc_imports.generated.h" #include "rb_grpc_imports.generated.h"
#include "rb_channel_args.h" #include "rb_channel_args.h"
#include <ruby/ruby.h>
#include <grpc/grpc.h> #include <grpc/grpc.h>
#include "rb_grpc.h" #include "rb_grpc.h"

@ -31,14 +31,13 @@
* *
*/ */
#include <ruby/ruby.h>
#include <string.h> #include <string.h>
#include <ruby/ruby.h>
#include "rb_grpc_imports.generated.h" #include "rb_grpc_imports.generated.h"
#include "rb_channel_credentials.h" #include "rb_channel_credentials.h"
#include <ruby/ruby.h>
#include <grpc/grpc.h> #include <grpc/grpc.h>
#include <grpc/grpc_security.h> #include <grpc/grpc_security.h>
#include <grpc/support/alloc.h> #include <grpc/support/alloc.h>

@ -32,10 +32,10 @@
*/ */
#include <ruby/ruby.h> #include <ruby/ruby.h>
#include "rb_grpc_imports.generated.h" #include "rb_grpc_imports.generated.h"
#include "rb_completion_queue.h" #include "rb_completion_queue.h"
#include <ruby/ruby.h>
#include <ruby/thread.h> #include <ruby/thread.h>
#include <grpc/grpc.h> #include <grpc/grpc.h>

@ -32,12 +32,12 @@
*/ */
#include <ruby/ruby.h> #include <ruby/ruby.h>
#include "rb_grpc_imports.generated.h" #include "rb_grpc_imports.generated.h"
#include "rb_event_thread.h" #include "rb_event_thread.h"
#include <stdbool.h> #include <stdbool.h>
#include <ruby/ruby.h>
#include <ruby/thread.h> #include <ruby/thread.h>
#include <grpc/support/alloc.h> #include <grpc/support/alloc.h>
#include <grpc/support/sync.h> #include <grpc/support/sync.h>

@ -32,11 +32,11 @@
*/ */
#include <ruby/ruby.h> #include <ruby/ruby.h>
#include "rb_grpc_imports.generated.h" #include "rb_grpc_imports.generated.h"
#include "rb_grpc.h" #include "rb_grpc.h"
#include <math.h> #include <math.h>
#include <ruby/ruby.h>
#include <ruby/vm.h> #include <ruby/vm.h>
#include <sys/time.h> #include <sys/time.h>

@ -32,11 +32,10 @@
*/ */
#include <ruby/ruby.h> #include <ruby/ruby.h>
#include "rb_grpc_imports.generated.h" #include "rb_grpc_imports.generated.h"
#include "rb_server.h" #include "rb_server.h"
#include <ruby/ruby.h>
#include <grpc/grpc.h> #include <grpc/grpc.h>
#include <grpc/grpc_security.h> #include <grpc/grpc_security.h>
#include "rb_call.h" #include "rb_call.h"

@ -32,11 +32,10 @@
*/ */
#include <ruby/ruby.h> #include <ruby/ruby.h>
#include "rb_grpc_imports.generated.h" #include "rb_grpc_imports.generated.h"
#include "rb_server_credentials.h" #include "rb_server_credentials.h"
#include <ruby/ruby.h>
#include <grpc/grpc.h> #include <grpc/grpc.h>
#include <grpc/grpc_security.h> #include <grpc/grpc_security.h>

@ -0,0 +1,45 @@
%YAML 1.2
--- |
# Copyright 2016, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following disclaimer
# in the documentation and/or other materials provided with the
# distribution.
# * Neither the name of Google Inc. nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
FROM debian:jessie
<%include file="../../apt_get_basic.include"/>
<%include file="../../ccache_setup.include"/>
<%include file="../../cxx_deps.include"/>
<%include file="../../gcp_api_libraries.include"/>
<%include file="../../python_deps.include"/>
RUN pip install coverage
RUN pip install oauth2client
# Define the default command.
CMD ["bash"]

@ -0,0 +1,103 @@
# Copyright 2016, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following disclaimer
# in the documentation and/or other materials provided with the
# distribution.
# * Neither the name of Google Inc. nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
FROM debian:jessie
# Install Git and basic packages.
RUN apt-get update && apt-get install -y \
autoconf \
autotools-dev \
build-essential \
bzip2 \
ccache \
curl \
gcc \
gcc-multilib \
git \
golang \
gyp \
lcov \
libc6 \
libc6-dbg \
libc6-dev \
libgtest-dev \
libtool \
make \
perl \
strace \
python-dev \
python-setuptools \
python-yaml \
telnet \
unzip \
wget \
zip && apt-get clean
#================
# Build profiling
RUN apt-get update && apt-get install -y time && apt-get clean
# Prepare ccache
RUN ln -s /usr/bin/ccache /usr/local/bin/gcc
RUN ln -s /usr/bin/ccache /usr/local/bin/g++
RUN ln -s /usr/bin/ccache /usr/local/bin/cc
RUN ln -s /usr/bin/ccache /usr/local/bin/c++
RUN ln -s /usr/bin/ccache /usr/local/bin/clang
RUN ln -s /usr/bin/ccache /usr/local/bin/clang++
#=================
# C++ dependencies
RUN apt-get update && apt-get -y install libgflags-dev libgtest-dev libc++-dev clang && apt-get clean
# Google Cloud platform API libraries
RUN apt-get update && apt-get install -y python-pip && apt-get clean
RUN pip install --upgrade google-api-python-client
#====================
# Python dependencies
# Install dependencies
RUN apt-get update && apt-get install -y \
python-all-dev \
python3-all-dev \
python-pip
# Install Python packages from PyPI
RUN pip install pip --upgrade
RUN pip install virtualenv
RUN pip install futures==2.2.0 enum34==1.0.4 protobuf==3.0.0a2 tox
RUN pip install coverage
RUN pip install oauth2client
# Define the default command.
CMD ["bash"]

@ -0,0 +1,46 @@
#!/bin/bash
# Copyright 2016, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following disclaimer
# in the documentation and/or other materials provided with the
# distribution.
# * Neither the name of Google Inc. nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# Builds Python interop server and client in a base image.
set -e
mkdir -p /var/local/git
git clone --recursive /var/local/jenkins/grpc /var/local/git/grpc
# copy service account keys if available
cp -r /var/local/jenkins/service_account $HOME || true
cd /var/local/git/grpc
tools/run_tests/run_tests.py -l python -c opt --build_only
# Build c++ interop client
make metrics_client -j

@ -80,7 +80,7 @@
"buildDockerImages": true, "buildDockerImages": true,
"pollIntervalSecs": 60, "pollIntervalSecs": 60,
"testDurationSecs": 7200, "testDurationSecs": 7200,
"kubernetesProxyPort": 8001, "kubernetesProxyPort": 8009,
"datasetIdNamePrefix": "stress_test_csharp", "datasetIdNamePrefix": "stress_test_csharp",
"summaryTableId": "summary", "summaryTableId": "summary",
"qpsTableId": "qps", "qpsTableId": "qps",

@ -0,0 +1,98 @@
{
"dockerImages": {
"grpc_stress_python" : {
"buildScript": "tools/run_tests/dockerize/build_interop_stress_image.sh",
"dockerFileDir": "grpc_interop_stress_python"
}
},
"clientTemplates": {
"baseTemplates": {
"default": {
"wrapperScriptPath": "/var/local/git/grpc/tools/gcp/stress_test/run_client.py",
"pollIntervalSecs": 60,
"clientArgs": {
"num_channels_per_server":5,
"num_stubs_per_channel":10,
"test_cases": "empty_unary:1,large_unary:1,client_streaming:1,server_streaming:1,empty_stream:1",
"metrics_port": 8081
},
"metricsPort": 8081,
"metricsArgs": {
"metrics_server_address": "localhost:8081",
"total_only": "true"
},
"env": {
"PYTHONPATH": "/var/local/git/grpc/src/python/gens:/var/local/git/grpc/src/python/grpcio",
"LD_LIBRARY_PATH":"/var/local/git/grpc/libs/opt"
}
}
},
"templates": {
"python_client": {
"baseTemplate": "default",
"stressClientCmd": [
"python",
"/var/local/git/grpc/src/python/grpcio/tests/stress/client.py"
],
"metricsClientCmd": ["/var/local/git/grpc/bins/opt/metrics_client"]
}
}
},
"serverTemplates": {
"baseTemplates":{
"default": {
"wrapperScriptPath": "/var/local/git/grpc/tools/gcp/stress_test/run_server.py",
"serverPort": 8080,
"serverArgs": {
"port": 8080
},
"env": {
"PYTHONPATH": "/var/local/git/grpc/src/python/gens:/var/local/git/grpc/src/python/grpcio",
"LD_LIBRARY_PATH":"/var/local/git/grpc/libs/opt"
}
}
},
"templates": {
"python_server": {
"baseTemplate": "default",
"stressServerCmd": [
"python",
"/var/local/git/grpc/src/python/grpcio/tests/interop/server.py"
]
}
}
},
"testMatrix": {
"serverPodSpecs": {
"python-stress-server": {
"serverTemplate": "python_server",
"dockerImage": "grpc_stress_python",
"numInstances": 1
}
},
"clientPodSpecs": {
"python-stress-client": {
"clientTemplate": "python_client",
"dockerImage": "grpc_stress_python",
"numInstances": 5,
"serverPodSpec": "python-stress-server"
}
}
},
"globalSettings": {
"buildDockerImages": true,
"pollIntervalSecs": 60,
"testDurationSecs": 7200,
"kubernetesProxyPort": 8011,
"datasetIdNamePrefix": "stress_test_python",
"summaryTableId": "summary",
"qpsTableId": "qps",
"podWarmupSecs": 60
}
}

@ -69,7 +69,7 @@ class ClientTemplate:
def __init__(self, name, stress_client_cmd, metrics_client_cmd, metrics_port, def __init__(self, name, stress_client_cmd, metrics_client_cmd, metrics_port,
wrapper_script_path, poll_interval_secs, client_args_dict, wrapper_script_path, poll_interval_secs, client_args_dict,
metrics_args_dict, will_run_forever): metrics_args_dict, will_run_forever, env_dict):
self.name = name self.name = name
self.stress_client_cmd = stress_client_cmd self.stress_client_cmd = stress_client_cmd
self.metrics_client_cmd = metrics_client_cmd self.metrics_client_cmd = metrics_client_cmd
@ -79,19 +79,21 @@ class ClientTemplate:
self.client_args_dict = client_args_dict self.client_args_dict = client_args_dict
self.metrics_args_dict = metrics_args_dict self.metrics_args_dict = metrics_args_dict
self.will_run_forever = will_run_forever self.will_run_forever = will_run_forever
self.env_dict = env_dict
class ServerTemplate: class ServerTemplate:
""" Contains all the common settings used by a stress server """ """ Contains all the common settings used by a stress server """
def __init__(self, name, server_cmd, wrapper_script_path, server_port, def __init__(self, name, server_cmd, wrapper_script_path, server_port,
server_args_dict, will_run_forever): server_args_dict, will_run_forever, env_dict):
self.name = name self.name = name
self.server_cmd = server_cmd self.server_cmd = server_cmd
self.wrapper_script_path = wrapper_script_path self.wrapper_script_path = wrapper_script_path
self.server_port = server_port self.server_port = server_port
self.server_args_dict = server_args_dict self.server_args_dict = server_args_dict
self.will_run_forever = will_run_forever self.will_run_forever = will_run_forever
self.env_dict = env_dict
class DockerImage: class DockerImage:
@ -240,6 +242,7 @@ class Gke:
# server_pod_spec.template.wrapper_script_path) are are injected into the # server_pod_spec.template.wrapper_script_path) are are injected into the
# container via environment variables # container via environment variables
server_env = self.gke_env.copy() server_env = self.gke_env.copy()
server_env.update(server_pod_spec.template.env_dict)
server_env.update({ server_env.update({
'STRESS_TEST_IMAGE_TYPE': 'SERVER', 'STRESS_TEST_IMAGE_TYPE': 'SERVER',
'STRESS_TEST_CMD': server_pod_spec.template.server_cmd, 'STRESS_TEST_CMD': server_pod_spec.template.server_cmd,
@ -283,6 +286,7 @@ class Gke:
# client_pod_spec.template.wrapper_script_path) are are injected into the # client_pod_spec.template.wrapper_script_path) are are injected into the
# container via environment variables # container via environment variables
client_env = self.gke_env.copy() client_env = self.gke_env.copy()
client_env.update(client_pod_spec.template.env_dict)
client_env.update({ client_env.update({
'STRESS_TEST_IMAGE_TYPE': 'CLIENT', 'STRESS_TEST_IMAGE_TYPE': 'CLIENT',
'STRESS_TEST_CMD': client_pod_spec.template.stress_client_cmd, 'STRESS_TEST_CMD': client_pod_spec.template.stress_client_cmd,
@ -425,7 +429,8 @@ class Config:
template_name, stress_client_cmd, metrics_client_cmd, template_name, stress_client_cmd, metrics_client_cmd,
temp_dict['metricsPort'], temp_dict['wrapperScriptPath'], temp_dict['metricsPort'], temp_dict['wrapperScriptPath'],
temp_dict['pollIntervalSecs'], temp_dict['clientArgs'].copy(), temp_dict['pollIntervalSecs'], temp_dict['clientArgs'].copy(),
temp_dict['metricsArgs'].copy(), temp_dict.get('willRunForever', 1)) temp_dict['metricsArgs'].copy(), temp_dict.get('willRunForever', 1),
temp_dict.get('env', {}).copy())
return client_templates_dict return client_templates_dict
@ -461,7 +466,7 @@ class Config:
server_templates_dict[template_name] = ServerTemplate( server_templates_dict[template_name] = ServerTemplate(
template_name, stress_server_cmd, temp_dict['wrapperScriptPath'], template_name, stress_server_cmd, temp_dict['wrapperScriptPath'],
temp_dict['serverPort'], temp_dict['serverArgs'].copy(), temp_dict['serverPort'], temp_dict['serverArgs'].copy(),
temp_dict.get('willRunForever', 1)) temp_dict.get('willRunForever', 1), temp_dict.get('env', {}).copy())
return server_templates_dict return server_templates_dict

Loading…
Cancel
Save