KB Articles

 

KB Article # 19251

Topic/Category: Insight

Issue: Supplemental Tools Resource for Insight Testing

 

Solution:

 

PPM Calculation

Java framework helps in calculating PPM and Overall pages processed in Insight project for a specified duration. Framework connects to the hbase via public IP and fetches data at specified interval to calculate pages processed at each interval and also calculate PPM for the same.System uses Jfree chart, a free charting library to create graphs for the total pages processed and PPM.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Project File: Insight_Performance_Automation-master

Prerequisites

  1. Install intelliJ/eclipse onto your machine
  2. Open the project cloned in above step in the IDE
  3. Update /etc/hosts file with ip host mapping of the cluster

e.g.

104.211.179.25 demo-master

104.211.178.158 demo-slave1

104.211.181.54 demo-slave3

104.211.181.142 demo-slave2

Installing

As part of the setup, we need to edit 2 configuration files

config.properties hbase.zookeeper.quorum=

hbase.zookeeper.property.clientPort=<Zookeeper port>

 

hbase.client.scanner.timeout.period=<Timeout in ms>

 

hbase.client.retries.number=<Retry count>

Example:

hbase.zookeeper.quorum=52.172.220.134,52.172.212.98

 

hbase.zookeeper.property.clientPort=2181

 

hbase.client.scanner.timeout.period=90000

 

hbase.client.retries.number=2

SetTime.properties

//startDate is the startTime of the run and endDate is the endTime for the run

//Interval is the, duration at which we will chack the values in Hbase

startDate= DD-MM-YYYY HH:MM:SS

endDate= DD-MM-YYYY HH:MM:SS

interval= Minutes

projectId=projectId

Example:

startDate=16-09-2017 20:30:00

 

endDate=16-09-2017 21:30:00

 

interval=30

 

projectId=76

 

 

< Back|KB Main Page | Next KB Article >

Was this article helpful to you?

Walter Lee