Beruflich Dokumente
Kultur Dokumente
■ In the simplest terms, cloud computing means storing and accessing data and programs
over the Internet instead of your computer's hard drive. The cloud is just a metaphor for
the Internet. The cloud is also not about having a dedicated network attached storage
(NAS) hardware or server in residence.
■ The larger tasks are separated into a certain number of subtasks, to make the execution
time of each subtask of little difference as far as possible.
■ The quantity of resources allocated meets the demands of subtasks
■ Reasonably define the time during which the sub-tasks occupy the resources so that the
time spent on each subtask is of little difference.
■ Calculate Value of the Ant Colony Optimization and Improved OH_BAC. This value is
calculated based on jobs parameters. First of all, discuss the job parameters. Job parameter
include the Number of jobs, Number of Processing Element, Length of jobs /Total job size
(MB), File size which is to be Processed, Output size /size of each job.
■ Formula for calculate length of jobs = Number of job * File size of job
Algorithm used :Multi-objective task
scheduling algorithm
1.submit both VM’s list of successfully created VM’s in datacenter and task list to the broker.
2. created a received list of tasks.
3. created a received list of VM’s.
4. Non-dominated sorting(list of task)
i0
create a empty non-dominated list
dominated listlist of task
initially put 𝑡𝑎𝑠𝑘𝑖 in the non-dominated list
for all i1 to size of tasks list do
for all j0 to size of non-dominated list do
if 𝑡𝑎𝑠𝑘𝑗 dominates 𝑡𝑎𝑠𝑘𝑖 then
put 𝑡𝑎𝑠𝑘𝑗 into non-dominated set
else
if 𝑡𝑎𝑠𝑘𝑖 dominates 𝑡𝑎𝑠𝑘𝑗 then
put 𝑡𝑎𝑠𝑘𝑖 into non-dominated set
end if
else
if 𝑡𝑎𝑠𝑘𝑖 dominates 𝑡𝑎𝑠𝑘𝑗 into non-dominated set
end if
end for
end for
5. sort the list of task according to the non-dominated task set
6.sort the VM received list in descending order
7.j0.7
for all i0 to the size of tasks list do
if j>=0 then
Bind 𝑡𝑎𝑠𝑘𝑖 to the 𝑉𝑀𝑗 j++
If j==number of VM’s then
j=0
end if
end if
end for
Packages used:
■ import java.io.FileNotFoundException;
■ import java.io.FileOutputStream;
■ import java.io.IOException;
■ import java.io.PrintStream;
■ import java.text.DecimalFormat;
■ import java.util.ArrayList;
■ import java.util.Calendar;
■ import java.util.HashSet;
■ import java.util.LinkedList;
■ import java.util.List;
■ import org.cloudbus.cloudsim.Cloudlet;
■ import org.cloudbus.cloudsim.CloudletSchedulerSpaceShared;
■ import org.cloudbus.cloudsim.CloudletSchedulerTimeShared;
■ import org.cloudbus.cloudsim.Datacenter;
■ import org.cloudbus.cloudsim.DatacenterBroker;
■ import org.cloudbus.cloudsim.DatacenterCharacteristics;
■ import org.cloudbus.cloudsim.Host;
■ import org.cloudbus.cloudsim.Log;
■ import org.cloudbus.cloudsim.Pe;
■ import org.cloudbus.cloudsim.Storage;
■ import org.cloudbus.cloudsim.Vm;
■ import org.cloudbus.cloudsim.VmAllocationPolicySimple;
■ import org.cloudbus.cloudsim.VmSchedulerSpaceShared;
■ import org.cloudbus.cloudsim.VmSchedulerTimeShared;
■ import org.cloudbus.cloudsim.VmSchedulerTimeSharedOverSubscription;
■ import org.cloudbus.cloudsim.core.CloudSim;
■ import org.cloudbus.cloudsim.provisioners.BwProvisionerSimple;
■ import org.cloudbus.cloudsim.provisioners.PeProvisionerSimple;
■ import org.cloudbus.cloudsim.provisioners.RamProvisionerSimple;
■ import org.cloudbus.cloudsim.util.WorkloadFileReader;
Results obtained
conclusion
In this paper, the osmosis theory from the chemistry science is proposed to form osmotic
computing and find load balancing for VM placement by OH_BAC algorithm. OH_BAC applies
osmosis technique to provide energy efficient cloud computing environment. In OH_BAC
algorithm, ACO and ABC cooperate to select the best VM to migrate to the most suitable PM. In
addition, OH_BAC makes activation to the most suitable osmotic host among all PMs in the
system to decrease power consumption. The proposed algorithm has been simulated to
calculate the performance at various metrics in two experiments with fixed and variable loads.
■ The proposed algorithm has been simulated to calculate the performance at various metrics in
two experiments with fixed and variable loads. OH_BAC algorithm is compared with ACO, ABC,
H_BAC and host overloading detection algorithms. The simulation results showed that OH_BAC
improves energy consumption, SLAV, number of virtual machine migration, and the number of
hosts’ shutdowns when compared with other algorithms in fixed and variable loads. However,
OH_BAC has more SLATAH when compared with other algorithms but it is not affect the
performance of the considered cloud system.