One article to learn about Amazon Cloud Technology’s managed database for Amazon Lightsail

Amazon Lightsail is an easy-to-use, affordable monthly virtual private server provided by Amazon Cloud Technology that includes computing instances, containers, storage, and databases. You can select a business blueprint when creating it. You can choose to include multiple operating systems (Linux/Windows, etc.) or operating systems plus typical applications for quick configuration, and can include CPU, memory, storage, transmission rate, etc. according to your needs. Quick model selection.

The Amazon Cloud Technology Developer Community provides developers with global development technology resources. There are technical documents, development cases, technical columns, training videos, activities and competitions, etc. Help Chinese developers connect with the world's most cutting-edge technologies, ideas, and projects, and recommend outstanding Chinese developers or technologies to the global cloud community. If you haven't followed/collected it yet, please don't rush through it when you see it . Click here to make it your technical treasure trove!

Amazon Lightsail makes it easy for you to get started with Amazon cloud technology. You simply select the operating system (and optional applications) you want to run, select an instance plan, and create an instance, all in just a few minutes. Lightsail is affordable and cost-predictable, with instance packages that include compute capacity, storage, and data transfer.

image.png

Hosted database

As early as 2018, Amazon Cloud Technology launched the managed database function, which allows you to create a managed database in just a few clicks, further improving the functionality of Lightsail.

This feature will appeal to a variety of current and future Lightsail users, including students, independent developers, entrepreneurs, and IT managers. Amazon Cloud Technology solves the most common problems and complex issues that may occur during database establishment and operation, simplifying and improving the entire process of database selection, startup, security, access, monitoring, and maintenance!

Each Lightsail database package is charged at a fixed monthly price and includes a database instance, large-capacity SSD storage, 1TB or more of Internet and cross-Amazon Cloud Technology region transfer capacity, and an automatic backup function that supports 7-day point-in-time restore. It is also possible to create manual database snapshots which will be charged separately.

Create a managed database

Let's walk through the process of creating a managed database and loading an existing MySQL backup into it. First log into the Lightsail console and click Databases to get started. Then click Create database to continue.

image.png

Of course, we can view and edit all options in the overview. Then select the location, database engine and version, and plan, then enter your name and click Create database (all options are set to easy-to-use defaults and often just click).

image.png

This demonstration supports MySQL 5.7 and 8.0, and also supports PostgreSQL from version 11.2115.4. The standard database package will create a database in a single availability zone and does not provide redundancy; the high-availability package will create a database in a second availability zone at the same time, and it is recommended to use this package for production purposes.

Creation of the database takes only a few minutes, the status will change to Available, and the database is ready for use.

image.png

Click Database-Oregon-1 and you can see detailed connection information and view other management information and tools.

image.png

Then create an SSH connection to the Lightsail instance, make sure the mysql package is installed, and connect using the above information.

image.png

Now you can import some existing data into the database. Lightsail needs to start Data import mode to defer any backup or maintenance jobs.

image.png

Enabling data import mode will delete any existing automatic snapshots; if you are importing entirely new data into an existing database, you may need to manually create a snapshot before starting the import.

For example, take a larger (13 GB) and older (around 2013) personal project MySQL backup (the project has long been stopped). Download the backup from S3, decompress it, and then import it.

image.png

I can observe indicators during the import process,

image.png

After the import is complete, data import mode is disabled and queries can be run on the table.

image.png

Lightsail will complete all routine database operations. If an error confuses the data, you can use the Emergency Restore feature to create a completely new database instance from an earlier point in time.

image.png

Moreover, up to 7 days of data can be restored, but only the data since the last time the data import mode was disabled.

You can also take snapshots and use them later to create entirely new database instances.

image.png

Precautions

There are a few things to note when using this new feature:

  • Engine version - This plan supports the latest two versions of MySQL, and the same plan will be implemented for other database engines provided by Amazon Cloud Technology.
  • High Availability - For all production Amazon Web Services systems, you should use the high availability option to ensure that your database covers two Availability Zones. You can use the snapshot feature to convert between Standard and High Availability editions.
  • Storage Scaling - You can scale to larger database instances by creating and later restoring snapshots.
  • Data transfer - As long as the plan capacity is not exceeded, there will be no additional charges for data transferred to and from Lightsail instances in the same Amazon Cloud Technology region.
  • Amazon RDS - This function uses the same core technology as Amazon RDS, so it also enjoys the advantages of Amazon Cloud Technology's operating experience in this series of services.

The managed database function is now available in all Amazon Cloud technology regions where Lightsail is provided. It is cost-effective and has many ranges to choose from:

image.png

Summarize

Amazon Lightsail is an easy way to get started with cloud services at a low, predictable price. Whether you are new to cloud computing or an expert, you can quickly get up and running related applications through Lightsail. Lightsail is best suited for projects that require dozens of instances or fewer, and for developers who prefer a simple management interface. Common usage scenarios include websites, web applications, business software (e.g., finance/accounting, manufacturing, retail, etc.), blogs, e-commerce sites, etc. As your project grows, you can also use a load balancing service and attach additional configured block storage to your instances to increase redundancy and uptime.

Amazon Cloud Technology Amazon EC2 has the flexibility, breadth and depth of services. In terms of performance, Amazon Cloud Technology Nitro brings significant and unique performance advantages to EC2; in terms of expansion, EC2 can scale from a single system to thousands of systems, and customers can expand according to the growth of business needs.

Article source: https://dev.amazoncloud.cn/column/article/65018dca5388453b9ef50646?sc_medium=regulartraffic&sc_campaign=crossplatform&sc_channel=CSDN

Guess you like

Origin blog.csdn.net/u012365585/article/details/132977773