当前位置:网站首页>Amazon elasticache quickly builds a cache service cluster, which is fast
Amazon elasticache quickly builds a cache service cluster, which is fast
2022-06-27 01:11:00 【Small target youth】
Preface
In our daily work , The term cache service appears frequently ,Redis、Memcached It is a caching service that we often use .
Operations staff 、 Testers 、 R & D personnel 、 Implementation personnel , Have you ever set up cluster services 、 The trouble of deployment and management , I often beat drums for most of the day without results , Take a small notebook and write down some operation procedures every time .
Amazon ElastiCache
ElastiCache It's a fully managed 、 Low latency in memory data storage scheme , Support Memcached And Redis. utilize ElastiCache, You can easily set up 、 install 、 Patch fix 、 To configure 、 monitor 、 General management tasks such as backup and recovery , Focus more on the actual development of the application .
Maybe many people feel that , Many other cloud products can do the same , So why should I choose AWS Of Amazon ElastiCache Well ?
Let me tell you my personal experience , List the points that moved me .
choice Amazon ElastiCache The reason of :
① Cluster engine version switching
We are building our own redis In clusters , A common problem is , Need to change engine version , from redis engine 5.0 Switch to 6.0 Or vice versa .
Very trouble , We have to reinstall different versions redis, I have to start debugging again .
use Amazon ElastiCache Built up redis colony , Easily switch engine versions .
② Cluster security access control
Using other cloud products , Have you been bothered by the use of secure access .
for example , Cloud products redis colony , because redis No, account&password The concept of , It is particularly difficult to control authority , How to control whether you can read or write ? How to control the use of multiple services that can access the cluster but have boundary isolation ?
Basically can't do .
use Amazon ElastiCache Sure , Use Amazon ElastiCache Built up redis colony , You can use role-based managed access control .
That is, I will take you to experience and introduce IAM user , You can use user groups +IAM user +RBAC Permission resource allocation , Perfect implementation of managed access control !
③ Cloud product account system ecosystem
When using cloud series products , Do you have any such usage scenarios , For example, I bought cloud products A, Cloud products A There are relevant access accounts and passwords ; Then the project service needs to use cloud products B, So there are cloud products B The account and password used for relevant access to ;
So A project service uses several middleware cloud products , You have to have several product accounts and passwords .
( For convenience , The O & m often simply makes several cloud product account passwords the same )
use Amazon Our cloud products , There is no need to worry about this at all ,AWS All cloud products can be found in Access Control The settings on are based on IAM The user to use , in other words Even if it's used ABCDE Five different cloud products , Can be based on a IAM Account usage , We can give the account or account user group , Assign permissions to control , Very convenient .
④ It can be built and used quickly , Very fast
My personal feeling is , A cup of coffee is not finished , The cluster is set up . The text shows you how to build from zero redis colony , How fast !
PS: You want to follow me , You can click the link below to experience for free 6 Kind of AWS Cloud native database products :
( At the back of the article, there are more fan benefits for everyone )
Text
This matter should not be delayed , Now you start making a cup of coffee , It's done , The cluster is finished .
Quickly build 、 Deployment cluster , Today, I use redis Cluster is an example , The whole process only needs two steps ( It is so convenient ).
① establish AWS IAM Account ( Connection to use AWS Series products need to use )
② Build at full speed 、 Deployment cluster ( Dot )
establish AWS IAM Account
This is something ? In fact, it is equivalent to the developer platform account , Shared access key key and secret .
All of the AWS product , Can be configured directly Use this IAM account AUTH jurisdiction , Simple, convenient and safe enough .
One word runs through the actual combat application .
1. Enter... Directly in the search box 'IAM', Just click in

2. Select left ‘ user ’, Add new user
Notice here , Yes 2 Two modes of using vouchers , I recommend using a key ( quite a lot AWS Development tools can be used together , Give full play to the convenient use of security permission configuration ).

3. Create a permission group , Easy to manage these IAM Account
Provides a super multi permission policy , You can assign different permissions to different users

4. After grouping , Create directly

5. preservation key and secret
Each account is different key and secret, When connecting to the cluster later, you should use ( Configure security for access AUTH Pattern )

To this step , our IAM The user has completed . Then you can start using AWS All kinds of products .
Build at full speed REDIS colony
1. Search directly Amazon ElastiCache

Enter the left side of the page to see redis、memcached These two familiar figures .

2. Create a cloud cluster
That is, we go to the cloud , There is no need to set up server resources locally , Now? AWS It also provides various benefits , It's a good time .( Full text search benefits , You can find relevant links )

3. Set cluster mode


4. Configure log monitoring
You can start the slow log , Observe which instructions and which cache values affect performance ( Recommended to enable )

5. The cluster has been set up
you 're right , These are the short steps , That is, a few times , The cluster is done .
Can be directly in the original redis The cluster interface shows the cluster we have built .
Including that we can directly view the traffic of each node on the interface 、 Log, etc. .( The O & M personnel can directly face the management system to maintain the cluster )

Yes , I think it will be built quickly , So I built two ( Anyway, it will be finished in a few seconds ), One for the small project I am working on ....

Local verification cluster setup
How can I know that the cluster has been successfully set up ,AWS It also provides a simple and easy-to-use tool ( Other products are OK , Not only the Amazon ElastiCache), Use AWS-CLI You can verify .
1.AWS-CLI Install and use
install
Use this link , Download and install directly in one step (windows):
https://awscli.amazonaws.com/AWSCLIV2.msi

Instruction verification
After the installation cmd Interface input aws --version
( As shown in the figure, we can see that AWS-CLI Installation successful )

2. Connect redis colony
Input instruction :
aws elasticache describe-cache-cluster --cache-cluster-id myredis-0001-001( The cluster node just built id)
You can see what we are building at full speed redis Cluster information .

summary
From zero based Amazon ElastiCache Build a redis colony , Just a few minutes .
What are the advantages of cloud products ?
The first thing is to fast 、 convenient Well , AWS Obviously did , Visualization point by point , The cluster comes out .
The second is to reflect On the cloud 、 trusteeship What's the effect ,AWS Obviously did , For the built cluster , Whether it is log monitoring 、 Node partition settings 、 Engine version settings 、 Data backup 、 Security access control 、 When the replica hangs up, the master node is automatically elected and a new replica is created, etc ,AWS The settings provided reach the level that can be maintained as long as you understand the text .
Amazon's cloud products , It has been launched in the world so far 175 There are three categories of computing functions , Including calculations 、 Storage 、 database 、 The Internet 、 Artificial intelligence 、 Data analysis and so on . from 2006 Launched in , In the global public cloud market , Amazon's AWS Always on top . Many industry giants and excellent enterprises have chosen AWS.
If you want to use cloud products , I really recommend AWS. Moreover, , Now there are benefits to be won .
welfare
Finally, a wave of fan benefits ( It's the level of white whoring , Blogging all the time can rarely bring benefits to everyone ):
Three exclusive benefits
Welfare three : Solution CloudFormation One click deployment template library
Learning platform
Amazon cloud technology has created a variety of learning platforms for developers :
边栏推荐
猜你喜欢

How to convert an old keyboard into a USB keyboard and program it yourself?
![自定义JSP[if,foreach,数据,select]标签](/img/a2/fc75c182d572d86f4466323e31d6c3.png)
自定义JSP[if,foreach,数据,select]标签

Buuctf PWN write UPS (6)

其他服务注册与发现
![Custom jsp[if, foreach, data, select] tag](/img/a2/fc75c182d572d86f4466323e31d6c3.png)
Custom jsp[if, foreach, data, select] tag

TopoLVM: 基于LVM的Kubernetes本地持久化方案,容量感知,动态创建PV,轻松使用本地磁盘

理想L9产品力分析:售价45.98万,采用四缸发动机,续航1315公里

30《MySQL 教程》MySQL 存储引擎概述

自定义MVC(导成jar包)+与三层架构的区别+反射+面试题

CH423要如何使用,便宜的国产IO扩展芯片
随机推荐
Keepalived 实现 Redis AutoFailover (RedisHA)13
Memcached foundation 4
Custom jsp[if, foreach, data, select] tag
Timing mechanism of LwIP
Esp32 experiment - self built web server distribution network 02
Statistical Hypothesis Testing
Esp32 add multi directory custom component
Kept to implement redis autofailover (redisha) 16
USB协议中HID设备描述符以及键盘按键值对应编码表
数据库面试题+sql语句解析
Basic introduction to C program structure Preview
Statistical Hypothesis Testing
滑环选型选购时需要注意的技巧
30《MySQL 教程》MySQL 存储引擎概述
Summary of working at home during the epidemic | community essay solicitation
Interface test framework practice (I) | requests and interface request construction
寻找旋转排序数组中的最小值 II[经典抽象二分 + 如何破局左中右三者相等]
乔治·华盛顿大学 : Hanhan Zhou | PAC:多智能体强化学习中具有反事实预测的辅助价值因子分解
高清滑环生产过程当中的质量如何把控
TopoLVM: 基于LVM的Kubernetes本地持久化方案,容量感知,动态创建PV,轻松使用本地磁盘
