Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cloud-computing-msc-ai-examples
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sebastian Rieger
cloud-computing-msc-ai-examples
Commits
448177c3
Commit
448177c3
authored
1 year ago
by
Sebastian Rieger
Browse files
Options
Downloads
Patches
Plain Diff
updated aws ami and aws cloud-init script for demo4
parent
172ccb27
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
example-projects/demo3-microservice-in-aws.py
+0
-1
0 additions, 1 deletion
example-projects/demo3-microservice-in-aws.py
example-projects/demo4-scale-out-lb-in-aws.py
+7
-7
7 additions, 7 deletions
example-projects/demo4-scale-out-lb-in-aws.py
with
7 additions
and
8 deletions
example-projects/demo3-microservice-in-aws.py
+
0
−
1
View file @
448177c3
...
@@ -16,7 +16,6 @@ home = expanduser("~")
...
@@ -16,7 +16,6 @@ home = expanduser("~")
# The image to look for and use for the started instance
# The image to look for and use for the started instance
# aws ec2 describe-images --owner amazon | grep ubuntu | grep jammy | grep hvm | grep ssd |grep amd64 | grep -v minimal | grep -v pro | grep -v testing | grep -v k8s | grep "Name"
# aws ec2 describe-images --owner amazon | grep ubuntu | grep jammy | grep hvm | grep ssd |grep amd64 | grep -v minimal | grep -v pro | grep -v testing | grep -v k8s | grep "Name"
ubuntu_image_name
=
'
ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-amd64-server-20240319
'
ubuntu_image_name
=
'
ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-amd64-server-20240319
'
# TODO: 18.04, currently still needed for faafo, need to port faafo demo app to 20.04 or higher and python3...
# The public key to be used for SSH connection, please make sure, that you have the corresponding private key
# The public key to be used for SSH connection, please make sure, that you have the corresponding private key
...
...
This diff is collapsed.
Click to expand it.
example-projects/demo4-scale-out-lb-in-aws.py
+
7
−
7
View file @
448177c3
...
@@ -21,9 +21,9 @@ home = expanduser("~")
...
@@ -21,9 +21,9 @@ home = expanduser("~")
# 1 (Classic) Elastic Load Balancer, expensive! delete it after you used it!
# 1 (Classic) Elastic Load Balancer, expensive! delete it after you used it!
# The image to look for and use for the started instance
# The image to look for and use for the started instance
ubuntu_image_name
=
'
ubuntu/images/hvm-ssd/ubuntu-bionic-18.04-amd64-server-20210128
'
# aws ec2 describe-images --owner amazon | grep ubuntu | grep jammy | grep hvm | grep ssd |grep amd64 | grep -v minimal | grep -v pro | grep -v testing | grep -v k8s | grep "Name"
ubuntu_image_name
=
'
ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-amd64-server-20240319
'
# ubuntu_image_name = 'ubuntu/images/hvm-ssd/ubuntu-bionic-18.04-amd64-server-20210128'
# ubuntu_image_name = 'ubuntu/images/hvm-ssd/ubuntu-bionic-18.04-amd64-server-20210128'
# TODO: 18.04, currently still needed for faafo, need to port faafo demo app to 20.04 or higher and python3...
# The public key to be used for SSH connection, please make sure, that you have the corresponding private key
# The public key to be used for SSH connection, please make sure, that you have the corresponding private key
...
@@ -284,14 +284,14 @@ def main():
...
@@ -284,14 +284,14 @@ def main():
#
#
###########################################################################
###########################################################################
# https://git.openstack.org/cgit/openstack/faafo/plain/contrib/install.sh
# https://git.openstack.org/cgit/openstack/faafo/plain/contrib/install
-aws
.sh
# is currently broken, hence the "rabbitctl" lines were added in the example
# is currently broken, hence the "rabbitctl" lines were added in the example
# below, see also https://bugs.launchpad.net/faafo/+bug/1679710
# below, see also https://bugs.launchpad.net/faafo/+bug/1679710
#
#
# Thanks to Stefan Friedmann for finding this fix ;)
# Thanks to Stefan Friedmann for finding this fix ;)
userdata_service
=
'''
#!/usr/bin/env bash
userdata_service
=
'''
#!/usr/bin/env bash
curl -L -s https://gogs.informatik.hs-fulda.de/srieger/cloud-computing-msc-ai-examples/raw/master/faafo/contrib/install.sh | bash -s --
\
curl -L -s https://gogs.informatik.hs-fulda.de/srieger/cloud-computing-msc-ai-examples/raw/master/faafo/contrib/install
-aws
.sh | bash -s --
\
-i database -i messaging
-i database -i messaging
rabbitmqctl add_user faafo guest
rabbitmqctl add_user faafo guest
rabbitmqctl set_user_tags faafo administrator
rabbitmqctl set_user_tags faafo administrator
...
@@ -317,7 +317,7 @@ def main():
...
@@ -317,7 +317,7 @@ def main():
###########################################################################
###########################################################################
userdata_api
=
'''
#!/usr/bin/env bash
userdata_api
=
'''
#!/usr/bin/env bash
curl -L -s https://gogs.informatik.hs-fulda.de/srieger/cloud-computing-msc-ai-examples/raw/master/faafo/contrib/install.sh | bash -s --
\
curl -L -s https://gogs.informatik.hs-fulda.de/srieger/cloud-computing-msc-ai-examples/raw/master/faafo/contrib/install
-aws
.sh | bash -s --
\
-i faafo -r api -m
'
amqp://faafo:guest@%(services_ip)s:5672/
'
\
-i faafo -r api -m
'
amqp://faafo:guest@%(services_ip)s:5672/
'
\
-d
'
mysql+pymysql://faafo:password@%(services_ip)s:3306/faafo
'
-d
'
mysql+pymysql://faafo:password@%(services_ip)s:3306/faafo
'
'''
%
{
'
services_ip
'
:
services_ip
}
'''
%
{
'
services_ip
'
:
services_ip
}
...
@@ -355,12 +355,12 @@ def main():
...
@@ -355,12 +355,12 @@ def main():
###########################################################################
###########################################################################
userdata_worker
=
'''
#!/usr/bin/env bash
userdata_worker
=
'''
#!/usr/bin/env bash
curl -L -s https://gogs.informatik.hs-fulda.de/srieger/cloud-computing-msc-ai-examples/raw/master/faafo/contrib/install.sh | bash -s --
\
curl -L -s https://gogs.informatik.hs-fulda.de/srieger/cloud-computing-msc-ai-examples/raw/master/faafo/contrib/install
-aws
.sh | bash -s --
\
-i faafo -r worker -e
'
http://%(api_1_ip)s
'
-m
'
amqp://faafo:guest@%(services_ip)s:5672/
'
-i faafo -r worker -e
'
http://%(api_1_ip)s
'
-m
'
amqp://faafo:guest@%(services_ip)s:5672/
'
'''
%
{
'
api_1_ip
'
:
api_1_ip
,
'
services_ip
'
:
services_ip
}
'''
%
{
'
api_1_ip
'
:
api_1_ip
,
'
services_ip
'
:
services_ip
}
# userdata_api-api-2 = '''#!/usr/bin/env bash
# userdata_api-api-2 = '''#!/usr/bin/env bash
# curl -L -s https://gogs.informatik.hs-fulda.de/srieger/cloud-computing-msc-ai-examples/raw/master/faafo/contrib/install.sh | bash -s -- \
# curl -L -s https://gogs.informatik.hs-fulda.de/srieger/cloud-computing-msc-ai-examples/raw/master/faafo/contrib/install
-aws
.sh | bash -s -- \
# -i faafo -r worker -e 'http://%(api_2_ip)s' -m 'amqp://faafo:guest@%(services_ip)s:5672/'
# -i faafo -r worker -e 'http://%(api_2_ip)s' -m 'amqp://faafo:guest@%(services_ip)s:5672/'
# ''' % {'api_2_ip': api_2_ip, 'services_ip': services_ip}
# ''' % {'api_2_ip': api_2_ip, 'services_ip': services_ip}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment