当前位置:网站首页>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 :
边栏推荐
- Keepalived 实现 Redis AutoFailover (RedisHA)12
- 解决u8glib只显示一行文字或者不显示的问题
- Gaussian and Summary Stats
- Employment prospect of GIS and remote sensing specialty and ranking selection of universities in 2022
- About Random Numbers
- 建模规范:环境设置
- Kept to implement redis autofailover (redisha) 11
- 直播回顾 | 子芽&CCF TF:云原生场景下软件供应链风险治理技术浅谈
- Custom jsp[if, foreach, data, select] tag
- JSON parsing, esp32 easy access to time, temperature and weather
猜你喜欢

Timing mechanism of LwIP

Implementation of ARP module in LwIP

3線spi屏幕驅動方式
![Count the logarithm of points that cannot reach each other in an undirected graph [classic adjacency table building +dfs Statistics - > query set optimization] [query set manual / write details]](/img/cc/a0be58eddc72c22a9a6ee5c61eb81a.png)
Count the logarithm of points that cannot reach each other in an undirected graph [classic adjacency table building +dfs Statistics - > query set optimization] [query set manual / write details]

史上最难618,TCL夺得电视行业京东和天猫份额双第一

直播回顾 | 子芽&CCF TF:云原生场景下软件供应链风险治理技术浅谈

Lambda expression

Review the old and know the new -- constant renewal at normal temperature

30 MySQL tutorial MySQL storage engine overview

Central Limit Theorem
随机推荐
建模规范:环境设置
Kept to implement redis autofailover (redisha) 11
统一结果集的封装
理想L9产品力分析:售价45.98万,采用四缸发动机,续航1315公里
2022 Health Expo, Shandong health care exhibition, postpartum health and sleep health exhibition
Moher College -x-forwarded-for injection vulnerability practice
Kept to implement redis autofailover (redisha) 13
玩转OLED,U8g2动画,增长数字和随机三角形等
memcached基础7
史上最难618,TCL夺得电视行业京东和天猫份额双第一
Topolvm: kubernetes local persistence scheme based on LVM, capacity aware, dynamically create PV, and easily use local disk
JSON parsing, esp32 easy access to time, temperature and weather
3線spi屏幕驅動方式
3 - wire SPI Screen Drive
超越锂电池——未来电池的概念
Review the old and know the new -- constant renewal at normal temperature
Keepalived 实现 Redis AutoFailover (RedisHA)16
Flink practical problems (VII): no watermark (watermarks are only available eventtime is used)
Gaussian and Summary Stats
leetcode 1143. Longest common subsequence (medium)
