AWS by Harsha - part2
Class 27: RDS
Benefits
The main benefit of Amazon RDS is that it helps organizations deal with the complexity of managing large relational databases. Other benefits include the following:Ease of use. Admins don't need to learn specific database management tools. They also can manage multiple database instances using the management console. RDS is compatible with database engines that users may already be familiar with, such as MySQL and Oracle And it automates manual backup and recovery processes.
Cost-effectiveness. According to AWS, customers only pay for what they use. Also, the time spent maintaining instances is reduced, because maintenance tasks, such as backups and patching, are automated.
The use of read replicas routes read-heavy traffic away from the main database instance, reducing the workload on that one instance.
RDS splits up compute and storage so admins can scale them independently.
Drawbacks
Some downsides of using Amazon RDS include the following:Lack of root access. Because it is a managed service, users do not have root access to the server running RDS. RDS restricts access for certain procedures to those with advanced privileges.
Downtime. Systems must go offline for some patching and scaling procedures. The timing on these processes varies. With scaling, compute resources need a few minutes downtime on average.
- We can create a read replica within same region or in another region as well.The cost of same region(same or different availabilty zone is free) only costs when we create read replica in other region
- The use case of read replica is when your reporting application to perform analytics operations on database then if you run it on production dababase then it will impact the performance of db so we create a read replica and perform operations on that
- we cannot perform update,insert and delete operations on readreplicas
- Multi AZ and disaster recovery, It will create a standalone secondary instance and when primary instance is down it will promote other instance as primary
- We can take snapshots and restore them when ever required, manually.
- We can even take automated backups
- Created Redhat openshift cluster
- Connected it using SQLworkbench, For the first time we use admin credentials to connect and will need to create additional users and handover that to other teams to perform queries
- To analyze data dowloaded sample data and uploaded them to s3 buckets, while importing data from s3 buckets to Amazon redshift we need to provide access and secretkey(for authentication)
- Performed sql queries to get data information
- Used powerbi tool to visualize data(This is not responsibily of devops engineer but for fun we have done it)
Amazon ElastiCache is a cache-as-a-service developed and distributed by Amazon Web Services (AWS). It comes as a fully managed solution that has the ability to deploy, manage, and scale a distributed in-memory cache environment in the cloud.
Amazon describes it as a service that allows you to easily create, operate, and scale open-source compatible in-memory data stores within the cloud. Simply, this means that it eliminates the complexity associated with setting up and managing a distributed cache environment.
The system itself is built to boost the performance of web-based applications by reducing the database load through the quick retrieval of data from high throughput and low latency in-memory data stores. As such, you can think of it as a high-performance caching system that facilitates demanding web applications requiring a quick response.
That said, it’s worth noting that Amazon ElastiCache relies on two different caching engines — Memcached and Redis.
DocumentDB is not based on the MongoDB server. Rather it emulates the MongoDB API, and runs on top of Amazon’s Aurora backend platform. This creates significant architectural constraints, functionality limitations, and broken compatibility.
DocumentDB claims to support the MongoDB 4.0 API, which implies that it is at parity with MongoDB v4.0, released back in June 2018. In actual fact the DocumentDB 4.0 feature set still closely resembles early MongoDB 3.0 and 3.2, released in 2015, and compatibility testing reveals it fails 66% of the MongoDB API correctness tests. Applications written for MongoDB will need to be re-written to work with Amazon DocumentDB.
5. Intentionally increased cpu utilization by making use of stress and observed that alarm was triggered and we got the mail as well
- we can update the stack policy by uploding new file
- pay attaention while writing templates, if you want to launch ec2 instances acrooss multiple regions then don't hard code ami, it will change from region to region
- Before proceeding we need to create few roles( AWSCloudFormationStackSetAdministrationRole on controller aws account and AWSCloudFormationStackSetExecutionRole role on target accounts), details here
- Make sure to add 2 target aws accounts into same organizaion unit, we need to create a stackset in orginsation account and need to specify ou id while creating stack sets
- This is not widely used, but good to know.
WS Service Catalog supports the following types of users:
Catalog administrators (administrators) – Manage a catalog of products (applications and services), organizing them into portfolios and granting access to end users. Catalog administrators prepare AWS CloudFormation templates, configure constraints, and manage IAM roles for products to provide for advanced resource management.
End users – Receive AWS credentials from their IT department or manager and use the AWS Management Console to launch products to which they have been granted access. Sometimes referred to as simply users, end users may be granted different permissions depending on your operational requirements. For example, a user may have the maximum permission level (to launch and manage all of the resources required by the products they use) or only permission to use particular service features.
- Created a product, by using basic cloud formaion template which we used earlier to deploy vpc,subnets and ec2 instances
- Created a portfolio and attach the product created above to that portfolio.
- Created a user and attached that user to same portfolio, user should have password.
- Tried to login using user & password and now he can see the nice ui to create vpc,subnets and ec2 instance under catalog
Comments
Post a Comment