In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces how to analyze blue-green release, grayscale release and rolling release in big data. The content is very detailed. Interested friends can use it for reference. I hope it will be helpful to you.
The biggest challenge facing application upgrade is to switch between new and old business, bringing the software from the final stage of testing to the production environment, while ensuring that the system provides uninterrupted services.
For a long time, business upgrade has gradually formed several publishing strategies: blue-green release, grayscale release and rolling release, in order to avoid traffic loss or service unavailability caused by publishing as much as possible.
I. Blue and green release
The project is logically divided into AB group. In the project system, group An is removed from the load balance to deploy the new version. Group B continues to provide services.
Finally, the upgrade of group B is completed, and the load balancer is reconnected to group B. at this time, the version of AB group has been upgraded and services are provided.
Characteristics
If something goes wrong, the scope of influence will be large.
The publishing strategy is simple
Users are unaware and have a smooth transition
Upgrade / rollback speed is fast.
Shortcoming
It is necessary to prepare more than twice as many servers as normal business resources to prevent the sudden failure of a single group to carry business during the upgrade.
Waste a certain cost of resources in a short time
There are no changes to the infrastructure to increase the stability of the upgrade.
Blue and green releases were expensive in the early era of physical servers, and the cost was greatly reduced due to the popularity of cloud computing.
Second, grayscale release
Grayscale release only upgrades part of the service, that is, some users continue to use the old version, and some users start to use the new version. If users have no problem with the new version, then gradually expand the scope and migrate all users to the new version.
Characteristics
To ensure the stability of the whole system, problems can be found and adjusted at the initial gray level, and the range of influence can be controlled.
The new features gradually assess performance, stability and health. If something goes wrong, the scope of impact is small and the relative user experience is small.
The user is unaware and has a smooth transition.
Shortcoming
High automation requirements
Deployment process
Remove the grayscale server from LB and join LB after the upgrade is successful.
A small amount of user traffic to the new version
If the grayscale server test is successful, upgrade the remaining servers.
Grayscale publishing is a process of gradually switching from one version to another by switching the route weights between the coexisting versions on the line.
III. Rolling release
Rolling release means that only one or more services are upgraded at a time, join the production environment after the upgrade is completed, and continue to perform this process until all the old versions in the cluster upgrade the new version.
Red: the instance being updated
Blue: instances that have been updated and joined the cluster
Green: running instance
Characteristics
Users are unaware and have a smooth transition
Save resources.
Shortcoming
Slow deployment time, depending on the update time of each phase
The publishing strategy is complicated.
Unable to determine the environment of OK, it is not easy to roll back.
Deployment process
Upgrade 1 copy first, mainly for deployment verification
Each time a copy is upgraded, it is automatically removed from the LB and automatically joined the cluster after the upgrade is successful.
Automatic update policy is required in advance, which is divided into several times, and the quantity / percentage of each time can be configured.
Rollback is the reverse process of release. It takes a long time to remove the new version from LB and then upgrade the old version.
High automation is required.
Big data on how to analyze blue and green release, grayscale release and rolling release to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
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.