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

Updated cluster-setup.rst #399

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions docs/source/topics/cluster-setup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,11 @@ First, let's start storage worker: ::

# start DB worker only for batch generation
# use single instance for every 10 partitions
$ python -m frontera.worker.db --config [db worker config module] --no-incoming --partitions 0 1
$ python -m frontera.worker.db --config [db worker config module] --no-scoring --no-incoming --partitions 0 1


# Optionally, start next one dedicated to spider log processing.
$ python -m frontera.worker.db --no-batches --config [db worker config module]
$ python -m frontera.worker.db --no-batches --no-incoming --config [db worker config module]


Next, let's start strategy workers, one process per spider log partition: ::
Expand Down Expand Up @@ -159,3 +159,4 @@ You should end up with N spider processes running. Also :setting:`SPIDER_PARTITI

You're done, crawler should start crawling. Any component can be restarted any time, without major data loss. However,
for pausing its enough to stop batch gen only.