Skip to content

Commit

Permalink
docs: add wolf ebs support docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tarrantro committed Jun 29, 2022
1 parent d21870a commit c6534ea
Showing 1 changed file with 36 additions and 4 deletions.
40 changes: 36 additions & 4 deletions docs/fundamentals/jcloud/advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
jc deploy flow.yml --env-file flow.env
```


### A project folder

- You can include your environment variables in the `.env` file in the local project and JCloud will take care of managing them.
Expand Down Expand Up @@ -43,7 +42,40 @@ executors:
jcloud:
capacity: on-demand
```
(jcloud-external-executors)=

## storage resources

We currently support 2 kind of storage type `ebs` and `efs`. The former one is block device and the second one is shared file system.

`ebs` is block device attach to executor. It has better IO than `efs` but can't shared the data between executors, and can't reuse for other executor.

`efs` is network file system shared between executors in flow. It can also resue for new flow so as to share the data between executor.

`efs` is default storage type if you don't specify the type. The minimal of storage `size` is `1G`, and maximum of `size` is `10G`

```
jtype: Flow
with:
protocol: grpc
executors:
- name: simpleindexer
uses: jinahub+docker://SimpleIndexer
jcloud:
resources:
memory: 1G
storage:
type: ebs
size: 10G
- name: simpleindexer1
uses: jinahub+docker://SimpleIndexer
jcloud:
resources:
memory: 1G
storage:
type: efs
```


## Deploy external executors

You can also expose only the Executors by setting `expose_gateway` to `False`. Read more about {ref}`External Executors <external-executors>`
Expand All @@ -61,7 +93,6 @@ executors:
:width: 70%
```


Similarly, you can also deploy & expose multiple External Executors.

```yaml
Expand All @@ -78,6 +109,7 @@ executors:
```{figure} external-executors-multiple.png
:width: 70%
```

## Deploy with specific `jina` version

To manage `jina` version while deploying a Flow to `jcloud`, you can pass `version` arg in the Flow yaml.
Expand All @@ -102,4 +134,4 @@ jcloud:
executors:
- name: custom
uses: jinahub+docker://CustomExecutor
```
```

0 comments on commit c6534ea

Please sign in to comment.