-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
45 changed files
with
1,868 additions
and
573 deletions.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
@@ -1,62 +1,11 @@ | ||
--- | ||
Demo: | ||
- Title: Start Funnel | ||
Cmd: $ funnel server run | ||
|
||
- Title: Run a task | ||
Desc: Returns a task ID. | ||
Cmd: | | ||
$ funnel run 'md5sum $src' -c ubuntu --in src=~/src.txt | ||
b41pkv2rl6qjf441avd0 | ||
- Title: Get the task | ||
Desc: Returns state, logs, and more. | ||
Cmd: $ funnel task get b41pkv2rl6qjf441avd0 | ||
|
||
- Title: List all the tasks | ||
Cmd: $ funnel task list | ||
|
||
- Title: View the terminal dashboard | ||
Cmd: $ funnel dashboard | ||
|
||
# - Title: Move to the cloud. | ||
# Desc: | | ||
# Google, Amazon, Microsoft, HPC, and more. | ||
# Cmd: | | ||
# $ gcloud auth login | ||
# $ funnel deploy gce | ||
# $ funnel run 'md5sum' \ | ||
# --stdin gs://pub/input.txt \ | ||
# --stdout gs://my-bkt/output.txt | ||
|
||
- Title: Use a remote server | ||
Cmd: $ funnel run --server http://funnel.example.com ... | ||
|
||
- Title: Example tasks | ||
Cmd: | | ||
$ funnel example list | ||
$ funnel example hello-world | ||
- Title: Get help | ||
# Desc: The Funnel CLI is extensive. | ||
Cmd: $ funnel help | ||
|
||
# - Title: File a bug. | ||
# Desc: It happens. | ||
# Cmd: $ funnel bug | ||
|
||
- Title: Get the code | ||
Cmd: $ go get github.com/ohsu-comp-bio/funnel | ||
|
||
# - Title: Hack together a workflow. | ||
# Desc: Bash-fu. Hadouken! | ||
# Cmd: | | ||
# $ funnel run <<TPL | ||
# TPL | ||
|
||
# - Title: Use a workflow language. | ||
# Desc: Level up with CWL and WDL. | ||
|
||
--- | ||
|
||
Homepage content is written in layouts/index.html |
This file contains 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 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,8 @@ | ||
--- | ||
title: Compute | ||
menu: | ||
main: | ||
weight: -5 | ||
--- | ||
|
||
# Compute |
This file contains 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 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,94 @@ | ||
--- | ||
title: Deploying a cluster | ||
menu: | ||
main: | ||
parent: Compute | ||
weight: -50 | ||
--- | ||
|
||
# Deploying a cluster | ||
|
||
This guide describes the basics of starting a cluster of Funnel nodes. | ||
This guide is a work in progress. | ||
|
||
A node is a service | ||
which runs on each machine in a cluster. The node connects to the Funnel server and reports | ||
available resources. The Funnel scheduler process assigns tasks to nodes. When a task is | ||
assigned, a node will start a worker process. There is one worker process per task. | ||
|
||
Nodes aren't always required. In some cases it makes sense to rely on an existing, | ||
external system for scheduling tasks and managing cluster resources, such as AWS Batch, | ||
HTCondor, Slurm, Grid Engine, etc. Funnel provides integration with | ||
these services without using nodes or the scheduler. | ||
|
||
### Usage | ||
|
||
Nodes are available via the `funnel node` command. To start a node, run | ||
``` | ||
funnel node run --config node.config.yml | ||
``` | ||
|
||
To activate the Funnel scheduler, use the `manual` backend in the config. | ||
|
||
The available scheduler and node config: | ||
``` | ||
# Activate the Funnel scheduler. | ||
Backend: manual | ||
Scheduler: | ||
# How often to run a scheduler iteration. | ||
# In nanoseconds. | ||
ScheduleRate: 1000000000 # 1 second | ||
# How many tasks to schedule in one iteration. | ||
ScheduleChunk: 10 | ||
# How long to wait between updates before marking a node dead. | ||
# In nanoseconds. | ||
NodePingTimeout: 60000000000 # 1 minute | ||
# How long to wait for a node to start, before marking the node dead. | ||
# In nanoseconds. | ||
NodeInitTimeout: 300000000000 # 5 minutes | ||
# Node config. | ||
Node: | ||
# If empty, a node ID will be automatically generated using the hostname. | ||
ID: "" | ||
# Files created during processing will be written in this directory. | ||
WorkDir: ./funnel-work-dir | ||
# If the node has been idle for longer than the timeout, it will shut down. | ||
# -1 means there is no timeout. 0 means timeout immediately after the first task. | ||
Timeout: -1 | ||
# A Node will automatically try to detect what resources are available to it. | ||
# Defining Resources in the Node configuration overrides this behavior. | ||
Resources: | ||
# CPUs available. | ||
# Cpus: 0 | ||
# RAM available, in GB. | ||
# RamGb: 0.0 | ||
# Disk space available, in GB. | ||
# DiskGb: 0.0 | ||
# For low-level tuning. | ||
# How often to sync with the Funnel server. | ||
# In nanoseconds. | ||
UpdateRate: 5000000000 # 5 seconds | ||
# RPC timeout for update/sync call. | ||
# In nanoseconds. | ||
UpdateTimeout: 1000000000 # 1 second | ||
Logger: | ||
# Logging levels: debug, info, error | ||
Level: info | ||
# Write logs to this path. If empty, logs are written to stderr. | ||
OutputFile: "" | ||
``` | ||
|
||
### Known issues | ||
|
||
The config uses nanoseconds for duration values. See [issue #342](https://github.com/ohsu-comp-bio/funnel/issues/342). |
10 changes: 4 additions & 6 deletions
10
website/content/docs/guides/grid-engine.md → website/content/docs/compute/grid-engine.md
This file contains 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
4 changes: 1 addition & 3 deletions
4
website/content/docs/guides/htcondor.md → website/content/docs/compute/htcondor.md
This file contains 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
4 changes: 1 addition & 3 deletions
4
website/content/docs/guides/pbs-torque.md → website/content/docs/compute/pbs-torque.md
This file contains 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.