Skip to content

Conversation

@oam1809
Copy link

@oam1809 oam1809 commented Jul 10, 2017

Created Test for SpikeScript

@@ -0,0 +1,3 @@
USERNAME="vagrant"

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


#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''

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; }')

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


#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''

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''


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

@@ -0,0 +1,3 @@
USERNAME="vagrant"
PASSWORD="vagrant"
HOST="192.168.88.193"

Choose a reason for hiding this comment

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

IPADDRESS instead of HOST ?

@@ -0,0 +1,44 @@
#!/bin/bash

Choose a reason for hiding this comment

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

Duplicate file ?

@@ -0,0 +1,4 @@
arr=list(range(1,50000000))

for elem in arr :

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.

=======
docker-compose stop influxdb monitor spike
docker-compose rm --force influxdb monitor spike
>>>>>>> Demo

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"

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.

@@ -1,11 +1,9 @@
all: test
all: test

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.

5 participants