MSB performance metrics and testing

This document is intended to define the performance metrics and test methods of MSB which can address the S3P requirements of ONAP platform.

Metrics

Metric

Definition

QPS

The number of requests which can be handled by MSB API gateway per second

Latency    

The average latency of the request handled by MSB API gateway

Tool

wrk:  wrk is a modern HTTP benchmarking tool capable of generating significant load when running on a single multi-core CPU. It combines a multithreaded design with scalable event notification systems such as epoll and kqueue.

MockRESTServer: A mock server is used to simulate the service which is proxied by MSB API gateway. The service provides a REST API, it returns a simple json object when called by service client.



example: ./wrk -t6 -c600 -d30s --timeout 5s http://[ip]:8080/api/msbtest/v1/testtcp/helloworld