Skip to content

1-5-2-1-SpikeScript#4

Open
oam1809 wants to merge 62 commits intomasterfrom
1-5-2-1-SpikeScript
Open

1-5-2-1-SpikeScript#4
oam1809 wants to merge 62 commits intomasterfrom
1-5-2-1-SpikeScript

Conversation

@oam1809
Copy link
Copy Markdown

@oam1809 oam1809 commented Jul 10, 2017

Created Test for SpikeScript

Comment thread 1-5-2-1-SpikeScript/SpikeScript.conf Outdated
@@ -0,0 +1,3 @@
USERNAME="vagrant"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mention in README.md to change these values

Comment thread 1-5-2-1-SpikeScript/SpikeScript.sh Outdated

#POST Disk write to Influxdb
curl -i -XPOST 'http://localhost:8086/write?db=test' --data-binary 'disk_write_short,host=server01,region=us-west value='$DISKWRITESEC' '$NOW''

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of them write to test db, but we define jmeter db in DockerFIle for Influx.

Value for $NOW ?
NOW = $(date +"%s")

DISKREADSEC=$(sshpass -p "$PASSWORD" ssh -tt $USERNAME@$IPADDRESS iostat -dx | tail -n 2 | awk '{ print $4; }')

DISKWRITESEC=$(sshpass -p "$PASSWORD" ssh -tt $USERNAME@$IPADDRESS iostat -dx | tail -n 2 | awk '{ print $5; }')

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code to create test db

Comment thread test/SpikeScript/40-pushtoinflux.sh Outdated

#POST Disk write to Influxdb
curl -i -XPOST 'http://localhost:8086/write?db=test' --data-binary 'disk_write_short,host=server01,region=us-west value='$DISKWRITESEC' '$NOW''

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code to verify whether data is actually inserted in Influx or not ?
$NOW ?

#POST Disk write to Influxdb
curl -i -XPOST 'http://localhost:8086/write?db=test' --data-binary 'disk_write_short,host=server01,region=us-west value='$DISKWRITESEC' '$NOW''


Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code to drop test db

Comment thread test/SpikeScript/spikescript.conf Outdated
@@ -0,0 +1,3 @@
USERNAME="vagrant"
PASSWORD="vagrant"
HOST="192.168.88.193"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IPADDRESS instead of HOST ?

Comment thread test/SpikeScript/40-PushtoInflux.sh Outdated
@@ -0,0 +1,44 @@
#!/bin/bash
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicate file ?

Comment thread monitor/assist.py
@@ -0,0 +1,4 @@
arr=list(range(1,50000000))

for elem in arr :
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you have a python script and bash scripts? Just a question.

Comment thread test/SpikeScript/90-teardown.sh.orig Outdated
=======
docker-compose stop influxdb monitor spike
docker-compose rm --force influxdb monitor spike
>>>>>>> Demo
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just remove all the .orig files, they are leftovers of merges :)

@@ -0,0 +1,4 @@
USERNAME="root"
PASSWORD="root"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you use this file instead of configuring this variables in compose.

Comment thread Makefile
@@ -1,11 +1,9 @@
all: test
all: test
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove trailing space

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants