Skip to content

Commit 29ac4d5

Browse files
committed
Update MigrationExample1 docs
Signed-off-by: Manoel Campos <[email protected]>
1 parent 7a22164 commit 29ac4d5

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/main/java/org/cloudsimplus/examples/migration/MigrationExample1.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@
6565
* 3 VMs with 2 PEs each one;
6666
* and 1 cloudlet by VM, each one having the same number of PEs from its VM.
6767
*
68-
*
6968
* <p>The example then performs VM migration using
7069
* a {@link VmAllocationPolicyMigrationBestFitStaticThreshold}.
7170
* Such a policy migrates VMs based on
@@ -79,7 +78,9 @@
7978
* Each cloudlet will start using 80% of its VM CPU.
8079
* As the VM 0 will run one Cloudlet and requires just 2 PEs from Host 0 (which has 4 PEs),
8180
* the initial Host CPU usage will be just 40% (1 VM using 80% of 2 PEs from a total of 4 Host PEs = 0.8*2 / 4).
81+
* </p>
8282
*
83+
* <p>
8384
* Allocating a second VM into Host 0 would double the Host CPU utilization,
8485
* overreaching its upper utilization threshold (defined as 70%).
8586
* This way, VMs 1 and 2 are allocated to Host 1 which has 5 PEs.
@@ -90,16 +91,16 @@
9091
* enable VM migration.
9192
* The example uses a {@link UtilizationModelDynamic} to define that CPU usage of cloudlets
9293
* increases along simulation time.
93-
* The first 2 Cloudlets all start with a usage of 80% of CPU,
94+
* The first 2 Cloudlets start with a usage of 80% of CPU,
9495
* which increases along the time (see {@link #CLOUDLET_CPU_INCREMENT_PER_SECOND}).
9596
* The third Cloudlet starts at a lower CPU usage and increases in the same way.
9697
* </p>
9798
*
9899
* <p>Some constants are used to create simulation objects such as
99100
* {@link DatacenterSimple}, {@link Host} and {@link Vm}.
100101
* The values of these constants were careful and accordingly chosen to allow:
101-
* (i) migration of VMs due to either under and overloaded hosts; and (ii)
102-
* the researcher to know exactly how the simulation will run
102+
* (i) migration of VMs due to either under and overloaded hosts;
103+
* and (ii) the researcher to know exactly how the simulation will run
103104
* and what will be the final results.
104105
* </p>
105106
*
@@ -108,7 +109,9 @@
108109
* (i) hosts CPU capacity and number of PEs,
109110
* (ii) VMs and cloudlets requirements and
110111
* (iii) even VM bandwidth (which defines the VM migration time).
112+
* </p>
111113
*
114+
* <p>
112115
* This way, if you want to change these values, you must
113116
* define new appropriated ones to allow the simulation
114117
* to run correctly.</p>

0 commit comments

Comments
 (0)