abmargb / oursim-ext Goto Github PK
View Code? Open in Web Editor NEWAn extended version for the OurSim (OurGrid Simulator)
An extended version for the OurSim (OurGrid Simulator)
Grid configuration
Events configuration
Exception message:
Exception in thread "main" java.lang.NullPointerException
at br.edu.ufcg.lsd.oursim.events.peer.RequestWorkersEvent.forwardRequestToCommunity(RequestWorkersEvent.java:64)
at br.edu.ufcg.lsd.oursim.events.peer.RequestWorkersEvent.process(RequestWorkersEvent.java:52)
at br.edu.ufcg.lsd.oursim.OurSim.run(OurSim.java:65)
at br.edu.ufcg.lsd.oursim.Main.main(Main.java:30)
Grid config file
Job config file
This simulation is generating empty output
Grid configuration:
{
discoveryService: {id : "ds"},
peers: [{id: "peerA", discoveryService: "ds", workers:[
{id: "worker1A", cpu: "2"},
{id: "worker2A", cpu: "1.5"},
{id: "worker3A", cpu: "1.2"},
{id: "worker4A", cpu: "1"},
{id: "worker5A", cpu: "1.3"},
{id: "worker6A", cpu: "1.5"}
]},
{id: "peerB", discoveryService: "ds"}
],
brokers: [{id: "broker1A", peer: "peerA"}, {id: "broker2A", peer: "peerA"}, {id: "broker1B", peer: "peerB"}]
}
Exception message:
Exception in thread "main" java.lang.IllegalArgumentException: org.json.JSONException: JSONObject["workers"] not found.
at br.edu.ufcg.lsd.oursim.util.JSONUtils.getJSONArray(JSONUtils.java:37)
at br.edu.ufcg.lsd.oursim.factories.DefaultGridFactory.createPeer(DefaultGridFactory.java:141)
at br.edu.ufcg.lsd.oursim.factories.DefaultGridFactory.createGrid(DefaultGridFactory.java:61)
at br.edu.ufcg.lsd.oursim.OurSim.(OurSim.java:38)
at br.edu.ufcg.lsd.oursim.Main.main(Main.java:25)
Caused by: org.json.JSONException: JSONObject["workers"] not found.
at org.json.JSONObject.get(JSONObject.java:498)
at org.json.JSONObject.getJSONArray(JSONObject.java:574)
at br.edu.ufcg.lsd.oursim.util.JSONUtils.getJSONArray(JSONUtils.java:35)
... 4 more
Grid configuration:
{
discoveryService: {id : "ds"},
peers: [{id: "peerA", discoveryService: "ds", workers:[
{id: "worker1A", cpu: "2"},
{id: "worker2A", cpu: "1.5"},
{id: "worker3A", cpu: "1.2"},
{id: "worker4A", cpu: "1"},
{id: "worker5A", cpu: "1.3"},
{id: "worker6A", cpu: "1.5"}
]},
{id: "peerB", discoveryService: "ds", workers:[]}
],
brokers: [{id: "broker1A", peer: "peerA"}, {id: "broker2A", peer: "peerA"}, {id: "broker1B", peer: "peerB"}]
}
Events queue:
DS_UP 100 ds
WORKER_UP 300 worker1A
WORKER_UP 400 worker2A
WORKER_UP 400 worker3A
WORKER_UP 400 worker4A
WORKER_UP 400 worker5A
WORKER_UP 400 worker6A
BROKER_UP 500 broker1A
BROKER_UP 500 broker2A
BROKER_UP 500 broker1B
PEER_UP 800 peerA
PEER_UP 800 peerB
ADD_JOB 15000 broker1A {id:1 , tasks:[{duration:10000},{duration:1000}]}
ADD_JOB 100000 broker1B {id:1 , tasks:[{duration:10000},{duration:10000}]}
HALT 500000
Exception message
Exception in thread "main" java.lang.NullPointerException
at br.edu.ufcg.lsd.oursim.events.peer.accounting.AccountingHelper.getAccountingsByProvider(AccountingHelper.java:53)
at br.edu.ufcg.lsd.oursim.events.peer.accounting.AccountingHelper.commitReplicaAccountings(AccountingHelper.java:16)
at br.edu.ufcg.lsd.oursim.events.peer.FinishRequestEvent.process(FinishRequestEvent.java:32)
at br.edu.ufcg.lsd.oursim.OurSim.run(OurSim.java:65)
at br.edu.ufcg.lsd.oursim.Main.main(Main.java:32)
Involves NoF cases and preemption.
Currently, only workers' failures are treated.
This error occurs when the time to set up the broker that requests the "add_job" is the same time in "add_job" event
Exception in thread "main" java.lang.NullPointerException
at br.edu.ufcg.lsd.oursim.events.broker.AddJobEvent.process(AddJobEvent.java:34)
at br.edu.ufcg.lsd.oursim.OurSim.run(OurSim.java:65)
at br.edu.ufcg.lsd.oursim.Main.main(Main.java:31)
Network delay between a broker and a local worker should be different from the delay between itself and a remote worker.
Register every event in the event factory. Infer event constructor by reflection.
Finish, pause and resume.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.