In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Preface
Generally speaking, there are two types of OPS modes for automated OPS:
Scheduled scripting tasks, such as regularly changing the acess key secret of cloud services, regularly checking the exposed ports of ecs and other emergency handling of alarm events, such as abnormal restart of ecs instances.
In traditional operation and maintenance, the processing of scheduled tasks is usually implemented by crontab scripts, but once more machines are managed, the scripts are bound to be managed centrally. At this time, it is a great challenge to the availability of the machines that centrally manage the scripts, the scattered password plaintext and other related information in the scripts, and the records of scheduled task execution. For event-driven alarm processing, either through SMS alarm to inform the operation and maintenance personnel, or need self-built services to deal with alarm information, no matter which way, the financial cost and operation and maintenance costs are very large. This paper discusses a new mode of operation and maintenance, which uses function calculation to do automatic operation and maintenance, and a highly reliable and high-quality operation and maintenance service can be obtained at a very low cost.
Function calculation
Ali Cloud function Computing is an event-driven serverless computing service. Through function calculation, you do not need to manage infrastructure such as servers, you just need to write code and upload. Function calculation prepares computing resources for you to run your code in a flexible and reliable manner, as follows:
There is no need to pay on demand for infrastructure such as procurement and management servers. For example, for systems such as operation and maintenance that control low-frequency calls, financial costs can usually be saved by more than 90% and focus on the development of business logic, which can greatly improve the efficiency of development. for example, 10-minute online elastic high-availability image processing services are stable and highly available, and millisecond-level flexible scaling Rapid implementation of underlying capacity expansion to cope with peak pressure to provide log query, performance monitoring, alarm and other functions rapid troubleshooting fault function calculation meets automatic operation and maintenance
Function calculation gives users great freedom to implement custom functions, and once they encounter with custom automated operation and maintenance, they will have a different spark. The following is a comparison of traditional automatic operation and maintenance and function calculation in two different types of dimensions:
Cdn.com/0f65c67a428d69e3820851a2600ab8bbfb5f7cfc.png ">
Timing task sample scenario analysis timing task sample scenario 1
Some cloud service accounts acess key secret need to be changed regularly to ensure acess key secret security
Sample scenario 2 for scheduled tasks
Regularly check the exposed ports corresponding to your ecs to ensure security. For example, if your ecs is a web server, you may only need to expose port 80 to the outside world. If there is a loophole such as 0.0.0.0and0 that allows everyone to access it, you need to give an alarm or automatically fix it.
Function calculation Automation Operation and maintenance practice 1-timing Task event-driven sample scenario Analysis event-driven sample scenario 1
Suppose two ECS machines A, B, A have downtime, and you need to migrate the eip on machine A to standby machine B. you can use the alarm and function calculation of Cloud Monitor to realize the automatic migration of eip. Cloud Monitor detects the event of downtime, then triggers the execution of the function, and the function realizes the automatic migration of eip.
Function calculation Automation Operation and maintenance practice 2-event trigger eip automatic transfer event driven sample scenario 2
If a previous ecs restarts due to a system error, users may urgently do some verification or create snapshots. In the following actual combat, we automatically process a machine that restarts due to a system error instance or an instance error, such as creating a snapshot after a successful restart.
Function calculation Automation Operation and maintenance practice 3-event trigger automatically create snapshot summary
Use function calculation for automatic operation and maintenance, and visually manage and monitor the functions processed by automatic operation and maintenance. the operation of the function is flexible, highly available and safe. At the same time, on the event source of the driving function, Cloud Monitoring provides a wealth of events, and events are still being enriched (cloud product system event monitoring), rich events trigger custom processing functions, and highly available timers. All these can ensure that we can achieve more perfect automated operation and maintenance.
If you are interested in the application scenario of automatic operation and maintenance of function calculation, please click on this page, where we will continuously update relevant content and practical cases.
"Alibaba Cloud's native Wechat official account (ID:Alicloudnative) focuses on micro-services, Serverless, containers, Service Mesh and other technology areas, focuses on cloud native popular technology trends, and large-scale cloud native landing practices, and is the technical official account that best understands cloud native developers."
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.