diff --git a/README.md b/README.md index 68fbf15..3f6590c 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,11 @@ # DynamoDB + DAX Benchmarker This project houses the Rust and Go code to benchmark the performance of DynamoDB and DAX by simulating heavy loads. -![main_menu](./screenshots/dynamodb-dax-benchmarker.png) +![main_menu](./screenshots/main-menu.png) +![dashboard_screenshot_1](./screenshots/dashboard-screenshot-1.png) ![advanced_mode](./screenshots/advanced-mode.png) ![ansible_playbook_tail](./screenshots/ansible-playbook-tail.png) +![dashboard_screenshot_2](./screenshots/dashboard-screenshot-2.png) ## Features * [x] Simulate reads on existing data diff --git a/ansible/roles/configure_elastic_stack/tasks/init_elk_stack.yml b/ansible/roles/configure_elastic_stack/tasks/init_elk_stack.yml index 1c76acf..0861990 100644 --- a/ansible/roles/configure_elastic_stack/tasks/init_elk_stack.yml +++ b/ansible/roles/configure_elastic_stack/tasks/init_elk_stack.yml @@ -19,9 +19,9 @@ chdir: ../../docker-elk cmd: docker compose up -d -- name: Wait 20 seconds for the ELK stack to start +- name: Wait 30 seconds for the ELK stack to start pause: - seconds: 20 + seconds: 30 - name: Import the benchmarking dashboards into Kibana shell: diff --git a/ansible/roles/install_prerequisites/tasks/main.yml b/ansible/roles/install_prerequisites/tasks/main.yml index 257e71a..745329b 100644 --- a/ansible/roles/install_prerequisites/tasks/main.yml +++ b/ansible/roles/install_prerequisites/tasks/main.yml @@ -23,3 +23,4 @@ shell: cmd: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b /usr/local/bin v1.53.3 when: golangci_lint_installation_status.rc | int != 0 + become: yes diff --git a/benchmarker.sh b/benchmarker.sh index 65e04f0..05f5b96 100755 --- a/benchmarker.sh +++ b/benchmarker.sh @@ -225,8 +225,9 @@ prompt-for-vpc-id() { main-menu() { declare choice - choice=$(whiptail --fb --title "DynamoDB + DAX Benchmarker" --menu "Select an action" "$BOX_HEIGHT" "$BOX_WIDTH" 6 \ + choice=$(whiptail --fb --title "DynamoDB + DAX Benchmarker" --menu "Select an action" "$BOX_HEIGHT" "$BOX_WIDTH" 7 \ "I" "(I)nitialize local environment" \ + "B" "Open Dash(b)oards" \ "D" "(D)eploy and Run benchmarkers" \ "W" "(W)ipe away everything (Clean Slate)" \ "R" "(R)andomly populate DynamoDB" \ @@ -237,6 +238,18 @@ main-menu() { "I") initialize-environment ;; + "B") + msg-box "$(cat <<-EOF + This will open two new tabs in Firefox to display the DynamoDB and DAX dashboards. + + The default credentials are: + Username: elastic + Password: changeme + EOF + )" + firefox --new-tab --url 'http://localhost:5601/app/dashboards#/view/51721040-24be-11ee-ac2e-ff8a2f0e28da?_g=(filters:!(),refreshInterval:(pause:!t,value:60000),time:(from:now-15m,to:now))' > /dev/null 2>&1 & + firefox --new-tab --url 'http://localhost:5601/app/dashboards#/view/0fe18820-2736-11ee-a70f-4976799912d8?_g=(filters:!(),refreshInterval:(pause:!t,value:60000),time:(from:now-15m,to:now))' > /dev/null 2>&1 & + ;; "D") deploy-and-run-benchmarkers ;; diff --git a/screenshots/dashboard-screenshot-1.png b/screenshots/dashboard-screenshot-1.png new file mode 100644 index 0000000..fcfa15a Binary files /dev/null and b/screenshots/dashboard-screenshot-1.png differ diff --git a/screenshots/dashboard-screenshot-2.png b/screenshots/dashboard-screenshot-2.png new file mode 100644 index 0000000..185910f Binary files /dev/null and b/screenshots/dashboard-screenshot-2.png differ diff --git a/screenshots/dynamodb-dax-benchmarker.png b/screenshots/dynamodb-dax-benchmarker.png deleted file mode 100644 index 8d29238..0000000 Binary files a/screenshots/dynamodb-dax-benchmarker.png and /dev/null differ diff --git a/screenshots/main-menu.png b/screenshots/main-menu.png new file mode 100644 index 0000000..b044e18 Binary files /dev/null and b/screenshots/main-menu.png differ