1181a40d805f398618e980964d2c95c61d8c8311
configuration/mysql_instance_setup/setup-mysql-server.sh
| ... | ... | @@ -1,5 +1,6 @@ |
| 1 | 1 | #!/bin/bash |
| 2 | 2 | # Usage: ${0} [ -b {bugs-password] ] [ -r {root-password} ] {instance-ip} |
| 3 | +# Deploy with Amazon Linux 2023 |
|
| 3 | 4 | |
| 4 | 5 | # Read options and assign to variables: |
| 5 | 6 | options='b:r:' |
| ... | ... | @@ -70,6 +71,6 @@ EOF |
| 70 | 71 | sudo systemctl start mariadb.service |
| 71 | 72 | echo 'Test your DB, e.g., by counting bugs: sudo mysql -u root -p -e "use bugs; select count(*) from bugs;"' |
| 72 | 73 | echo "If you like what you see, switch to the new DB by updating the mysql.internal.sapsailing.com DNS record to this instance," |
| 73 | - echo "make sure the instance has the \"Database and Messaging\" security group set, |
|
| 74 | + echo "make sure the instance has the \"Database and Messaging\" security group set," |
|
| 74 | 75 | echo "and tag the instance's root volume with the WeeklySailingInfrastructureBackup=Yes tag." |
| 75 | 76 | fi |
wiki/info/landscape/creating-ec2-image-for-mysql-from-scratch.md
| ... | ... | @@ -2,9 +2,9 @@ |
| 2 | 2 | |
| 3 | 3 | Our Bugzilla system at [bugzilla.sapsailing.com](https://bugzilla.sapsailing.com) uses a relational database to store all the bugs and issues. This used to be a MySQL database and has been migrated to MariaDB at the beginning of 2024. |
| 4 | 4 | |
| 5 | -We don't provide a dedicated AMI for this because we don't need to scale this out or replicate this by any means. Instead, we provide a script to set this up, starting from a clean Amazon Linux 2 instance. |
|
| 5 | +We don't provide a dedicated AMI for this because we don't need to scale this out or replicate this by any means. Instead, we provide a script to set this up, starting from a clean Amazon Linux 2023 instance. |
|
| 6 | 6 | |
| 7 | -Launch a new instance, based on the latest Amazon Linux 2 AMI maintained by AWS, and configure the root volume size to be, e.g., 16GB. As of this writing, the total size consumed by the database contents on disk is less than 1GB. Tag the volume with a tag key ``WeeklySailingInfrastructureBackup`` and value ``Yes`` to include it in the weekly backup schedule. |
|
| 7 | +Launch a new instance, based on the latest Amazon Linux 2023 AMI maintained by AWS, and configure the root volume size to be, e.g., 16GB. As of this writing, the total size consumed by the database contents on disk is less than 1GB. Tag the volume with a tag key ``WeeklySailingInfrastructureBackup`` and value ``Yes`` to include it in the weekly backup schedule. |
|
| 8 | 8 | |
| 9 | 9 | When the instance has finished booting up, run the following script, passing the external IP address of the instance as mandatory argument: |
| 10 | 10 | ``` |