Azure Elasticity– Part 2

2 בינואר 2011

tags: ,
4 comments

In the last post I wrote about elasticity policy that defines when to change the number of instances.

In this post I will write about how to actually do that.

Let us say you have a service with 2 instances and you want to increment the number of instances by 1.

The simplest way to that is using the portal.

image

image

image

Well it is nice and easy but it is not automated. Maybe this is a good thing. Remember: More instances means more money to pay ! The fact that the process of creating an instance is not automated means that we stay in full control. On the other hand humans are slow and expensive and if there is no human around (weekends…) we might find ourselves with not enough computing resources for quite some time.

The second option is to use powershell 

image

The scripts to increment the number of instances would look something like this

$cert = Get-Item cert:\CurrentUser\My\CertName
$sub = "CCCEA07B-1E9A-5133-8476-3818E2165063"
$servicename = 'myazureservice'
$package = "c:\publish\MyAzureService.cspkg"
$config = "c:\publish\ServiceConfiguration.cscfg"

Add-PSSnapin AzureManagementToolsSnapIn

Get-HostedService $servicename -Certificate $cert -SubscriptionId $sub |
    Get-Deployment -Slot Production |
    Set-DeploymentStatus 'Running' |
    Get-OperationStatus -WaitToComplete

Get-HostedService $servicename -Certificate $cert -SubscriptionId $sub |
    Get-Deployment -Slot Production | 
            Set-DeploymentConfiguration {$_.RolesConfiguration["WebUx"].InstanceCount += 1}

To automate this you can spin a process that will run powershell yourscript.cmd .As I wrote in the last post you can create rules and monitor performance characteristics to decide when to run the script.

Another option is to use the management API.

The management API is a REST API that can be used to execute any management task that can be executed in the portal.

csManage is a command line tool that abstracts the API. This is a sample provided with Windows Azure Samples so you have the code. It is easy to convert this to a simple API that you can use in your project
you can read interesting post franksie wrote about csManage.

The last Option I would like to talk about is "Elasticity using tools".

Here we are in the beginning of the road… I imagine that many tools are being developed right now (Including System Center Support)

Igor Papirov pointed me to nice tools (but a little expensive) called AzureWatch that automate exactly what I described in these two posts. It will monitor the performance of your app and then it will spin new instances or kill existing instances according to your rules.

Well now it is for you to decide how to implement elasticity.

Enjoy

Manu

Add comment
facebook linkedin twitter email

כתיבת תגובה

האימייל לא יוצג באתר. (*) שדות חובה מסומנים

תגי HTML מותרים: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

4 comments

  1. witsrndmw18 ביוני 2012 ב 13:58

    They usually are a result of highly pigmented skin ailment that was learned from household inherited genes. http://besteyecreame.com/ – Find Out More As they age, this output fee lowers and the issue of these necessary protein is the skin tone reduce and wrinkly.

    This is a peptide. Assemble the two alongside one another and zip takes place.

    Add malt white wine vinegar above your own hair and rub down rid of it within the remaining hair. Regardless of whether you stayed up delayed cramming for the closing, used long bright day as well as cried your eyes out at the favored tearjerker motion picture, unpleasant totes, lines and under eye circles are not any food. Requesting the latest products and solutions for skin treatment requirements really many women invest their time with. Vision gels and eye treatments are two distinct healthy skin care products which can be used the skin about the eyes and is a wonderful basis of info to treat dermis. You'll find loads of dark range eyes lotions available on the market lately.

    Someone want merchandise that are going to assist you maintain skin color healthy and you aren't certain how you can go about selecting the right people? A light peeling item that will not include granules is kinder of the skin than an exfoliating wash.

    With regards to facial wrinkles usually there are some distinct components to use to aid thicken your sensitive skin and reduce facial lines and puffiness and the other stands better than what's left. Certainly, it does not take response action generates you facial lines. When searching for the most beneficial eye cream used to treat and forestall these standard issues, merely go to for finish descriptions with all the widely-made use of products out that you can buy right now. It's usually attributable to smooth retention. As well, they should also check out those compounds who are not suggested over these lotions like oil while others because they are not only useless but also dangerous to their themes.

    Hence, it ought to have a kind volume of Vitamin K-2 aside from other calming, moisturizing, in addition to lightening herbal plants. This post will reveal advice on the questions you will be thinking about as you conduct the research, such as ensuring that the critique is helpful adequate to determine, the recommendations for the product showcased are legitimate, and then finally, the real expenditures of the certain solution. Without a doubt a fast story. With your ex-girlfriend team jane is establishing a new product that is anticipated to be the subsequent finest wrinkle cream in the marketplace.

    Elevates the bottom engine. What on earth is far more unexpected is that, despite the fact that my merchandise were being required to keep going for a thirty days, I'm still using the same buy few months after.

    Special Beauty can be purchased in a 30-time package including a serum, disguise, the neck and throat ointment, upper body lotion, facial cleanser, nighttime ointment, working day creme SPF20, and eye cream. Also, all those handful of possibilities you are still having usually are not even useful anti-wrinkle eye ointments. These herbal antioxidants will reduce the wrinkle treatment though scaling down the skins telltale signs of aging.

    Region look like a -wrinkle magnetic because this is where many individuals start to acquire lines and wrinkles. To realize essentially the most natural looking and decreasing creases with powerful results, you should go with a method that thoroughly addresses the concerns you might have and a method that can address the main reason for the issue. Of course, they won't be as good as a centered assault for the facial lines or circles and, so, either can have an impact on fewer or harder to be effective.

    Eye wrinkles may add a long time for your look and which makes them disappear completely not just will increase your appearance, but in addition does magic for your self assurance. You simply can't get that from toxins. Why eyelasticity different from other eyes treatments is its capacity to handle the 3 sparks of eyes-maturing. Dermititis Initially, stay clear of trouble when detoxing the face and neck.

    The marketplace is filled with a number of organic skin care products. You know the way significantly seems may be an extremely significant a part of setting up a superior impression to people. Foreign exchange you will want to fix is a good facial lines.

    Use a little skinny stratum on the lotion towards epidermis around your eyes, once detoxification and cleansing your mind, and when you employ any compose on. This will likely fortify your skin and alleviate wrinkles, look down on collections and crow's legs.

    Related Sites

    http://www.bolec.info/index.php?op=forum&forum=9&act=newtopic – Discovery Youth Enhancing Eye Cream Substances That Lessen Facial lines
    http://www.ipsk.net/forum/posting.php?mode=post&f=23 – How to shed wrinkles under the eyes

    להגיב
  2. rrxpuiqnx28 ביוני 2012 ב 5:57

    In case you are suffering from dark circles through your eye it may be time for it to speak with a medical professional because the discoloration is often the result of troubles in your liver or hardworking liver http://theselfishgeek.com/index.php?title=Home_made_Colon_Cleanser_Therapies – Sneak A Peek At This Website. Beauty products lasts longer when placed in a very good dimly lit place or even the icebox. We're the first ones to confess that until ever before I didnt definitely make any hard work to accomplish whatever loving toward my skin dermis issues. At the same time you ought to get a lot of sleeping at night avoid scrubbing the eyes follow a sensible eating plan drink lots of water each day give up cigarettes cut down consumption of alcohol and the consumption of sea salt to enable the dark circles as silent as is possible.

    Lightly dive into the under-eye pores and skin with 1 or 2 fingertips to. So these are it just a few of the very best treatments for dark dark under eyes which you could try at your house. You have to have the willpower to consume enough slumber and eat good food which means that your human body can get rid of this skin-related problem. These feature some negative effects the worse a person in any other case performed correctly is loss of sight.

    Related Info

    להגיב
  3. Andrus19 במרץ 2013 ב 17:10

    I'm gone to tell my little brother, that he should also pay a visit this web site on regular basis to obtain updated from newest news.

    להגיב
  4. Weathers20 במרץ 2013 ב 13:28

    Of course, the cheapest reverse osmosis water filter can give fresh, pleasant tap water.
    Look to a variety of Internet sites to discover
    how new technology has eliminated many survival hardships.
    Water purification can be achieved by chemical implies.

    להגיב