Worker role scale up and down manually

I have specific task that need to be done on random time (i cannot predict when). one task can take more than 5 min.
To be "cloud" compatible and "elasctic" ready, i don't want to have only 1 instance of this worker role but more dynamically when needed.
I ve created a "queue" with all the task that need to be done, because it was the solution i thoguth with the auto scalling of azure
But when i try to put it in place, my problem are the following :
1)with the auto scalling of worker role, it seems it doesn't start to evaluate directly and wait maybe 20 min before scale up the first time. it's not fully ok for me and i would like to have scaling directly.
2) one instance cannot be killed like this. The task can take more than 5 min ! (maybe 10 or 15). And in this case it's a big issue for me if one instance is randomly dropped. And i cannot can "put" somewhere the current data of the task to be proceeded
by someone else
My idea is that my instance "0" create other instance if it see that the number of task on the queue is big
AND, it's the instance created (so not the 0!) that kill itself when he has finished and see there is nothing else to do
Is it possible ? I don't find documentation about that.

Hi,
If you use auto scaling add a worker role, it spend 20 min before scale up the first time, this 20 min may be used to build azure worker role instance. so we need a metrics to let worker role prepared in advance, for example, in the case of Cloud services,
if CPU exceeds a defined threshold in your rule, auto scaling will add additional instances to handle the increased load.  When CPU drops below a defined threshold, auto scaling will remove those extra instances.  It’s this kind of elasticity that
makes cloud computing so compelling.
 See more at:http://rickrainey.com/2013/12/15/auto-scaling-cloud-services-on-cpu-percentage-with-the-windows-azure-monitoring-services-management-library/
Best Regards
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • HT201406 IOS7 installed OK to my iPhone 4S and worked OK for a while but I have somehow managed to completely jam my iPhone 4s. The touch screen won't work except for up and down gestures (some of the time). I can't make or answer calls, I can't even powe

    IOS7 installed OK to my iPhone 4S and worked OK for a while but I have somehow managed to completely jam my iPhone 4s. The touch screen won't work except for up and down gestures (some of the time). I can't make or answer calls, I can't even power if off. I can't access the hardward ID which Apple support seems to require for Chat.
    It might have happened when I was accessing my camera bypassing the lock screen!
    All I know is that the thing is now useless and it looks like I will have to wait for the battery to run down to see if powering it back up afterwards will solve the problem.

    I have since discovered the "hold down home key and power button" together for a few seconds and this seems to have worked .... phew!

  • Video scale up and down suggestions

    Please help me form some basic coding plan for scaling up and down the video at run time when I
    open a digital scrap book.
    The idea is very simple.. I have a Digital Interactive scrap book which will flip to the page which has the event housed on that page and will show a Thumbnail of the event. In the meantime the Loader will keep loading the movie file and show a progress bar. Once when the loader is done with, I want the Video to scale up to the size of the Stage and then play the video and once the file has reached the end it should scale down the video and go back to the Index page-the home page whioch started this..
    Please help me sir, as I am not good with action script but wit your guidance I will make all efforts.
    Thanks

    You can just tween the width and height of FLVPlayback to the stage width and height and move the position to (0, 0).

  • The trackball on my Lenovo laptop does not work to move up and down pages on the Firefox Beta. Can I enable this

    The problem started when I downloaded the Firefox Beta version 4. I have just upgraded to version 5 and I am still having the problem. I have a center button on mouse pad that allows me to move up and down pages without clicking on the sidebar,

    Try this: <br />
    Type '''about:config''' in the URL bar and hit Enter. <br />
    ''If you see the warning, you can confirm that you want to access that page.''
    '''''Filter''''' = '''trackpoint'''<br />
    '''''Pref''''' = '''ui.trackpoint_hack.enabled''' <br />change that from -1 to 1. <br />Restart Firefox.

  • Page Up and Down with space bar

    After I installed Safari 3.0.5, when I press the space bar typing this post, the web page goes down. I want to know if somebody else get the same problem, and how do I prevent that? or maybe is a new bug.
    With Safari 3.0.4 this keyboard shortcut works ok. (page up and down) but not when typing.
    Thanks,

    I have the same problem. Everytime i hit the spacebar in this text box, the browser tries to scroll down and looks like flashing.
    Is there any fix for this? It happens in every web page with text box (including the google search box).
    Thanks in advance.
    (I am using the safari version for Windows)

  • Unexpected recycling of worker role

    Hi all
    I've deployed a worker role to Azure and it ran smoothly from February 3rd to February 25th.
    On February 26th, the worker role was "silently" recycled.
    I would like to understand what happened and if there are scheduled recycling operations or specific conditions triggering a recycle.
    The VM was operating normally for both CPU and memory. I couldn't find any error in Event viewer or in stored diagnostics.
    This is the only useful message (WAHostBootstrapper.log):
    [00002252:00003224, 2015/02/26, 03:52:06.491, INFO ] Sending shutdown notification to client DiagnosticsAgent.exe (2248).
    [00002252:00003224, 2015/02/26, 03:52:06.491, INFO ] Sending shutdown notification to client WaWorkerHost.exe (2904).
    Thanks
    Francesco

    Hi Francesco,
    Is your worker role instances in recycling status currently? Which region did you host your  cloud service?
    I saw some mantance log about cloud service /VM from Azure Status dashboard (http://azure.microsoft.com/en-us/status/#history ):
    Virtual Machines \ Service Management and Cloud Services \ Service Management - West Europe - Advisory
    This incident has now been mitigated. From 26 FEB, 2015 23:00 to 27 FEB, 2015 08:15 UTC a subset of customers using Cloud Services \ Service Management and Virtual Machines \ Service Management in West Europe might have seen failures when attempted to
    create new VMs or to restart their existing VMs.
    If you always have this issue, please let me know.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Scaling up and down BufferedImages by percent?

    Hi, I have a BufferedImage and I would like to know the exact syntax to scale up and down an image by percentage. Basically I want to scale the BufferedImage by a specific percentage like scale down to 50% or scale up to 150%. Anyone know any methods to do so? If I can use a specific library then which library can I use and how to use it(clear syntax like: profileImage.scale(50);)
    I read an image using the following:
    BufferedImage profileImage = ImageIO.read (new File ("Image.bmp"));And I would appreciate if the libraries imported are posted too. Thanks
    Edited by: Taufiq on Feb 26, 2008 2:54 PM

    Demo:
    import java.awt.*;
    import java.awt.geom.*;
    import java.awt.image.*;
    import java.io.*;
    import java.net.*;
    import javax.imageio.*;
    import javax.swing.*;
    public class ImageResizingExample {
        public static void main(String[] args) throws IOException {
            URL url = new URL("http://blogs.sun.com/jag/resource/JagHeadshot-small.jpg");
            BufferedImage image = ImageIO.read(url);
            if (image == null) throw new NullPointerException();
            Image smaller = scaledInstance(image, 0.5);
            BufferedImage blurry = rescaled(image, AffineTransformOp.TYPE_NEAREST_NEIGHBOR, 1.5);
            BufferedImage better = rescaled(image, AffineTransformOp.TYPE_BICUBIC, 1.5);
            display(image, smaller, blurry, better);
        static Image scaledInstance(BufferedImage im, double factor) {
            int w = (int) (im.getWidth() * factor);
            int h = (int) (im.getHeight() * factor);
            return im.getScaledInstance(w, h, Image.SCALE_AREA_AVERAGING);
        static BufferedImage rescaled(BufferedImage im, int hint, double factor) {
            AffineTransform xform =  AffineTransform.getScaleInstance(factor, factor);
            return new AffineTransformOp(xform, hint).filter(im, null);
        static void display(final Image... images) {
            EventQueue.invokeLater(new Runnable(){
                public void run() {
                    JPanel cp = new JPanel(new GridLayout(0,2, 5, 5));
                    for(Image image : images) {
                        cp.add(new JLabel(new ImageIcon(image)));
                    JFrame f = new JFrame("ImageResizingExample");
                    f.setContentPane(cp);
                    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                    f.pack();
                    f.setLocationRelativeTo(null);
                    f.setVisible(true);
    }

  • Make object fit browser window when scaling it up and down?

    I want to add a flip book on my page. But i want it to scale up and down, so it will fit both a 13" screen as well as a 27" screen. Is this even possible?

    Hi,
    Please take a look at this for a similar discussion : https://forums.adobe.com/message/6264647#6264647
    Regards,
    Aish

  • Up and Down Arrow Keys Not Working

    I have had the HP Pavilion g6t-1b00 CTO Notebook PC for a year or two now. I've been having a couple of problems with internet connectivity and putting my computer on "sleep".
    However, few days ago, my keyboard randomly started acting weirdly. When I would try to type certain letter/numbers, they would come out differently. 
    Ex. pressing the space bar would show up " ./M" instead
    I tried restarting my computer many times and installed a BiOS update which fixed all of my issues except for my up and down arrow keys. As of now, they have no function; I can't scroll with them and they don't seem to be taking on the role of another key. I have tried using the keys on different programs. Using the touch pad to scroll works but I still can't use the up and down keys.
    Is there anyway to get the up and down arrow keys to work again?
    This question was solved.
    View Solution.

    Hello Larasoft,
    I understand you’re up and down arrow keys are not functioning, is that accurate? I will do all I can to help you with this issue.
    I want you to access the setup menu to test the keys out, see instructions below.
    1.       Shut down the computer.
    2.       Locate the F10 key across the top.
    3.       When you turn the computer back on immediately start tapping the F10 key repeatedly.
    4.       If successful you should be on setup utility screen. What’s different about this is you can only use you arrow keys to navigate.  
    5.       Try working the arrow keys  up and down on different menus and see if they work.
    6.       Once you tested it press F9 to setup defaults and then press F10 to save and exit.
    If I have been helpful or if you’d like to say thanks you can click the white star under my name to give me Kudos.  I really appreciate it.
    Please respond at your earliest convenience with you results.
    Thanks
    Clicking the White Kudos star on the left is a way to say Thanks!
    Clicking the 'Accept as Solution' button is a way to let others know which steps helped solve the problem!

  • What are Azure limitations for Websockets in Cloud Services (web and worker role)?

    A WebSocket Server should be built on Azure platform with OnPrem connections and have questions regarding limitations for Websockets in Azure Cloud Services - web and worker roles.
    Websockets can be configured for Web Sites and limitations are understood, but Azure Websites is not an option. 
    Nevertheless it is planned to run a web service (without UI - no web site) as a Cloud service which has secure websocket (WSS) connections to OnPrem machines. Websocket protocol is enabled for IIS8 on Cloud services web and worker roles. Azure Service Bus Relay
    is not an option.
    Questions:
    1) Are Websockets supported for Azure Cloud services web and worker roles? we assume yes
    2) What are potential limitations from Azure side to support concurrent Websocket connections? We are aware that CPU, memory etc are limitations, but are there additional limitations from MS Azure side? 
     

    Hi,
    As I know, azure cloud service web and worker role support Websockets, users can connect to the role via the special endpoint, if we use Azure cloud service, I think we can monitor the metrics such as CPU, memory, etc... and scale our cloud service via these
    metrics to keep the websockets working, refer to
    http://azure.microsoft.com/en-us/documentation/articles/cloud-services-how-to-scale/ for more information about how to scale a cloud service.
    Regards

  • August 2014 Scheduled Maintenance - Are Web and Worker Roles affected?

    Are Web and Worker Roles affected by the Scheduled Maintenance that will be performed on Aug 2, 2014?  The email that I received from Microsoft Azure states that it will affect VMs and Cloud Services and goes on to say how to keep your VMs available
    despite the maintenance by setting up Availability Sets for VMs, but does not mention a strategy for Web and Worker roles.
    What am I missing here?

    Hello Farid_Azure,
    Yes, the Web and Worker Roles are also affected by the scheduled maintenance as the web roles and worker roles are residing on the hardware that will go on maintenance.
    The Cloud Service deployments will also reboot during the maintenance. You can increase the number of instances running for your web roles and worker roles to avoid being affected:
    http://azure.microsoft.com/en-us/documentation/articles/cloud-services-how-to-scale/#manualscale
    I hope that this answers your question.
    Thanks,
    Syed Irfan Hussain

  • What happens when Azure Worker Role VM goes down in middle of a computation process

    Hi,
    I wanted to know what happens if the Azure Fabric controller decides to bring down an Azure Worker Role VM during a computation process within the worker role ? Does the new VM that FC spins up start from the same place where it left off (when the VM
    was brought down). As per my understanding, answer is "NO" because an Azure VM is stateless. If we want that the new VM starts from the same place where it left off, we need to save the state and read it from there, when the VM starts (probably
    somewhere in the RoleEntryPoint class).
    can someone please confirm my understanding ?

    Hi,
    You are right.
    Azure PaaS instances are stateless. 
    If the instance that is just configured were to fail and Azure spun up a replacement instance, all the work that you have done would not carry over.  
    To know more about it, you might want to refer to the link provided below
    http://azure.microsoft.com/en-us/documentation/articles/fundamentals-application-models/
    (Refer To Section : Cloud Services )
    Hope this helps !
    Regards,
    Sowmya

  • Scaling of VM Roles and Worker Roles, why divide by total?

    I am trying to tweak with the auto-scale settings and it is my understanding that the CPU load is divided among the total number of instances within the Role.
    I get this in concept. 
    However, what I am seeing is that if I have two instances in my availability group, and I have one instance running.  That if I set the CPU load slider too high, my new instance never turns on / provisions.
    It is as if the calculation is always averaging among the total possible - therefore if one is at 100% CPU, then that equates to 50% CPU.  And if my slider is set to 60%, my second VM never turns on. (I left it running all night this way once to see).
    Where what I think the slider should mean is that I never want a single instance to go beyond 60% utilization, if it does then give me another instance.
    Am I following this properly?
    Since I only have the scaling metric of CPU (since I don't have a Service Bus queue) I have to use it wisely and make sure that it reacts when appropriate - and in my case I might want it to scale out at 40% to ensure that there is no negative
    user experience.
    And right now, I am not seeing that I can make that happen.
    Brian Ehlert<br/> http://ITProctology.blogspot.com<br/> Learn. Apply. Repeat. <br/&gt

    hi
    autoscaling per CPU is compared with the average CPU usage of all instances of the role.
    so if you set the bottom bar is 20% and have 2 instances running there with CPU usage 37% and 4%, azure fabrci will autoscale it to 3 instances, because average cpu is 20.5% and beyond the bottom bar.
    actually, autoscaling based on cpu works as below:
    All instances are included when calculating the average percentage of CPU usage and the
    average is based on use over the previous hour. Depending on the number of instances that your application is using, it can take longer than the specified wait time for the scale action to occur if the wait time is set
    very low.
    As a result, if you have an app that is at 0% load, and then start running a load test to make it go to 100% (and have a scale-up target of 80%) it will take at least 45 minutes before
    the scale action will start. However, this is not a typical real-world scenario. It’s more likely that your load is already high (say 75%). In this scenario, it would take much less time to trigger the scale action.
    One of the reasons that we do an hourly average is, with the current platform, it’s impossible to get metrics from Virtual Machines  or Cloud Services under a 15 minute latency.
    So, if we scaled based just on the last 5 or 10 minutes, we would never have data to scale on. You can see this in the screenshot below, it was taken around 5:30, but the most recent data point is at 5:15.
    In the future, the azure platform is looking at ways to speed up metric collection, but this is likely not coming for quite some time. As a result, the best we can do is a rolling
    average over a larger time window.
    let me know if there is any question.
    best regards
    Jian

  • Is this the best design for asynchronous notifications (such as email)? Current design uses Web Site, Azure Service Bus Queue, Table Storage and Cloud Service Worker Role.

    I am asking for feedback on this design. Here is an example user story:
    As a group admin on the website I want to be notified when a user in my group uploads a file to the group.
    Easiest solution would be that in the code handling the upload, we just directly create an email message in there and send it. However, this seems like it isn't really the appropriate level of separation of concerns, so instead we are thinking to have a separate
    worker process which does nothing but send notifications. So, the website in the upload code handles receiving the file, extracting some metadata from it (like filename) and writing this to the database. As soon as it is done handling the file upload it then
    does two things: Writes the details of the notification to be sent (such as subject, filename, etc...) to a dedicated "notification" table and also creates a message in a queue which the notification sending worker process monitors. The entire sequence
    is shown in the diagram below.
    My questions are: Do you see any drawbacks in this design? Is there a better design? The team wants to use Azure Worker Roles, Queues and Table storage. Is it the right call to use these components or is this design unnecessarily complex? Quality attribute
    requirements are that it is easy to code, easy to maintain, easy to debug at runtime, auditable (history is available of when notifications were sent, etc...), monitor-able. Any other quality attributes you think we should be designing for?
    More info:
    We are creating a cloud application (in Azure) in which there are at least 2 components. The first is the "source" component (for example a UI / website) in which some action happens or some condition is met that triggers a second component or "worker"
    to perform some job. These jobs have details or metadata associated with them which we plan to store in Azure Table Storage. Here is the pattern we are considering:
    Steps:
    Condition for job met.
    Source writes job details to table.
    Source puts job in queue.
    Asynchronously:
    Worker accepts job from queue.
    Worker Records DateTimeStarted in table.
    Queue marks job marked as "in progress".
    Worker performs job.
    Worker updates table with details (including DateTimeCompleted).
    Worker reports completion to queue.
    Job deleted from queue.
    Please comment and let me know if I have this right, or if there is some better pattern. For example sake, consider the work to be "sending a notification" such as an email whose template fields are filled from the "details" mentioned in
    the pattern.

    Hi,
    Thanks for your posting.
    This development mode can exclude some errors, such as the file upload complete at the same time... from my experience, this is a good choice to achieve the goal.
    Best Regards,
    Jambor  
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How do I know if my Edge Animate compositions will scale up or down to fit each mobile phone platform's resolution? iPhone 3s, 4, 4s, 5, and 5s all have different resolutions. Do I use .png or svg?

    I want to use Edge Animate to create native app in PhoneGap Build. How do I know if my Edge Animate compositions will scale up or down to fit each mobile phone platform's resolution? iPhone 3s, 4, 4s, 5, and 5s all have different resolutions. And do I use .png or svg?

    If you use responsive scaling it will definitely scale .
    For best practises regarding graphics refer
    Edge Animate Help | Best practices for graphics in Adobe Edge Animate

Maybe you are looking for