Skip to content

toebbel/StorageCloudSim

Repository files navigation

StorageCloudSim

Build Status

This is an extension to to existing toolkit CloudSim. Features for modeling and simulation of Storage as a Service (STaaS) Clouds were added. The currently available documentation can be found in the source code (java doc) and in the bachelor thesis, that will be linked in the near future here.

Status

More work to be done ... To be continued

Requirements

Patched Cloudsim

Since the original Cloudsim 3.0.3 misses a method for retrieving bandwidth information from the network topology, we patched the original version and included it for convenience. The actual diff is inside the cloudsim source directory.

Build the Project

We provided tasks in the ant build file to bootstrap ivy if oyu have not installed it. Ivy will fetch all dependencies for you :)

ant init-ivy

After doing this, just type any of these commands to build/test/run the project. Use the jar command to generate stand-alone jar files (simulation jar and generator tools).

ant compile
ant jar
ant test
ant run

Getting Started

Before you can run a simulation, you have to set up a scenario (or you use the default scenario that we provided in the 'test-data' folder). To run a scenario, first build the StorageCloudSim jar and then run it from the project root:

java -jar build/jar/StorageCloudSim.jar -i test-data -o out

Creating a Cloud model

Cloud models are defined as XML files. You will pass these models into the StorageCloudSim.jar, when you start the simulation. Use the CloudGenerator to generate a fresh XML file or modify one of the provided examples. The jar file will be generated when you use the '''ant jar''' command. To see all parameters type java -jar CloudGenerator.jar -h

We used the following commands to generate the example cloud: java -jar CloudGenerator.jar --name RainyCloud -rootUrl rainy.org --location de --servers 3 --disks 3 That will generate a cloud that has 3 servers where each has 3 disks and each of them has 1 TB capacity, which makes a total capacity of 9TB.

Remember: Whenever you should amend one of the following models, you have to re-generate the XML files so they can be parsed: CDMICloudCharacteristics, pricingPolicy, objectStorageServerModel, objectStorageDiskModel, ioLimits.

Creating UsageSequences

A UsageSequence is a sequence of requests that might depend on each other (a download can only happen, when you uploaded that file before by the same Cloud user). Sequence generators produce such sequences and store them as XML, so one scenario can be replayed multiple times. Since you have your own idea of your sequences, you should amend the generator. There are two: SimpleSequenceFileGenerator and SequenceFileGenerator. I recommend to have a look at the first one, because it covers all the basic steps you'll need to have some sequences to start with. Look at the XML output to try to understand their purpose. I also recommend to have a look in the thesis, page 23. The simple generator takes two arguments: output folder and number of sequences to generate. Each sequence will produce a total of 25GB in traffic, where files inside each sequence vary from 1KB to 10GB.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages