当前位置:网站首页>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 :
边栏推荐
- 统一结果集的封装
- 滑环安装有哪些技巧和方法
- 使用NetworkX对社交网络进行系统的分析:Facebook网络分析案例
- The [MySQL] time field is set to the current time by default
- USB协议中HID设备描述符以及键盘按键值对应编码表
- Find the minimum value in the rotation sort array ii[classical Abstract dichotomy + how to break the game left, middle and right are equal]
- Central Limit Theorem
- Moher College -x-forwarded-for injection vulnerability practice
- buuctf-pwn write-ups (6)
- 记录一次换行符引起的bug
猜你喜欢

Custom MVC (imported into jar package) + difference from three-tier architecture + reflection + interview questions

How to measure the thickness of glass substrate by spectral confocal

Processing of slice loss in ArcGIS mosaic dataset

Live review | Ziya &ccf TF: Discussion on software supply chain risk management technology under cloud native scenario

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

30 MySQL tutorial MySQL storage engine overview

Law of Large Numbers

如何把老式键盘转换成USB键盘并且自己编程?

清华&智源 | CogView2:更快更好的文本图像生成模型

Operating instructions and Q & A of cec-i China learning machine
随机推荐
Flink practical problems (VII): no watermark (watermarks are only available eventtime is used)
Memcached foundation 3
滑环安装有哪些技巧和方法
Keepalived 实现 Redis AutoFailover (RedisHA)14
Play OLED, u8g2 animation, increasing numbers, random triangles, etc
Kept to implement redis autofailover (redisha) 16
Esp32-solo development tutorial to solve config_ FREERTOS_ UNICORE problem
Great health industry annual must attend event, 2022 Shandong International Great Health Industry Expo
LeetCode 142. Circular linked list II
光谱共焦如何测量玻璃基板厚度
USB协议中HID设备描述符以及键盘按键值对应编码表
Buuctf PWN write UPS (6)
The world is very big. Some people tattoo QR codes on their necks
乔治·华盛顿大学 : Hanhan Zhou | PAC:多智能体强化学习中具有反事实预测的辅助价值因子分解
BootstrapBlazor + FreeSql实战 Chart 图表使用(2)
理想L9产品力分析:售价45.98万,采用四缸发动机,续航1315公里
How to control the quality of HD slip ring in the production process
Keepalived 实现 Redis AutoFailover (RedisHA)12
Account management, database building and four engines + cases of MySQL
30 MySQL tutorial MySQL storage engine overview
