Git Product home page Git Product logo

dis-perf's Introduction

Welcome to DIS Perf Tools

Getting Started

Requirements

To get started using dis perf, you will need those things:

  1. JRE 1.8 +
  2. Can connect to dis endpoint
  3. Maven 3+

Package DIS Perf

use maven command to package, and you will get dis-perf-X.X.X.zip in directory target

mvn clean package

Running DIS Perf with IDE

  1. Copy src\main\resources\dis.properties.templeate to src\main\resources\dis.properties

  2. Config dis.properties

Name Description Default
region Region in which the DIS is located. Currently, only the cnnorth-1 region is available for selection. cn-north-1
ak User's plaintext AK. The My Credential page provides you the option to download your AK/SK file. -
sk User's plaintext SK. The My Credential page provides you the option to download your AK/SK file. -
projectId Project ID specific to your region. The My Credential page displays all ProjectIDs. -
endpoint DIS gateway address https://dis.cn-north-1.myhuaweicloud.com
stream_name You stream name which created in DIS
  1. Start Producer, just Run com.bigdata.dis.sdk.demo.producer.AppProducer

  2. Start Consumer, just Run com.bigdata.dis.sdk.demo.consumer.AppConsumer

Running DIS Perf with package

  1. You can download dis-perf-X.X.X.zip from target/
  2. Unzip dis-perf-1.0.0.zip on Linux or Windows
unzip dis-perf-1.0.0.zip

or use winrar on Windows
  1. Config dis.properties

    See Running DIS Perf with IDE -> Config dis.properties

  2. Start Producer

dos2unix bin/bash/*.sh

bash bin/bash/start_producer.sh

or enter "bin" directory,and double click start_producer.bat on Windows
  1. Start Consumer
dos2unix bin/bash/*.sh

bash bin/bash/start_consumer.sh

or enter "bin" directory,and double click start_consumer.bat on Windows

Stopping DIS perf

Use Ctrl+C to Stop java program

Logging Analysis

When you running producer, log will output per second. for example

TPS [44] / [43.14](9404/218), 	Throughput [440] / [431.38](94040/218), 	Latency [45] / [46.41](436448/9404), 	TotalRequestTimes [9406](success 9404 / failed 0), TotalSendRecords [94060](success 94040 / failed 0).

TPS :

  • 44 indicates how many requests are sent in the current second
  • 43.14 indicates the total average of TPS after running
  • 9404 indicates the total requests after running
  • 218 indicates the total seconds after running

Throughput :

  • 440 indicates how many records are sent in the current second
  • 431.38 indicates the total average of Throughput after running
  • 94040 indicates the total send records after running
  • 218 indicates the total seconds after running

Latency :

  • 45 indicates the average of latency in the current second
  • 46.41 indicates the total average of Latency after running
  • 436448 indicates the total latency after running
  • 9404 indicates the total requests after running

dis-perf's People

Contributors

ihaolau avatar jzc928 avatar

Stargazers

fangzhirui avatar  avatar

Watchers

James Cloos avatar  avatar dingjing avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.