Question

In: Computer Science

2. Compare the two deployment strategies presented in Chapter 6 (All-or-nothing deployment, Partial Deployment) in terms...

2. Compare the two deployment strategies presented in Chapter 6 (All-or-nothing deployment, Partial Deployment) in terms of their cost and complexity.

Solutions

Expert Solution

All or nothing deployment :In an all-or-nothing process: at the end of the deployment either all of the virtual machines (VMs) running a service have had the upgraded version deployed or none of them have.

There are two types of all or nothing deployment.

1) Blue Green deployment:A blue/green deployment is a change management strategy for releasing software code. Blue/green deployments, which may also be referred to as A/B deployments require two identical hardware environments that are configuredexactly the same way. While one environment is active and serving end users, the other environment remains idle.

Cost and complexity- This strategy is conceptually simple, but has some disadvantage:

-It is expensive in terms of both VM and software licensing costs.
-The provisioning of the N VMs containing version B prior to terminating all version A VMs is the source of the cost. For this period of time, the VM-based cost doubles.
-The provisioning of the hundred (or more) new VMs (even if it can be done in parallel) hundreds of VMs can be time-consuming.
-Long-running requests and stateful data during the switch-over and rollback require special care.

2)Rolling upgrade deployment:A rolling upgrade consists of deploying a small number of version B VMs at a time directly to the current production environment, while switching off the same number of VMs running version A. For example, we deploy one version B VM at a time. Once an additional version B VM has been deployed and is receiving requests, one version A VM is removed from the system. Repeating this process N times results in a complete deployment of version B.

Cost and complexity-This strategy is inexpensive but more complicated. It may cost a small number of additional VMs for the duration of the deployment, but again introduces a number of issues of consistency and more risks in disturbing the current production environment.
-The additional cost of a rolling upgrade can be low if you conduct your rolling upgrade when your VMs are not fully utilized, and your killing of one or a small number of VMs at a time still maintains your expected service -It may cost a bit if you add a small number of VMs before you start the rolling upgrade to mitigate the performance impact and risk of your rolling upgrade.
-During a rolling upgrade, one subset of the VMs is providing service with version A, and the remainder of the VMs are providing service with version B. This creates the possibility of failures as a result of mixed versions.

Partial Deployment: It is of two types-

1)Canary testing-In software testing, a canary (also called a canary test) is a push of programming code changes to a small number of end users who have not volunteered to test anything. The goal of a canary test is to make sure code changes are transparent and work in a real world environment.

Cost and commplexity: The mechanism for performing the canary tests depends on whether features are activated with feature toggles or whether services are assumed to be forward or backward compatible. In either case, a new feature cannot be fully tested in production until all of the services involved in delivering the feature have been partially deployed.

Messages can be routed to the canaries by making the registry/load balancer canary-aware and having it route messages from the designated testers to the canary versions. More and more messages can be routed until a desired level of performance has been exhibited.

If new features are under the control of feature toggles, then turning on the toggle for the features on the canary versions activates these features and enables the tests to proceed.
If the services use forward and backward compatibility, then the tests will be accomplished once all of the services involved in a new feature have been upgraded to the new version.
In either case, you should carefully monitor the canaries, and they should be rolled back in the event an error is detected.
2)A/B Testing - AB testing is essentially an experiment where two or more variants of a page are shown to users at random, and statistical analysis is used to determine which variation performs better for a given conversion goal.

Cost and complexity: Implementing A/B testing is similar to implementing canaries. The registry/ load balancer must be made aware of A/B testing and ensure that a single customer is served by VMs with either the A behavior or the B behavior but not both. The choice of users that are presented with version B (or A) may be randomized, or it may be deliberate. If deliberate, factors such as geographic location, age group (for registered users), or customer level (e.g., "gold" frequent flyers), may be taken into account.


Related Solutions

Review the various strategies and methods for coping with stress presented in Chapter 14 on the...
Review the various strategies and methods for coping with stress presented in Chapter 14 on the topic Health and wealth being. Write a brief essay in which you describe at least four coping methods and identify which of them you use, when you use them, and how effective you find them to be. Use concepts from the entire chapter (e.g. problem-focused coping, opening up, social support, etc)- not just Table 14.3. In addition, comment on any changes that you might...
6.a) In terms of wavelength, frequency and energy compare the two photons with wavelengths of 900...
6.a) In terms of wavelength, frequency and energy compare the two photons with wavelengths of 900 nm and 780 nm. b) What are the emission spectra of an element? c) How are the emission spectra of an element produced? d) How did Bohr (quantum theory) explain the emission (line) spectra of hydrogen?
chapter 2- Reinforcement and bribery are often confused. Using behavior analytic terms, compare the differences while...
chapter 2- Reinforcement and bribery are often confused. Using behavior analytic terms, compare the differences while showing the roles contingency, intentionality, and individualization play. Display your analysis through an example.
Choose 2 (TWO) of the following PAIRS of terms related to PLANTS to compare and contrast...
Choose 2 (TWO) of the following PAIRS of terms related to PLANTS to compare and contrast (this means that you need to explain both shared features and distinguishing features in the pair). You also need to include at least ONE specific phylum for each term. For example: microgametophyte and megagametophyte: These terms refer to organisms found in the 4 phyla of the the Gymnosperms and the Anthophyta in the plant Kingdom. The microgametophyte is contained within the pollen grain and...
Compare and contrast McFague's argument in chapter 6 of Subverting Greed with Solomon's argument in Chapter...
Compare and contrast McFague's argument in chapter 6 of Subverting Greed with Solomon's argument in Chapter 5 of Subverting Greed.
1. Identify, define and give an example of two emotion regulation strategies. 2. Describe, compare, and...
1. Identify, define and give an example of two emotion regulation strategies. 2. Describe, compare, and contrast the James-Lange, Cannon-Bard, and Schachter-Singer theories of emotion. The thrifty gene hypothesis is an evolutionary perspective on: Question 6 options: A) obesity that proposes natural selection favored individuals with a highly efficient metabolism. B) obesity that proposes natural selection favored individuals with an inefficient metabolism. C) anorexia that proposes natural selection favored individuals who could survive long periods with minimal food intake D)...
epithelial, connective and muscle tissue. Compare all tissues and contrast the two specific tissues in terms...
epithelial, connective and muscle tissue. Compare all tissues and contrast the two specific tissues in terms of how their form fits their function.
A researcher studied how two diets compare in terms of weight loss after 6 months. 40...
A researcher studied how two diets compare in terms of weight loss after 6 months. 40 people used the first diet. Their sample mean was 44, and their sample standard deviation was 10. 60 people used the first diet. Their sample mean was 37, and their sample standard deviation was 15. a) Give the 92% confidence interval for the true difference between the mean weight losses. b) Can we conclude that the two diets really differ in terms of the...
The first part of the case, presented in Chapter 6, dis- cussed the situation of Computron...
The first part of the case, presented in Chapter 6, dis- cussed the situation of Computron Industries after an expansion program. A large loss occurred in 2015, rather than the expected profit. As a result, its man- agers, directors, and investors are concerned about the firm’s survival. Jenny Cochran was brought in as assistant to Gary Meissner, Computron’s chairman, who had the task of getting the company back into a sound financial position. Computron’s 2014 and 2015 balance sheets and...
CHAPTER 6 CORPORATE-LEVEL STRATEGY CHAPTER 7 ACQUISITION AND RESTRUCTURING STRATEGIES MITSloan Management CEMEX: Globalization “the CEMEX...
CHAPTER 6 CORPORATE-LEVEL STRATEGY CHAPTER 7 ACQUISITION AND RESTRUCTURING STRATEGIES MITSloan Management CEMEX: Globalization “the CEMEX way” Donald R. Lessard and Cate Reavis 1. As we read in Chapters 6 &7, mergers & acquisitions are a major form of corporate diversification strategy. Using the lecture slides on Chapter 7, identify and discuss the top three reasons why most (50-60%) of acquisitions fail to create shareholder value. 2. What are the five major components of “CEMEX Way” and why has this...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT