Skip to content

Commit

Permalink
increasing pool mem
Browse files Browse the repository at this point in the history
  • Loading branch information
paigerube14 committed Dec 13, 2023
1 parent 1a5657d commit cb51b95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions start_cerberus.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def main(cfg):
cmd_timeout = config["tunings"].get("timeout", 60)
request_chunk_size = config["tunings"].get("kube_api_request_chunk_size", 250)
daemon_mode = config["tunings"].get("daemon_mode", False)
cores_usage_percentage = config["tunings"].get("cores_usage_percentage", 0.5)
# cores_usage_percentage = config["tunings"].get("cores_usage_percentage", 0.5)
if "database" in config.keys():
database_path = config["database"].get("database_path", "/tmp/cerberus.db")
reuse_database = config["database"].get("reuse_database", False)
Expand Down Expand Up @@ -190,7 +190,7 @@ def main(cfg):

# Variables used for multiprocessing
multiprocessing.set_start_method("fork")
pool = multiprocessing.Pool(int(cores_usage_percentage * multiprocessing.cpu_count()), init_worker)
pool = multiprocessing.Pool(int(multiprocessing.cpu_count()), init_worker)
manager = multiprocessing.Manager()
pods_tracker = manager.dict()

Expand Down

0 comments on commit cb51b95

Please sign in to comment.