Skip to content

Commit

Permalink
tweaking secondary on public server
Browse files Browse the repository at this point in the history
  • Loading branch information
sgoggins committed Apr 30, 2024
1 parent 6405d96 commit e294a5e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions augur/application/cli/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def determine_worker_processes(ratio,maximum):
sleep_time += 6

#60% of estimate, Maximum value of 45
core_num_processes = determine_worker_processes(.1, 5)
core_num_processes = determine_worker_processes(.1, 1)
logger.info(f"Starting core worker processes with concurrency={core_num_processes}")
core_worker = f"celery -A augur.tasks.init.celery_app.celery_app worker -l info --concurrency={core_num_processes} -n core:{uuid.uuid4().hex}@%h"
process_list.append(subprocess.Popen(core_worker.split(" ")))
Expand All @@ -179,7 +179,7 @@ def determine_worker_processes(ratio,maximum):
sleep_time += 6

#15% of estimate, Maximum value of 20
facade_num_processes = determine_worker_processes(.15, 10)
facade_num_processes = determine_worker_processes(.15, 1)
logger.info(f"Starting facade worker processes with concurrency={facade_num_processes}")
facade_worker = f"celery -A augur.tasks.init.celery_app.celery_app worker -l info --concurrency={facade_num_processes} -n facade:{uuid.uuid4().hex}@%h -Q facade"

Expand Down
6 changes: 3 additions & 3 deletions augur/application/cli/collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,21 +125,21 @@ def determine_worker_processes(ratio,maximum):
sleep_time += 6

#60% of estimate, Maximum value of 45
core_num_processes = determine_worker_processes(.1, 5)
core_num_processes = determine_worker_processes(.1, 1)
logger.info(f"Starting core worker processes with concurrency={core_num_processes}")
core_worker = f"celery -A augur.tasks.init.celery_app.celery_app worker -l info --concurrency={core_num_processes} -n core:{uuid.uuid4().hex}@%h"
process_list.append(subprocess.Popen(core_worker.split(" ")))
sleep_time += 6

#20% of estimate, Maximum value of 25
secondary_num_processes = determine_worker_processes(.7, 90)
secondary_num_processes = determine_worker_processes(.7, 100)
logger.info(f"Starting secondary worker processes with concurrency={secondary_num_processes}")
secondary_worker = f"celery -A augur.tasks.init.celery_app.celery_app worker -l info --concurrency={secondary_num_processes} -n secondary:{uuid.uuid4().hex}@%h -Q secondary"
process_list.append(subprocess.Popen(secondary_worker.split(" ")))
sleep_time += 6

#15% of estimate, Maximum value of 20
facade_num_processes = determine_worker_processes(.15, 10)
facade_num_processes = determine_worker_processes(.1, 1)
logger.info(f"Starting facade worker processes with concurrency={facade_num_processes}")
facade_worker = f"celery -A augur.tasks.init.celery_app.celery_app worker -l info --concurrency={facade_num_processes} -n facade:{uuid.uuid4().hex}@%h -Q facade"

Expand Down
2 changes: 1 addition & 1 deletion augur/tasks/start_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def augur_collection_monitor(self):

if secondary_repo_collect_phase.__name__ in enabled_phase_names:
enabled_collection_hooks.append(build_secondary_repo_collect_request(session,enabled_phase_names))
#start_secondary_collection(session, max_repo=10)
#start_secondary_collection(session, max_repo=100)

if facade_phase.__name__ in enabled_phase_names:
#start_facade_collection(session, max_repo=30)
Expand Down

0 comments on commit e294a5e

Please sign in to comment.