Sort 38 Discussions, By:

Sorry, you do not have a permission to answer to this question.

  • himanshudongre 10 years ago + 2 comments

    The description of the problem states that the 1st part of the output should be (VMPLACEDBEGIN/VMPLACEDEND) and second should be (VMNOPLACEDBEGIN/VMNOPLACEDEND).However in all the examples we can only see (VMNOPLACEDBEGIN/VMNOPLACEDEND) and not (VMPLACEDBEGIN/VMPLACEDEND).e.g-In the first example I see that vm1 and vm2 were placed in host,but output does not show any (VMPLACEDBEGIN/VMPLACEDEND).It just shows that vm3 was not placed.Can someone explain this?

    Add Reply Preview cancel

    Sorry, you do not have a permission to answer to this question.

    • JageenShukla 10 years ago + 1 comment

      For the outout related question my guess is as below,
      there are two host
      host1,5,100
      host2,2,50

      and three vms
      vm1,1,50
      vm2,4,20
      vm3,1,80
      BUT flow of starting vm are vm1,vm3,vm2
      So, first vm1 will take host1 (having 5 cpu and 100 memory) so remaning resources are
      host1,4,50
      host2,2,50

      NOW, vm3 is ON but there is no host with 1 CPU and 80 memory so it will not fit
      Then vm2 is ON and there is host1 with 4 cpu and 50 memory so it will ho with host1,
      This way vm1 and vm2 will schedule but vm3 will not

      Add Reply Preview cancel

      Sorry, you do not have a permission to answer to this question.

      • 79man 10 years ago + 1 comment

        For three VMs:
        vm1,1,50
        vm2,4,20
        vm3,1,80
        and 2 hosts:
        host1,5,100
        host2,2,50


        I think all three can be placed, as shown below:-
        1. vm1 ON : place it on host2
          remaining resources are:-
          host1,5,100
          host2,1,0
        2. vm3 ON : place it on host 1
          remaining resources are:-
          host1,4,20
          host2,1,0
        3. vm2 ON : place it on host 1
          remaining resources are:-
          host1,0,0
          host2,1,0

        Isn't this right? What am I missing?
        I mean is there a rule that one host can only run one VM at a time?

        Add Reply Preview cancel

        Sorry, you do not have a permission to answer to this question.

        • DeadCereal 10 years ago + 0 comments

          You are correct, however for Problem 1, VMotion is set to off. So Each VM will be placed into the first Host that can fit it. VM1 will go on host 1, VM 3 won't be able to find anywhere to fit so it won't be placed, then VM 2 will be placed on host 2. For the other 2 scenarios, VMotion is turned on, so the cluster should load balance and all VMs should be placed.

          Add Reply Preview cancel

          Sorry, you do not have a permission to answer to this question.

      • mickeyvn 10 years ago + 1 comment

        Just print out the unplaced VMs.

        Add Reply Preview cancel

        Sorry, you do not have a permission to answer to this question.

        • hacker_9kk2z7t1 10 years ago + 0 comments

          Well this is not clear from the problem statement: "The first part of the file (VMPLACEDBEGIN/VMPLACEDEND) will be the name of the VM and the host it was placed on. The second part of the file (VMNOPLACEDBEGIN/VMNOPLACEDEND) will be the names of the VM's that you could not place."

          There is a mention of 2 parts of the output file, while all the samples seem to mention only the second part.

          The wording got me very confused.

          Add Reply Preview cancel

          Sorry, you do not have a permission to answer to this question.

      • kostadis 10 years ago + 0 comments

        FOLKS it was FUN! Signing off! Ask questions And I will respond!

        Add Reply Preview cancel

        Sorry, you do not have a permission to answer to this question.

        • kostadis 10 years ago + 1 comment

          Writign code with people watching is hard :-)

          Add Reply Preview cancel

          Sorry, you do not have a permission to answer to this question.

          • green_car 10 years ago + 0 comments

            If it has a chat window, it will be good. I was trying point out a syntax error. Now you corrected it :)

            Add Reply Preview cancel

            Sorry, you do not have a permission to answer to this question.

          • kostadis 10 years ago + 3 comments

            Hey folks,

            Just wanted to tell u all that I got injured and will do live solution next week. I am doing fine but can't really code for a week :(

            Sorry for the delay but life happened. i will try to answer questions

            You can find out more:

            midlifecrisistriathlete.kostadis.org

            if you want read my technical blog check out

            wrongtool.kostadis.com

            Add Reply Preview cancel

            Sorry, you do not have a permission to answer to this question.

            • mickeyvn 10 years ago + 0 comments

              Get well soon and post more challenges when you come back :)

              Add Reply Preview cancel

              Sorry, you do not have a permission to answer to this question.

              • ashish_nautiyal 10 years ago + 0 comments

                Hope you get well soon :)

                Add Reply Preview cancel

                Sorry, you do not have a permission to answer to this question.

                • Rashmi_Margani 10 years ago + 0 comments

                  Get well soon sir.................

                  Add Reply Preview cancel

                  Sorry, you do not have a permission to answer to this question.

                • sitangud 10 years ago + 1 comment

                  could you give us an overview of more complex load balancing algorithms used in practice :)?

                  Add Reply Preview cancel

                  Sorry, you do not have a permission to answer to this question.

                  • kostadis 10 years ago + 1 comment

                    Turns out that they all pretty simple :-) The trick is how much state do you have to look at before making a decision.

                    The problem with my solution is that I basically recomputed everything every time. A more realistic algorithm implementation would try to avoid that that.

                    Add Reply Preview cancel

                    Sorry, you do not have a permission to answer to this question.

                    • kostadis 10 years ago + 1 comment

                      Also it depends on how frequently you want to run. The more frequently you need to run, the simpler the algorithm. The more complex the less frequently.

                      Things you would consider to add complexity is history and prediction.

                      Add Reply Preview cancel

                      Sorry, you do not have a permission to answer to this question.

                      • kostadis 10 years ago + 0 comments

                        What makes VMWare' DRS really complex is that I assumed all CPU the same, and no rules about where VM's get placed.

                        Add Reply Preview cancel

                        Sorry, you do not have a permission to answer to this question.

                  1. Challenge Walkthrough
                    Let's walk through this sample challenge and explore the features of the code editor.1 of 6
                  2. Review the problem statement
                    Each challenge has a problem statement that includes sample inputs and outputs. Some challenges include additional information to help you out.2 of 6
                  3. Choose a language
                    Select the language you wish to use to solve this challenge.3 of 6
                  4. Enter your code
                    Code your solution in our custom editor or code in your own environment and upload your solution as a file.4 of 6
                  5. Test your code
                    You can compile your code and test it for errors and accuracy before submitting.5 of 6
                  6. Submit to see results
                    When you're ready, submit your solution! Remember, you can go back and refine your code anytime.6 of 6
                  1. Check your score