Merge pull request #7323 from kpayson64/fix_py_qps

Updated python qps tests to use GA server API
pull/7335/head
kpayson64 8 years ago committed by GitHub
commit a09219c3b6
  1. 2
      src/python/grpcio_tests/tests/qps/qps_worker.py
  2. 2
      src/python/grpcio_tests/tests/qps/worker_server.py

@ -40,7 +40,7 @@ from tests.qps import worker_server
def run_worker_server(port):
server = grpc.server((), futures.ThreadPoolExecutor(max_workers=5))
server = grpc.server(futures.ThreadPoolExecutor(max_workers=5))
servicer = worker_server.WorkerServer()
services_pb2.add_WorkerServiceServicer_to_server(servicer, server)
server.add_insecure_port('[::]:{}'.format(port))

@ -82,7 +82,7 @@ class WorkerServer(services_pb2.WorkerServiceServicer):
server_threads = multiprocessing.cpu_count() * 5
else:
server_threads = config.async_server_threads
server = grpc.server((), futures.ThreadPoolExecutor(
server = grpc.server(futures.ThreadPoolExecutor(
max_workers=server_threads))
if config.server_type == control_pb2.ASYNC_SERVER:
servicer = benchmark_server.BenchmarkServer()

Loading…
Cancel
Save