Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic implementation of distributed search following the conventions of distributed compression using Celery. #68

Merged
merged 1 commit into from
Aug 8, 2022

Conversation

kirkrodrigues
Copy link
Member

Description

Added basic support for distributed search using the celery workers. The algorithm is essentially as follows:

  • The search script starts up the search controller which is a TCP server.
  • The search script also creates a task for every archive in the database and submits them to the scheduler through the database.
  • The scheduler picks up the tasks from the database and queues them for workers.
  • A worker picks up a task from the queue, connects to the search controller, runs the search on the corresponding archive and sends any results to the search controller.
  • The search controller prints any results it receives.

Validation performed

  • Compressed some logs and verified decompression.
  • Searched the same logs for some text and verified it returned relevant results.
  • Verified that tasks were created for every archive and workers searched the archives in parallel.

@kirkrodrigues kirkrodrigues requested a review from davidlion August 8, 2022 13:20
Copy link
Member

@davidlion davidlion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues.

@davidlion davidlion merged commit 5d135cf into y-scope:main Aug 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants