Commit
·
ba775a4
1
Parent(s):
2b2a835
fix
Browse files- LoadBalancer.py +7 -0
LoadBalancer.py
CHANGED
@@ -290,6 +290,13 @@ class LoadBalancer:
|
|
290 |
print("Temporary JSON data is invalid. Skipping replacement.")
|
291 |
except Exception as e:
|
292 |
print(f"An error occurred while replacing store files: {e}")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
293 |
|
294 |
|
295 |
def download_film_to_best_instance(self, title):
|
|
|
290 |
print("Temporary JSON data is invalid. Skipping replacement.")
|
291 |
except Exception as e:
|
292 |
print(f"An error occurred while replacing store files: {e}")
|
293 |
+
|
294 |
+
#################################################################
|
295 |
+
|
296 |
+
def update_instances_health(self, instance, cache_size):
|
297 |
+
self.instances_health[instance] = {"used":cache_size["cache_size"],
|
298 |
+
"total": "50 GB"}
|
299 |
+
logging.info(f"Updated instance {instance} with cache size {cache_size}")
|
300 |
|
301 |
|
302 |
def download_film_to_best_instance(self, title):
|