Change in asterixdb[master]: Make aws scripts work with all latest instance types that ar...
Jenkins has posted comments on this change. Change subject: Make aws scripts work with all latest instance types that are equiped with instance-stores. .. Patch Set 4: Integration Tests Failed https://asterix-jenkins.ics.uci.edu/job/asterix-gerrit-integration-tests/2266/ : UNSTABLE -- To view, visit https://asterix-gerrit.ics.uci.edu/1603 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-MessageType: comment Gerrit-Change-Id: I16efff22a029e316c7a7dc0402c0131e0c0bdea4 Gerrit-PatchSet: 4 Gerrit-Project: asterixdb Gerrit-Branch: master Gerrit-Owner: Yingyi BuGerrit-Reviewer: Ian Maxon Gerrit-Reviewer: Jenkins Gerrit-Reviewer: Michael Blow Gerrit-Reviewer: Yingyi Bu Gerrit-HasComments: No
Change in asterixdb[master]: Make aws scripts work with all latest instance types that ar...
Yingyi Bu has submitted this change and it was merged. Change subject: Make aws scripts work with all latest instance types that are equiped with instance-stores. .. Make aws scripts work with all latest instance types that are equiped with instance-stores. Change-Id: I16efff22a029e316c7a7dc0402c0131e0c0bdea4 Reviewed-on: https://asterix-gerrit.ics.uci.edu/1603 Sonar-Qube: JenkinsTested-by: Jenkins BAD: Jenkins Reviewed-by: Ian Maxon --- M asterixdb/asterix-server/src/main/opt/ansible/yaml/instance_start.yml M asterixdb/asterix-server/src/main/opt/ansible/yaml/start_cc.yml A asterixdb/asterix-server/src/main/opt/aws/bin/gen_volumes.sh M asterixdb/asterix-server/src/main/opt/aws/bin/start.sh M asterixdb/asterix-server/src/main/opt/aws/conf/aws_types.yml M asterixdb/asterix-server/src/main/opt/aws/yaml/aws_start.yml M asterixdb/asterix-server/src/main/opt/aws/yaml/instance_start.yml M asterixdb/asterix-server/src/main/opt/aws/yaml/mount.yml 8 files changed, 112 insertions(+), 49 deletions(-) Approvals: Ian Maxon: Looks good to me, approved Jenkins: Verified; No violations found; No violations found diff --git a/asterixdb/asterix-server/src/main/opt/ansible/yaml/instance_start.yml b/asterixdb/asterix-server/src/main/opt/ansible/yaml/instance_start.yml index 13de7cd..d6661ca 100644 --- a/asterixdb/asterix-server/src/main/opt/ansible/yaml/instance_start.yml +++ b/asterixdb/asterix-server/src/main/opt/ansible/yaml/instance_start.yml @@ -19,7 +19,7 @@ - hosts: [localhost,] vars: - temp_dir: "/tmp/asterixdb" + temp_dir: "{{ playbook_dir }}/../conf/instance" inventory: "{{ temp_dir }}/inventory" ccconf: "{{ temp_dir }}/cc.conf" tasks: diff --git a/asterixdb/asterix-server/src/main/opt/ansible/yaml/start_cc.yml b/asterixdb/asterix-server/src/main/opt/ansible/yaml/start_cc.yml index 9d371d2..66fd79c 100644 --- a/asterixdb/asterix-server/src/main/opt/ansible/yaml/start_cc.yml +++ b/asterixdb/asterix-server/src/main/opt/ansible/yaml/start_cc.yml @@ -19,7 +19,7 @@ - name: Copy cluster config to CC synchronize: -src: /tmp/asterixdb/cc.conf +src: ../conf/instance/cc.conf dest: "{{ binarydir }}/cc.conf" - name: Update cluster config diff --git a/asterixdb/asterix-server/src/main/opt/aws/bin/gen_volumes.sh b/asterixdb/asterix-server/src/main/opt/aws/bin/gen_volumes.sh new file mode 100755 index 000..82ab685 --- /dev/null +++ b/asterixdb/asterix-server/src/main/opt/aws/bin/gen_volumes.sh @@ -0,0 +1,41 @@ +#!/bin/bash +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# + +# Number of instance-store volumes +count=$1 + +# Destination of the generated file for the volume list +dest=$2 + +# There is no instance-stores. +if [ $count -le 0 ] +then +printf "vols: []\n" >$dest +exit 0 +fi + +# Generates a list of instance-local volumes. +printf "vols:\n" >$dest + +for i in $(seq 1 $count) +do + printf ' - { device_name: /dev/xvd%c, ephemeral: ephemeral%d }\n' `printf "\x$(printf %x \`expr 97 + $i\`)"` \ +$(($i-1)) >> $dest +done diff --git a/asterixdb/asterix-server/src/main/opt/aws/bin/start.sh b/asterixdb/asterix-server/src/main/opt/aws/bin/start.sh index a836b4e..8bffaa4 100755 --- a/asterixdb/asterix-server/src/main/opt/aws/bin/start.sh +++ b/asterixdb/asterix-server/src/main/opt/aws/bin/start.sh @@ -30,7 +30,7 @@ ansible-playbook -i "localhost," $AWS_PATH/yaml/aws_start.yml # Generates an Ansible inventory file and an AsterixDB configuration file. -temp=/tmp/asterixdb +temp=$AWS_PATH/conf/instance inventory=$temp/inventory # Installs asterixdb on all AWS instances. diff --git a/asterixdb/asterix-server/src/main/opt/aws/conf/aws_types.yml b/asterixdb/asterix-server/src/main/opt/aws/conf/aws_types.yml index e0a060e..72b3d63 100644 --- a/asterixdb/asterix-server/src/main/opt/aws/conf/aws_types.yml +++ b/asterixdb/asterix-server/src/main/opt/aws/conf/aws_types.yml @@
Change in asterixdb[master]: Make aws scripts work with all latest instance types that ar...
Ian Maxon has posted comments on this change. Change subject: Make aws scripts work with all latest instance types that are equiped with instance-stores. .. Patch Set 4: Code-Review+2 -- To view, visit https://asterix-gerrit.ics.uci.edu/1603 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-MessageType: comment Gerrit-Change-Id: I16efff22a029e316c7a7dc0402c0131e0c0bdea4 Gerrit-PatchSet: 4 Gerrit-Project: asterixdb Gerrit-Branch: master Gerrit-Owner: Yingyi BuGerrit-Reviewer: Ian Maxon Gerrit-Reviewer: Jenkins Gerrit-Reviewer: Michael Blow Gerrit-Reviewer: Yingyi Bu Gerrit-HasComments: No
Change in asterixdb[master]: Make aws scripts work with all latest instance types that ar...
Jenkins has posted comments on this change. Change subject: Make aws scripts work with all latest instance types that are equiped with instance-stores. .. Patch Set 4: BAD+1 BAD Compatibility Tests Successful https://asterix-jenkins.ics.uci.edu/job/asterixbad-compat/858/ : SUCCESS -- To view, visit https://asterix-gerrit.ics.uci.edu/1603 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-MessageType: comment Gerrit-Change-Id: I16efff22a029e316c7a7dc0402c0131e0c0bdea4 Gerrit-PatchSet: 4 Gerrit-Project: asterixdb Gerrit-Branch: master Gerrit-Owner: Yingyi BuGerrit-Reviewer: Ian Maxon Gerrit-Reviewer: Jenkins Gerrit-Reviewer: Michael Blow Gerrit-Reviewer: Yingyi Bu Gerrit-HasComments: No
Change in asterixdb[master]: Make aws scripts work with all latest instance types that ar...
Jenkins has posted comments on this change. Change subject: Make aws scripts work with all latest instance types that are equiped with instance-stores. .. Patch Set 4: BAD Compatibility Tests Started https://asterix-jenkins.ics.uci.edu/job/asterixbad-compat/858/ -- To view, visit https://asterix-gerrit.ics.uci.edu/1603 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-MessageType: comment Gerrit-Change-Id: I16efff22a029e316c7a7dc0402c0131e0c0bdea4 Gerrit-PatchSet: 4 Gerrit-Project: asterixdb Gerrit-Branch: master Gerrit-Owner: Yingyi BuGerrit-Reviewer: Ian Maxon Gerrit-Reviewer: Jenkins Gerrit-Reviewer: Michael Blow Gerrit-Reviewer: Yingyi Bu Gerrit-HasComments: No
Change in asterixdb[master]: Make aws scripts work with all latest instance types that ar...
Jenkins has posted comments on this change. Change subject: Make aws scripts work with all latest instance types that are equiped with instance-stores. .. Patch Set 4: Integration Tests Started https://asterix-jenkins.ics.uci.edu/job/asterix-gerrit-integration-tests/2266/ -- To view, visit https://asterix-gerrit.ics.uci.edu/1603 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-MessageType: comment Gerrit-Change-Id: I16efff22a029e316c7a7dc0402c0131e0c0bdea4 Gerrit-PatchSet: 4 Gerrit-Project: asterixdb Gerrit-Branch: master Gerrit-Owner: Yingyi BuGerrit-Reviewer: Ian Maxon Gerrit-Reviewer: Jenkins Gerrit-Reviewer: Michael Blow Gerrit-Reviewer: Yingyi Bu Gerrit-HasComments: No
Change in asterixdb[master]: Make aws scripts work with all latest instance types that ar...
Jenkins has posted comments on this change. Change subject: Make aws scripts work with all latest instance types that are equiped with instance-stores. .. Patch Set 4: Build Started https://asterix-jenkins.ics.uci.edu/job/asterix-gerrit-asterix-app/91/ (2/3) -- To view, visit https://asterix-gerrit.ics.uci.edu/1603 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-MessageType: comment Gerrit-Change-Id: I16efff22a029e316c7a7dc0402c0131e0c0bdea4 Gerrit-PatchSet: 4 Gerrit-Project: asterixdb Gerrit-Branch: master Gerrit-Owner: Yingyi BuGerrit-Reviewer: Ian Maxon Gerrit-Reviewer: Jenkins Gerrit-Reviewer: Michael Blow Gerrit-Reviewer: Yingyi Bu Gerrit-HasComments: No
Change in asterixdb[master]: Make aws scripts work with all latest instance types that ar...
Jenkins has posted comments on this change. Change subject: Make aws scripts work with all latest instance types that are equiped with instance-stores. .. Patch Set 4: Build Started https://asterix-jenkins.ics.uci.edu/job/asterix-gerrit-notopic/4769/ (1/3) -- To view, visit https://asterix-gerrit.ics.uci.edu/1603 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-MessageType: comment Gerrit-Change-Id: I16efff22a029e316c7a7dc0402c0131e0c0bdea4 Gerrit-PatchSet: 4 Gerrit-Project: asterixdb Gerrit-Branch: master Gerrit-Owner: Yingyi BuGerrit-Reviewer: Ian Maxon Gerrit-Reviewer: Jenkins Gerrit-Reviewer: Michael Blow Gerrit-Reviewer: Yingyi Bu Gerrit-HasComments: No
Change in asterixdb[master]: Make aws scripts work with all latest instance types that ar...
Yingyi Bu has posted comments on this change. Change subject: Make aws scripts work with all latest instance types that are equiped with instance-stores. .. Patch Set 4: (2 comments) https://asterix-gerrit.ics.uci.edu/#/c/1603/3/asterixdb/asterix-server/src/main/opt/aws/yaml/aws_start.yml File asterixdb/asterix-server/src/main/opt/aws/yaml/aws_start.yml: PS3, Line 138: : > remove two extra lines? Done https://asterix-gerrit.ics.uci.edu/#/c/1603/3/asterixdb/asterix-server/src/main/opt/aws/yaml/instance_start.yml File asterixdb/asterix-server/src/main/opt/aws/yaml/instance_start.yml: Line 28: - include_vars: ../conf/instance/volumes.yml > should we make this a .yml extension? Done -- To view, visit https://asterix-gerrit.ics.uci.edu/1603 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-MessageType: comment Gerrit-Change-Id: I16efff22a029e316c7a7dc0402c0131e0c0bdea4 Gerrit-PatchSet: 4 Gerrit-Project: asterixdb Gerrit-Branch: master Gerrit-Owner: Yingyi BuGerrit-Reviewer: Ian Maxon Gerrit-Reviewer: Jenkins Gerrit-Reviewer: Michael Blow Gerrit-Reviewer: Yingyi Bu Gerrit-HasComments: Yes
Change in asterixdb[master]: Make aws scripts work with all latest instance types that ar...
Hello Jenkins, I'd like you to reexamine a change. Please visit https://asterix-gerrit.ics.uci.edu/1603 to look at the new patch set (#4). Change subject: Make aws scripts work with all latest instance types that are equiped with instance-stores. .. Make aws scripts work with all latest instance types that are equiped with instance-stores. Change-Id: I16efff22a029e316c7a7dc0402c0131e0c0bdea4 --- M asterixdb/asterix-server/src/main/opt/ansible/yaml/instance_start.yml M asterixdb/asterix-server/src/main/opt/ansible/yaml/start_cc.yml A asterixdb/asterix-server/src/main/opt/aws/bin/gen_volumes.sh M asterixdb/asterix-server/src/main/opt/aws/bin/start.sh M asterixdb/asterix-server/src/main/opt/aws/conf/aws_types.yml M asterixdb/asterix-server/src/main/opt/aws/yaml/aws_start.yml M asterixdb/asterix-server/src/main/opt/aws/yaml/instance_start.yml M asterixdb/asterix-server/src/main/opt/aws/yaml/mount.yml 8 files changed, 112 insertions(+), 49 deletions(-) git pull ssh://asterix-gerrit.ics.uci.edu:29418/asterixdb refs/changes/03/1603/4 -- To view, visit https://asterix-gerrit.ics.uci.edu/1603 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-MessageType: newpatchset Gerrit-Change-Id: I16efff22a029e316c7a7dc0402c0131e0c0bdea4 Gerrit-PatchSet: 4 Gerrit-Project: asterixdb Gerrit-Branch: master Gerrit-Owner: Yingyi BuGerrit-Reviewer: Ian Maxon Gerrit-Reviewer: Jenkins Gerrit-Reviewer: Michael Blow
Change in asterixdb[master]: Make aws scripts work with all latest instance types that ar...
Michael Blow has posted comments on this change. Change subject: Make aws scripts work with all latest instance types that are equiped with instance-stores. .. Patch Set 3: (2 comments) https://asterix-gerrit.ics.uci.edu/#/c/1603/3/asterixdb/asterix-server/src/main/opt/aws/yaml/aws_start.yml File asterixdb/asterix-server/src/main/opt/aws/yaml/aws_start.yml: PS3, Line 138: : remove two extra lines? https://asterix-gerrit.ics.uci.edu/#/c/1603/3/asterixdb/asterix-server/src/main/opt/aws/yaml/instance_start.yml File asterixdb/asterix-server/src/main/opt/aws/yaml/instance_start.yml: Line 28: - include_vars: ../conf/instance/volumes should we make this a .yml extension? -- To view, visit https://asterix-gerrit.ics.uci.edu/1603 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-MessageType: comment Gerrit-Change-Id: I16efff22a029e316c7a7dc0402c0131e0c0bdea4 Gerrit-PatchSet: 3 Gerrit-Project: asterixdb Gerrit-Branch: master Gerrit-Owner: Yingyi BuGerrit-Reviewer: Ian Maxon Gerrit-Reviewer: Jenkins Gerrit-Reviewer: Michael Blow Gerrit-HasComments: Yes
Change in asterixdb[master]: Make aws scripts work with all latest instance types that ar...
Jenkins has posted comments on this change. Change subject: Make aws scripts work with all latest instance types that are equiped with instance-stores. .. Patch Set 3: Integration-Tests+1 Integration Tests Successful https://asterix-jenkins.ics.uci.edu/job/asterix-gerrit-integration-tests/2259/ : SUCCESS -- To view, visit https://asterix-gerrit.ics.uci.edu/1603 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-MessageType: comment Gerrit-Change-Id: I16efff22a029e316c7a7dc0402c0131e0c0bdea4 Gerrit-PatchSet: 3 Gerrit-Project: asterixdb Gerrit-Branch: master Gerrit-Owner: Yingyi BuGerrit-Reviewer: Ian Maxon Gerrit-Reviewer: Jenkins Gerrit-Reviewer: Michael Blow Gerrit-HasComments: No
Change in asterixdb[master]: Make aws scripts work with all latest instance types that ar...
Jenkins has posted comments on this change. Change subject: Make aws scripts work with all latest instance types that are equiped with instance-stores. .. Patch Set 3: BAD+1 BAD Compatibility Tests Successful https://asterix-jenkins.ics.uci.edu/job/asterixbad-compat/852/ : SUCCESS -- To view, visit https://asterix-gerrit.ics.uci.edu/1603 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-MessageType: comment Gerrit-Change-Id: I16efff22a029e316c7a7dc0402c0131e0c0bdea4 Gerrit-PatchSet: 3 Gerrit-Project: asterixdb Gerrit-Branch: master Gerrit-Owner: Yingyi BuGerrit-Reviewer: Jenkins Gerrit-HasComments: No
Change in asterixdb[master]: Make aws scripts work with all latest instance types that ar...
Jenkins has posted comments on this change. Change subject: Make aws scripts work with all latest instance types that are equiped with instance-stores. .. Patch Set 3: BAD Compatibility Tests Started https://asterix-jenkins.ics.uci.edu/job/asterixbad-compat/852/ -- To view, visit https://asterix-gerrit.ics.uci.edu/1603 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-MessageType: comment Gerrit-Change-Id: I16efff22a029e316c7a7dc0402c0131e0c0bdea4 Gerrit-PatchSet: 3 Gerrit-Project: asterixdb Gerrit-Branch: master Gerrit-Owner: Yingyi BuGerrit-Reviewer: Jenkins Gerrit-HasComments: No
Change in asterixdb[master]: Make aws scripts work with all latest instance types that ar...
Jenkins has posted comments on this change. Change subject: Make aws scripts work with all latest instance types that are equiped with instance-stores. .. Patch Set 3: Integration Tests Started https://asterix-jenkins.ics.uci.edu/job/asterix-gerrit-integration-tests/2259/ -- To view, visit https://asterix-gerrit.ics.uci.edu/1603 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-MessageType: comment Gerrit-Change-Id: I16efff22a029e316c7a7dc0402c0131e0c0bdea4 Gerrit-PatchSet: 3 Gerrit-Project: asterixdb Gerrit-Branch: master Gerrit-Owner: Yingyi BuGerrit-Reviewer: Jenkins Gerrit-HasComments: No
Change in asterixdb[master]: Make aws scripts work with all latest instance types that ar...
Jenkins has posted comments on this change. Change subject: Make aws scripts work with all latest instance types that are equiped with instance-stores. .. Patch Set 3: Build Started https://asterix-jenkins.ics.uci.edu/job/asterix-gerrit-asterix-app/84/ (2/3) -- To view, visit https://asterix-gerrit.ics.uci.edu/1603 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-MessageType: comment Gerrit-Change-Id: I16efff22a029e316c7a7dc0402c0131e0c0bdea4 Gerrit-PatchSet: 3 Gerrit-Project: asterixdb Gerrit-Branch: master Gerrit-Owner: Yingyi BuGerrit-Reviewer: Jenkins Gerrit-HasComments: No
Change in asterixdb[master]: Make aws scripts work with all latest instance types that ar...
Hello Jenkins, I'd like you to reexamine a change. Please visit https://asterix-gerrit.ics.uci.edu/1603 to look at the new patch set (#3). Change subject: Make aws scripts work with all latest instance types that are equiped with instance-stores. .. Make aws scripts work with all latest instance types that are equiped with instance-stores. Change-Id: I16efff22a029e316c7a7dc0402c0131e0c0bdea4 --- M asterixdb/asterix-server/src/main/opt/ansible/yaml/instance_start.yml M asterixdb/asterix-server/src/main/opt/ansible/yaml/start_cc.yml A asterixdb/asterix-server/src/main/opt/aws/bin/gen_volumes.sh M asterixdb/asterix-server/src/main/opt/aws/bin/start.sh M asterixdb/asterix-server/src/main/opt/aws/conf/aws_types.yml M asterixdb/asterix-server/src/main/opt/aws/yaml/aws_start.yml M asterixdb/asterix-server/src/main/opt/aws/yaml/instance_start.yml M asterixdb/asterix-server/src/main/opt/aws/yaml/mount.yml 8 files changed, 114 insertions(+), 49 deletions(-) git pull ssh://asterix-gerrit.ics.uci.edu:29418/asterixdb refs/changes/03/1603/3 -- To view, visit https://asterix-gerrit.ics.uci.edu/1603 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-MessageType: newpatchset Gerrit-Change-Id: I16efff22a029e316c7a7dc0402c0131e0c0bdea4 Gerrit-PatchSet: 3 Gerrit-Project: asterixdb Gerrit-Branch: master Gerrit-Owner: Yingyi BuGerrit-Reviewer: Jenkins
Change in asterixdb[master]: Make aws scripts work with all latest instance types that ar...
Jenkins has posted comments on this change. Change subject: Make aws scripts work with all latest instance types that are equiped with instance-stores. .. Patch Set 2: Build Started https://asterix-jenkins.ics.uci.edu/job/asterix-gerrit-notopic/4762/ (1/3) -- To view, visit https://asterix-gerrit.ics.uci.edu/1603 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-MessageType: comment Gerrit-Change-Id: I16efff22a029e316c7a7dc0402c0131e0c0bdea4 Gerrit-PatchSet: 2 Gerrit-Project: asterixdb Gerrit-Branch: master Gerrit-Owner: Yingyi BuGerrit-Reviewer: Jenkins Gerrit-HasComments: No
Change in asterixdb[master]: Make aws scripts work with all latest instance types that ar...
Yingyi Bu has uploaded a new patch set (#2). Change subject: Make aws scripts work with all latest instance types that are equiped with instance-stores. .. Make aws scripts work with all latest instance types that are equiped with instance-stores. Change-Id: I16efff22a029e316c7a7dc0402c0131e0c0bdea4 --- M asterixdb/asterix-server/src/main/opt/ansible/yaml/instance_start.yml M asterixdb/asterix-server/src/main/opt/ansible/yaml/start_cc.yml A asterixdb/asterix-server/src/main/opt/aws/bin/gen_volumes.sh M asterixdb/asterix-server/src/main/opt/aws/bin/start.sh M asterixdb/asterix-server/src/main/opt/aws/conf/aws_types.yml M asterixdb/asterix-server/src/main/opt/aws/yaml/aws_start.yml M asterixdb/asterix-server/src/main/opt/aws/yaml/instance_start.yml M asterixdb/asterix-server/src/main/opt/aws/yaml/mount.yml 8 files changed, 114 insertions(+), 49 deletions(-) git pull ssh://asterix-gerrit.ics.uci.edu:29418/asterixdb refs/changes/03/1603/2 -- To view, visit https://asterix-gerrit.ics.uci.edu/1603 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-MessageType: newpatchset Gerrit-Change-Id: I16efff22a029e316c7a7dc0402c0131e0c0bdea4 Gerrit-PatchSet: 2 Gerrit-Project: asterixdb Gerrit-Branch: master Gerrit-Owner: Yingyi BuGerrit-Reviewer: Jenkins
Change in asterixdb[master]: Make aws scripts work with all latest instance types that ar...
Jenkins has posted comments on this change. Change subject: Make aws scripts work with all latest instance types that are equiped with instance-stores. .. Patch Set 1: Build Started https://asterix-jenkins.ics.uci.edu/job/asterix-gerrit-asterix-app/82/ (2/3) -- To view, visit https://asterix-gerrit.ics.uci.edu/1603 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-MessageType: comment Gerrit-Change-Id: I16efff22a029e316c7a7dc0402c0131e0c0bdea4 Gerrit-PatchSet: 1 Gerrit-Project: asterixdb Gerrit-Branch: master Gerrit-Owner: Yingyi BuGerrit-Reviewer: Jenkins Gerrit-HasComments: No
Change in asterixdb[master]: Make aws scripts work with all latest instance types that ar...
Yingyi Bu has uploaded a new change for review. https://asterix-gerrit.ics.uci.edu/1603 Change subject: Make aws scripts work with all latest instance types that are equiped with instance-stores. .. Make aws scripts work with all latest instance types that are equiped with instance-stores. Change-Id: I16efff22a029e316c7a7dc0402c0131e0c0bdea4 --- M asterixdb/asterix-server/src/main/opt/ansible/yaml/instance_start.yml M asterixdb/asterix-server/src/main/opt/ansible/yaml/start_cc.yml A asterixdb/asterix-server/src/main/opt/aws/bin/gen_volumes.sh M asterixdb/asterix-server/src/main/opt/aws/bin/start.sh M asterixdb/asterix-server/src/main/opt/aws/conf/aws_types.yml M asterixdb/asterix-server/src/main/opt/aws/yaml/aws_start.yml M asterixdb/asterix-server/src/main/opt/aws/yaml/instance_start.yml M asterixdb/asterix-server/src/main/opt/aws/yaml/mount.yml 8 files changed, 110 insertions(+), 49 deletions(-) git pull ssh://asterix-gerrit.ics.uci.edu:29418/asterixdb refs/changes/03/1603/1 diff --git a/asterixdb/asterix-server/src/main/opt/ansible/yaml/instance_start.yml b/asterixdb/asterix-server/src/main/opt/ansible/yaml/instance_start.yml index 13de7cd..e1d005d 100644 --- a/asterixdb/asterix-server/src/main/opt/ansible/yaml/instance_start.yml +++ b/asterixdb/asterix-server/src/main/opt/ansible/yaml/instance_start.yml @@ -19,7 +19,7 @@ - hosts: [localhost,] vars: - temp_dir: "/tmp/asterixdb" + temp_dir: "../conf/instance" inventory: "{{ temp_dir }}/inventory" ccconf: "{{ temp_dir }}/cc.conf" tasks: diff --git a/asterixdb/asterix-server/src/main/opt/ansible/yaml/start_cc.yml b/asterixdb/asterix-server/src/main/opt/ansible/yaml/start_cc.yml index 9d371d2..66fd79c 100644 --- a/asterixdb/asterix-server/src/main/opt/ansible/yaml/start_cc.yml +++ b/asterixdb/asterix-server/src/main/opt/ansible/yaml/start_cc.yml @@ -19,7 +19,7 @@ - name: Copy cluster config to CC synchronize: -src: /tmp/asterixdb/cc.conf +src: ../conf/instance/cc.conf dest: "{{ binarydir }}/cc.conf" - name: Update cluster config diff --git a/asterixdb/asterix-server/src/main/opt/aws/bin/gen_volumes.sh b/asterixdb/asterix-server/src/main/opt/aws/bin/gen_volumes.sh new file mode 100755 index 000..dd22394 --- /dev/null +++ b/asterixdb/asterix-server/src/main/opt/aws/bin/gen_volumes.sh @@ -0,0 +1,37 @@ +#!/bin/bash +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# + + +count=$1 +dest=$2 + +if [ $count -le 0 ] +then +printf "vols: []\n" >$dest +exit 0 +fi + +printf "vols:\n" >$dest + +for i in $(seq 1 $count) +do + printf ' - { device_name: /dev/xvd%c, ephemeral: ephemeral%d }\n' `printf "\x$(printf %x \`expr 97 + $i\`)"` \ +$(($i-1)) >> $dest +done diff --git a/asterixdb/asterix-server/src/main/opt/aws/bin/start.sh b/asterixdb/asterix-server/src/main/opt/aws/bin/start.sh index a836b4e..8bffaa4 100755 --- a/asterixdb/asterix-server/src/main/opt/aws/bin/start.sh +++ b/asterixdb/asterix-server/src/main/opt/aws/bin/start.sh @@ -30,7 +30,7 @@ ansible-playbook -i "localhost," $AWS_PATH/yaml/aws_start.yml # Generates an Ansible inventory file and an AsterixDB configuration file. -temp=/tmp/asterixdb +temp=$AWS_PATH/conf/instance inventory=$temp/inventory # Installs asterixdb on all AWS instances. diff --git a/asterixdb/asterix-server/src/main/opt/aws/conf/aws_types.yml b/asterixdb/asterix-server/src/main/opt/aws/conf/aws_types.yml index e0a060e..72b3d63 100644 --- a/asterixdb/asterix-server/src/main/opt/aws/conf/aws_types.yml +++ b/asterixdb/asterix-server/src/main/opt/aws/conf/aws_types.yml @@ -1,37 +1,50 @@ -one_ephemeral: - - { device_name: /dev/xvdb, ephemeral: ephemeral0 } -two_ephemeral: - - { device_name: /dev/xvdb, ephemeral: ephemeral0 } - - { device_name: /dev/xvdc, ephemeral: ephemeral1 } -three_ephemeral: - - { device_name: /dev/xvdb, ephemeral: ephemeral0 } - - { device_name: /dev/xvdc, ephemeral: ephemeral1 } - - { device_name: /dev/xvdd, ephemeral: ephemeral2 } -four_ephemeral: - - { device_name: /dev/xvdb,
Change in asterixdb[master]: Make aws scripts work with all latest instance types that ar...
Jenkins has posted comments on this change. Change subject: Make aws scripts work with all latest instance types that are equiped with instance-stores. .. Patch Set 1: Build Started https://asterix-jenkins.ics.uci.edu/job/asterix-gerrit-notopic/4761/ (1/3) -- To view, visit https://asterix-gerrit.ics.uci.edu/1603 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-MessageType: comment Gerrit-Change-Id: I16efff22a029e316c7a7dc0402c0131e0c0bdea4 Gerrit-PatchSet: 1 Gerrit-Project: asterixdb Gerrit-Branch: master Gerrit-Owner: Yingyi BuGerrit-Reviewer: Jenkins Gerrit-HasComments: No