-
Notifications
You must be signed in to change notification settings - Fork 3
1-5-2-1-SpikeScript #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
1-5-2-1-SpikeScript/SpikeScript.conf
Outdated
| @@ -0,0 +1,3 @@ | |||
| USERNAME="vagrant" | |||
There was a problem hiding this comment.
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
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'' | ||
|
|
There was a problem hiding this comment.
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; }') | ||
|
|
There was a problem hiding this comment.
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
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'' | ||
|
|
There was a problem hiding this comment.
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'' | ||
|
|
||
|
|
There was a problem hiding this comment.
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
test/SpikeScript/spikescript.conf
Outdated
| @@ -0,0 +1,3 @@ | |||
| USERNAME="vagrant" | |||
| PASSWORD="vagrant" | |||
| HOST="192.168.88.193" | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IPADDRESS instead of HOST ?
test/SpikeScript/40-PushtoInflux.sh
Outdated
| @@ -0,0 +1,44 @@ | |||
| #!/bin/bash | |||
There was a problem hiding this comment.
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 : | |||
There was a problem hiding this comment.
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.
test/SpikeScript/90-teardown.sh.orig
Outdated
| ======= | ||
| docker-compose stop influxdb monitor spike | ||
| docker-compose rm --force influxdb monitor spike | ||
| >>>>>>> Demo |
There was a problem hiding this comment.
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" | |||
There was a problem hiding this comment.
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 | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove trailing space
Created Test for SpikeScript