everything random simulation done
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
from clients import Client
|
||||
from apps import Application, ApplicationModule
|
||||
from bucketresources import BucketResource, BucketResource
|
||||
from stats import Stats
|
||||
from datacentre import Datacentre
|
||||
|
||||
@@ -17,4 +15,15 @@ class Scheduler:
|
||||
def runsimulation(self):
|
||||
for i in range(self.simulationLength):
|
||||
for currclient in self.clients:
|
||||
pass
|
||||
print(f"Edge status: CPU used: {self.edge.processingpower.currentUsage}\
|
||||
BW used: {self.edge.uplink.currentUsage}")
|
||||
print(f"Cloud status: CPU used: {self.cloud.processingpower.currentUsage}\
|
||||
BW used: {self.cloud.uplink.currentUsage}")
|
||||
if not currclient.firerequest(self.edge, self.cloud, i):
|
||||
self.failedClients.append(currclient)
|
||||
if i not in self.statsModule.failedDetails:
|
||||
self.statsModule.failedDetails[i] = 1
|
||||
else:
|
||||
self.statsModule.failedDetails[i] += 1
|
||||
self.cloud.releaseall()
|
||||
self.edge.releaseall()
|
||||
|
||||
Reference in New Issue
Block a user