Skip to content

Commit a7c4a01

Browse files
docs: sync Funnel develop documentation
1 parent 3cdaa6d commit a7c4a01

13 files changed

Lines changed: 129 additions & 17 deletions

File tree

‎docs/tools/funnel/.funnel-docs.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"source": "https://github.com/calypr/funnel",
33
"branch": "develop",
44
"source_directory": "docs",
5-
"revision": "738ab75a7056321d82cf57d9781d0af5a4433da6",
5+
"revision": "056635477fbc4560bdd084313126f8db37727010",
66
"files": [
77
"compute.md",
88
"compute/aws-batch.md",
@@ -46,6 +46,7 @@
4646
"security/advanced.md",
4747
"security/basic.md",
4848
"security/oauth2.md",
49+
"service-info.md",
4950
"storage.md",
5051
"storage/ftp.md",
5152
"storage/google-storage.md",

‎docs/tools/funnel/docs/compute/grid-engine.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ It is recommended to update the submit file template so that the
1010
`funnel worker run` command takes a config file as an argument
1111
(e.g. `funnel worker run --config /opt/funnel_config.yml --taskID {{.TaskId}}`)
1212

13-
Download the [Grid Engine submit template](https://github.com/calypr/funnel/blob/738ab75a7056321d82cf57d9781d0af5a4433da6/website/static/funnel-config-examples/gridengine-template.txt)
13+
Download the [Grid Engine submit template](https://github.com/calypr/funnel/blob/056635477fbc4560bdd084313126f8db37727010/website/static/funnel-config-examples/gridengine-template.txt)
1414
to `/etc/funnel/gridengine-template.txt`, then configure Funnel to read it:
1515

1616
```yaml

‎docs/tools/funnel/docs/compute/htcondor.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ It is recommended to update the submit file template so that the
1010
`funnel worker run` command takes a config file as an argument
1111
(e.g. `funnel worker run --config /opt/funnel_config.yml --taskID {{.TaskId}}`)
1212

13-
Download the [HTCondor submit template](https://github.com/calypr/funnel/blob/738ab75a7056321d82cf57d9781d0af5a4433da6/website/static/funnel-config-examples/htcondor-template.txt)
13+
Download the [HTCondor submit template](https://github.com/calypr/funnel/blob/056635477fbc4560bdd084313126f8db37727010/website/static/funnel-config-examples/htcondor-template.txt)
1414
to `/etc/funnel/htcondor-template.txt`, then configure Funnel to read it:
1515

1616
```yaml

‎docs/tools/funnel/docs/compute/kubernetes-templates/README.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ The reference files originated in the [Funnel Helm chart](https://github.com/ohs
66

77
Templates used by Go tests live beside their tests:
88

9-
- [worker job](https://github.com/calypr/funnel/blob/738ab75a7056321d82cf57d9781d0af5a4433da6/internal/compute/kubernetes/testdata/worker-job.yaml)
10-
- [service account](https://github.com/calypr/funnel/blob/738ab75a7056321d82cf57d9781d0af5a4433da6/internal/compute/kubernetes/resources/testdata/serviceaccount.yaml)
11-
- [executor job](https://github.com/calypr/funnel/blob/738ab75a7056321d82cf57d9781d0af5a4433da6/internal/worker/testdata/executor-job.yaml)
9+
- [worker job](https://github.com/calypr/funnel/blob/056635477fbc4560bdd084313126f8db37727010/internal/compute/kubernetes/testdata/worker-job.yaml)
10+
- [service account](https://github.com/calypr/funnel/blob/056635477fbc4560bdd084313126f8db37727010/internal/compute/kubernetes/resources/testdata/serviceaccount.yaml)
11+
- [executor job](https://github.com/calypr/funnel/blob/056635477fbc4560bdd084313126f8db37727010/internal/worker/testdata/executor-job.yaml)

‎docs/tools/funnel/docs/compute/pbs-torque.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ It is recommended to update the submit file template so that the
1010
`funnel worker run` command takes a config file as an argument
1111
(e.g. `funnel worker run --config /opt/funnel_config.yml --taskID {{.TaskId}}`)
1212

13-
Download the [PBS/Torque submit template](https://github.com/calypr/funnel/blob/738ab75a7056321d82cf57d9781d0af5a4433da6/website/static/funnel-config-examples/pbs-template.txt)
13+
Download the [PBS/Torque submit template](https://github.com/calypr/funnel/blob/056635477fbc4560bdd084313126f8db37727010/website/static/funnel-config-examples/pbs-template.txt)
1414
to `/etc/funnel/pbs-template.txt`, then configure Funnel to read it:
1515

1616
```yaml

‎docs/tools/funnel/docs/compute/slurm.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ It is recommended to update the submit file template so that the
4343
`funnel worker run` command takes a config file as an argument
4444
(e.g. `funnel worker run --config /opt/funnel_config.yml --taskID {{.TaskId}}`)
4545

46-
Download the [Slurm submit template](https://github.com/calypr/funnel/blob/738ab75a7056321d82cf57d9781d0af5a4433da6/website/static/funnel-config-examples/slurm-template.txt)
46+
Download the [Slurm submit template](https://github.com/calypr/funnel/blob/056635477fbc4560bdd084313126f8db37727010/website/static/funnel-config-examples/slurm-template.txt)
4747
to `/etc/funnel/slurm-template.txt`, then configure Funnel to read it:
4848

4949
```yaml

‎docs/tools/funnel/docs/docs.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ The server serves the task API, web dashboard, and optionally runs a task schedu
2222
It serves both HTTP/JSON and gRPC/Protobuf.
2323

2424
Run the server with `funnel server`. Its implementation lives in `internal/server`.
25+
See the [service info docs](service-info.md) to configure how a deployment
26+
identifies itself in `GET /service-info`.
2527

2628
### Storage
2729

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
# Service info
2+
3+
`GET /service-info` (and the gRPC `GetServiceInfo` method) describes the Funnel
4+
deployment following the [GA4GH service-info specification][service-info]
5+
(v1.0.0) and the TES `tesServiceInfo` extension. Service registries and clients
6+
use it to tell deployments apart and to show who runs them.
7+
8+
> [!IMPORTANT]
9+
> Service info is public. Funnel serves it without authentication, even when
10+
> `Server.BasicAuth` or `Server.OidcAuth` is configured. Everything you set here,
11+
> including the storage locations you advertise, is visible to anyone who can
12+
> reach the server. Don't put credentials, internal host names, or bucket names
13+
> you want to keep private into these fields.
14+
15+
## Configuration
16+
17+
`Server.ServiceName` (also available as the `--Server.ServiceName` flag) sets
18+
`name`. The optional `Server.ServiceInfo` section of the configuration file
19+
sets the identity of the deployment; it has no command-line flags. The HTTP and
20+
gRPC endpoints report the same values.
21+
22+
```yaml
23+
Server:
24+
ServiceName: Example TES
25+
ServiceInfo:
26+
Id: org.example.tes
27+
Description: Task execution service of Example Org
28+
Organization:
29+
Name: Example Org
30+
Url: https://example.org
31+
ContactUrl: mailto:admin@example.org
32+
DocumentationUrl: https://example.org/docs/tes
33+
Environment: prod
34+
CreatedAt: 2026-01-01T00:00:00Z
35+
Storage:
36+
- s3://example-bucket
37+
```
38+
39+
| Key | Response field | Built-in value |
40+
| --- | --- | --- |
41+
| `Server.ServiceName` | `name` | `Funnel` |
42+
| `Id` | `id` | `org.ga4gh.funnel` |
43+
| `Description` | `description` | `Funnel is a toolkit for distributed task execution via a simple, standard API.` |
44+
| `Organization.Name`, `Organization.Url` | `organization.name`, `organization.url` | `CALYPR Data Platform`, `https://github.com/calypr/` |
45+
| `ContactUrl` | `contactUrl` | `https://github.com/calypr/` |
46+
| `DocumentationUrl` | `documentationUrl` | `https://github.com/calypr/funnel` |
47+
| `Environment` | `environment` | `development` |
48+
| `CreatedAt` | `createdAt` | `2016-03-21T16:27:49-07:00` |
49+
| `Storage` | `storage` | `file:///path/to/local/funnel-storage`, `s3://ohsu-compbio-funnel/storage` |
50+
51+
Funnel always reports `type` (`org.ga4gh:tes:1.1.0`), `version` (the Funnel
52+
version), `updatedAt` (the time of the request), and
53+
`tesResources_backend_parameters` (from the compute backend) itself; they can't
54+
be configured.
55+
56+
The built-in values describe the Funnel project, not your deployment, and the
57+
built-in storage locations are only examples. Every deployment that registers
58+
with a service registry should at least set its own `Id`, `Organization`, and
59+
`Environment`. The specification asks for an `id` that is unique for each
60+
service; reverse domain name notation (`org.example.tes`) is recommended.
61+
62+
## Empty values
63+
64+
Every key is optional:
65+
66+
- A key that is missing, or set to an empty string, keeps its built-in value.
67+
This also applies to `Server.ServiceName`. Existing configurations without a
68+
`ServiceInfo` section report the same service info as before, except that an
69+
empty `ServiceName` now reports `Funnel` instead of an empty `name`, which
70+
the specification requires.
71+
- `Storage` is replaced as a whole: a non-empty list replaces both built-in
72+
locations, while a missing or empty list (`Storage: []`) keeps them. Funnel
73+
can't report an empty `storage` list. To avoid advertising the example
74+
locations, list the locations you want to advertise.
75+
- `Organization` is replaced as a whole as well. Either leave out both `Name`
76+
and `Url` to keep the built-in organization, or set both: the specification
77+
requires both, so setting only one of them is an error.
78+
79+
## Validation
80+
81+
`funnel server run` checks the configured values against the service-info
82+
specification at startup and refuses to start if any of them is invalid,
83+
naming every invalid key:
84+
85+
- `ServiceName`, `Id`, `Description`, `Environment`, and `Organization.Name`
86+
must not consist only of whitespace.
87+
- `Organization.Url`, `ContactUrl`, and `DocumentationUrl` must be absolute
88+
`http` or `https` URLs with a host, such as `https://example.org`, written
89+
with the characters [RFC 3986][rfc3986] allows (percent-encode others, and
90+
use the ASCII form of internationalized domain names). `ContactUrl` may also
91+
be an email address as a `mailto:` URI (`mailto:admin@example.org`), as the
92+
specification suggests. Clients show these values as links, so Funnel is
93+
stricter here than the specification's `format: uri`: other schemes, such as
94+
`javascript:`, `data:` or `tel:`, are rejected, and so are URLs that contain
95+
credentials (`https://user:password@...`).
96+
- `CreatedAt` must be an [RFC 3339][rfc3339] timestamp with a time zone, such
97+
as `2026-01-01T00:00:00Z`. Leap seconds (`:60`) aren't accepted.
98+
- `Storage` entries must not be empty or consist only of whitespace. The TES
99+
specification allows any string; URIs such as `s3://example-bucket` are the
100+
convention.
101+
102+
`Environment` is free text. The specification suggests `prod`, `test`, `dev`,
103+
and `staging`, but doesn't enforce them.
104+
105+
[service-info]: https://github.com/ga4gh-discovery/ga4gh-service-info/blob/v1.0.0/service-info.yaml
106+
[rfc3986]: https://www.rfc-editor.org/rfc/rfc3986
107+
[rfc3339]: https://www.rfc-editor.org/rfc/rfc3339

‎docs/tools/funnel/docs/tasks.md‎

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -597,24 +597,25 @@ last returned creation time and ID, matching their deterministic sort order.
597597
Legacy ID-only tokens remain accepted while their referenced task exists; new
598598
tokens can resume even after that task is deleted.
599599

600-
The server's gRPC response limit defaults to 4 MiB. List pages account for task records and the continuation token within that
601-
ceiling. If one task cannot fit, Funnel
600+
The server's gRPC response limit defaults to 64 MiB. List pages account for task
601+
records and the continuation token within that ceiling. If one task cannot fit, Funnel
602602
returns `RESOURCE_EXHAUSTED` with its task ID and suggests requesting `MINIMAL`
603603
or increasing the configured limit. Smaller pages cannot make a single large
604604
task smaller.
605605

606-
To support larger task responses, configure the server before starting it:
606+
Set `Server.MaxResponseBytes` before starting Funnel to change the limit. For
607+
example, the following configuration limits responses to 32 MiB.
607608

608609
```yaml
609610
Server:
610-
MaxResponseBytes: 8388608
611+
MaxResponseBytes: 33554432
611612
```
612613
613-
`0` selects the default. The setting
614-
also controls the receive limit of Funnel's internal HTTP-to-gRPC gateway, so
614+
`0` selects the default. The setting also controls the receive limit of Funnel's internal HTTP-to-gRPC gateway, so
615615
HTTP clients such as the dashboard and CLI can receive the supported response.
616-
External gRPC clients must configure their own receive limit when requesting
617-
larger responses. `GetTask` is subject to the same response ceiling.
616+
Funnel's internal RPC clients default to a 64 MiB receive limit. External gRPC
617+
clients must configure a receive limit large enough for the responses they
618+
request. `GetTask` is subject to the same response ceiling.
618619

619620
This is a protobuf transport budget, not a JSON-size or process-memory limit.
620621
JSON encoding can be larger, and the server must still load each candidate task

‎docs/tools/funnel/docs/upgrading.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ Update scripts that refer to the former repository layout:
236236
- Update custom linker flags to use `github.com/calypr/funnel/version`.
237237
- Remove calls to the retired `bundle-examples` Make target.
238238

239-
The source build currently requires Go 1.27.3, as declared in `go.mod`.
239+
The source build currently requires Go 1.27.4, as declared in `go.mod`.
240240
Integration tests clean up generated files by default. Pass
241241
`-funnel-keep-artifacts` when retaining them for debugging. Resources still close
242242
when files are retained. See [developer test instructions](development/developers.md#go-tests)

0 commit comments

Comments
 (0)