-
Notifications
You must be signed in to change notification settings - Fork 83
docs(package): Add document about using Spider in docker compose packaging. #1647
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
Open
sitaowang1998
wants to merge
13
commits into
y-scope:main
Choose a base branch
from
sitaowang1998:spider-compose-doc
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+133
−26
Open
Changes from 8 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
6b6c1fb
Simple change to doc
sitaowang1998 0a47380
Add Spider worker
sitaowang1998 f539a43
Add spider scheduler
sitaowang1998 c7ff3d1
Add spider component into table
sitaowang1998 b1287c2
Use table to present all deployment type
sitaowang1998 6355c00
Fix the mermaid graph
sitaowang1998 314822d
Add using spider guide
sitaowang1998 b12c48d
Merge branch 'main' into spider-compose-doc
sitaowang1998 2e05939
Minor grammer improvement
sitaowang1998 565fbed
Merge branch 'main' of github.com:y-scope/clp into spider-compose-doc
sitaowang1998 45f05ba
Merge branch 'spider-compose-doc' of github.com:sitaowang1998/clp int…
sitaowang1998 8caa973
Fix markdown lint
sitaowang1998 1c1636e
Fix md lint
sitaowang1998 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| # Using Spider with CLP | ||
|
|
||
| [Spider] is a fast and scalable distributed task execution engine that can be used to run tasks. | ||
| This guide describes how to set up and use Spider with CLP. | ||
|
|
||
| :::{note} | ||
| Spider is under active development, and its integration with CLP may change in the future. | ||
| Right now Spider only supports executing CLP compression tasks. Support for search tasks will be added | ||
| later. | ||
| ::: | ||
|
|
||
| ## Requirements | ||
sitaowang1998 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| * [CLP][clp-releases] v0.7.0 or higher | ||
| * [Docker] v28 or higher | ||
| * [Docker Compose][docker-compose] v2.20.2 or higher | ||
| * Python | ||
| * python3-venv (for the version of Python installed) | ||
|
|
||
| ## Set up | ||
| To use Spider for CLP compression tasks, you need to [set up CLP](#setting-up-clp-with-spider) with | ||
| Spider in configuration. | ||
|
|
||
| ### Setting up CLP with Spider | ||
|
|
||
| 1. Follow the [quick-start](quick-start/index.md) guide to download and extract the CLP package, | ||
| but don't start the package just yet. | ||
| 2. Before starting the package, update the package's config file (`etc/clp-config.yaml`) as follows: | ||
|
|
||
| * Set the `compression_scheduler.type` key to `"spider"`. | ||
|
|
||
| ```yaml | ||
| compression_scheduler: | ||
| type: "spider" | ||
| ``` | ||
|
|
||
sitaowang1998 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| * Optionally, set the `spider_db`. | ||
|
|
||
| ```yaml | ||
| spider_db: | ||
| db_name: "spider-db" | ||
| ``` | ||
|
|
||
| * Optionally, set the `spider_scheduler`. | ||
|
|
||
| ```yaml | ||
| spider_scheduler: | ||
| host: "localhost" | ||
| port: 6000 | ||
| ``` | ||
sitaowang1998 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| 3. Optionally, before starting the package, update the package's credential file (`etc/credentials.yaml`) | ||
| to add Spider database credentials as follows: | ||
|
|
||
| ```yaml | ||
| spider_db: | ||
| username: "spider_user" | ||
| password: "spider_password" | ||
| ``` | ||
| 4. Continue following the [quick-start](./quick-start/index.md#using-clp) guide to start CLP. | ||
sitaowang1998 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| [clp-releases]: https://github.com/y-scope/clp/releases | ||
| [docker-compose]: https://docs.docker.com/compose/install/ | ||
| [Docker]: https://docs.docker.com/engine/install/ | ||
| [Spider]: https://github.com/y-scope/spider | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.