-
Notifications
You must be signed in to change notification settings - Fork 33
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
V0.4.0 #129
V0.4.0 #129
Changes from all commits
cf896aa
38fd09a
a44c941
f48768c
882212a
a9e75d8
8df46ef
f641004
9d3d0bd
4a5f4f8
66b472a
860d60e
0a998f0
057047e
322d970
c770037
ab70ce8
7432961
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.3.0 | ||
0.4.0 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,22 +2,21 @@ | |
|
||
sudo service elasticsearch start | ||
sudo service iglu_server_0.2.0 start | ||
sudo service snowplow_stream_collector_0.9.0 start | ||
sudo service snowplow_stream_enrich_0.10.0 start | ||
sudo service snowplow_elasticsearch_sink_good_0.8.0 start | ||
sudo service snowplow_elasticsearch_sink_bad_0.8.0 start | ||
sudo service snowplow_stream_collector start | ||
sudo service snowplow_stream_enrich start | ||
sudo service snowplow_elasticsearch_loader_good start | ||
sudo service snowplow_elasticsearch_loader_bad start | ||
sudo service kibana4_init start | ||
sudo service nginx start | ||
sleep 15 | ||
|
||
# Send good and bad events | ||
COUNTER=0 | ||
while [ $COUNTER -lt 10 ]; do | ||
curl http://localhost:8080/i?e=pv | ||
curl http://localhost:8080/i | ||
let COUNTER=COUNTER+1 | ||
let COUNTER=COUNTER+1 | ||
done | ||
sleep 5 | ||
sleep 60 | ||
|
||
# Assertions | ||
good_count="$(curl --silent -XGET 'http://localhost:9200/good/good/_count' | python -c 'import json,sys;obj=json.load(sys.stdin);print obj["count"]')" | ||
|
@@ -27,32 +26,7 @@ echo "Event Counts:" | |
echo " - Good: ${good_count}" | ||
echo " - Bad: ${bad_count}" | ||
|
||
stream_enrich_pid_file=/var/run/snowplow_stream_enrich_0.10.0.pid | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why remove all the pid testing to check the service restarts? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. They are moved to control plane test suite under the control plane folder. |
||
stream_collector_pid_file=/var/run/snowplow_stream_collector_0.9.0.pid | ||
sink_bad_pid_file=/var/run/snowplow_elasticsearch_sink_bad_0.8.0-2x.pid | ||
sink_good_pid_file=/var/run/snowplow_elasticsearch_sink_good_0.8.0-2x.pid | ||
|
||
|
||
stream_enrich_pid_old="$(cat "${stream_enrich_pid_file}")" | ||
stream_collector_pid_old="$(cat "${stream_collector_pid_file}")" | ||
sink_bad_pid_old="$(cat "${sink_bad_pid_file}")" | ||
sink_good_pid_old="$(cat "${sink_good_pid_file}")" | ||
|
||
req_result=$(curl --silent -XPUT 'http://localhost:10000/restart-services') | ||
|
||
stream_enrich_pid_new="$(cat "${stream_enrich_pid_file}")" | ||
stream_collector_pid_new="$(cat "${stream_collector_pid_file}")" | ||
sink_bad_pid_new="$(cat "${sink_bad_pid_file}")" | ||
sink_good_pid_new="$(cat "${sink_good_pid_file}")" | ||
|
||
# Bad Count is 11 due to bad logging | ||
if [[ "${good_count}" -eq "10" ]] && [[ "${bad_count}" -eq "11" ]] && | ||
[[ "${req_result}" == "OK" ]] && | ||
[[ "${stream_enrich_pid_old}" -ne "${stream_enrich_pid_new}" ]] && | ||
[[ "${stream_collector_pid_old}" -ne "${stream_collector_pid_new}" ]] && | ||
[[ "${sink_bad_pid_old}" -ne "${sink_bad_pid_new}" ]] && | ||
[[ "${sink_good_pid_old}" -ne "${sink_good_pid_new}" ]]; then | ||
|
||
if [[ "${good_count}" -eq "10" ]] && [[ "${bad_count}" -eq "10" ]]; then | ||
exit 0 | ||
else | ||
exit 1 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
version_file_path = "/home/ubuntu/snowplow/VERSION" | ||
|
||
# for getting IP address of the running EC2 instance | ||
# for more information visit: | ||
# http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html | ||
EC2_meta_service_url = "http://169.254.169.254/latest/meta-data/public-ipv4" | ||
|
||
[directories] | ||
enrichments = "/home/ubuntu/snowplow/configs/enrichments" #directory which all the enrichments file are in | ||
config = "/home/ubuntu/snowplow/configs" #directory which all the configs are in | ||
|
||
[config_file_names] | ||
caddy = "Caddyfile" | ||
iglu_resolver = "iglu-resolver.json" | ||
|
||
[init_scripts] | ||
stream_collector = "snowplow_stream_collector" | ||
stream_enrich = "snowplow_stream_enrich" | ||
es_loader_good = "snowplow_elasticsearch_loader_good" | ||
es_loader_bad = "snowplow_elasticsearch_loader_bad" | ||
iglu = "iglu_server_0.2.0" | ||
caddy = "caddy_init" | ||
|
||
[PSQL] | ||
user = "snowplow" | ||
password = "snowplow" | ||
database = "iglu" | ||
adddress = "127.0.0.1:5432" |
This file was deleted.
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.
should we move to go 1.9?