Skip to content

Commit 2ffe982

Browse files
committed
Update docs
1 parent e97d5c9 commit 2ffe982

7 files changed

Lines changed: 56 additions & 19 deletions

File tree

CHANGELOG.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,31 @@
11
# Changelog
22

3-
## [v3.3.1.dev0]
3+
## [v3.4.1.dev0]
4+
5+
### Added
6+
-
7+
8+
### Changed
9+
-
10+
11+
### Fixed
12+
-
13+
14+
## [v3.4.0]
415

516
### Added
617
- [CLI] Allow to pass a name in the "lithops runtime list" command
718
- [Ceph] Added extra region parameter to Ceph backend
819

920
### Changed
21+
- [Setup] Moved IBM dependencies to lithops[ibm] extra
22+
- [Setup] Moved AWS dependencies to lithops[aws] extra
23+
- [Setup] Moved kubernetes dependencies to lithops[kubernetes] extra
24+
- [Setup] Moved knative dependencies to lithops[knative] extra
25+
- [Setup] Moved minio dependencies to lithops[minio] extra
26+
- [Setup] Moved ceph dependencies to lithops[ceph] extra
27+
- [Setup] Moved redis dependencies to lithops[redis] extra
28+
- [Setup] Moved matplotlib, seaborn, numpy and pandas dependencies to lithops[plotting] extra
1029
- [Setup] Removed unused 'lxml', 'docker' and 'python-dateutil' packages from the setup.py
1130
- [Core] Detached progress bar from INFO logs
1231
- [Future] Exposed 'wait_dur_sec' and 'retries' in future.wait() and future.get_result() methods
@@ -21,6 +40,7 @@
2140
- [Swift] Fixed OpenStack Swift parameters and authentication by adding domain information
2241
- [AWS Batch] Fixed missing ecsTaskJobRole
2342

43+
2444
## [v3.3.0]
2545

2646
### Added

docs/source/api_stats.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ Execution summary plots
1010

1111
The :code:`plot()` method from :code:`FunctionExecutor` creates a scatter plot and a histogram plot showing a summary of the tasks executed by a :code:`FunctionExecutor`. By default, lithops creates a :code:`plots/` directory in the working directory path containing both plots in PNG format. For more details refer to the `FunctionExecutor API reference <https://lithops-cloud.github.io/docs/source/api_futures.html>`_.
1212

13+
To get started, first install Lithops and the plotting dependencies with:
14+
15+
.. code-block:: bash
16+
17+
python3 -m pip install lithops[plotting]
18+
1319
* **Scatter Plot**: the scatter plot shows a timeline on the horizontal axis where the stages of all invocations are arranged on the vertical axis.
1420
- :code:`host submit` indicates the time that the orchestrator process has invoked the function.
1521
- :code:`call start` indicates the timestamp at which the function starts its execution.

docs/source/compute_config/code_engine.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,13 @@
22

33
[IBM Code Engine](https://cloud.ibm.com/codeengine/overview) allows you to run your application, job or container on a managed serverless platform. Auto-scale workloads and only pay for the resources you consume.
44

5-
IBM Code Engine exposes both Knative and Kubernetes Job Descriptor API. Lithops supports both of them. Follow IBM Code Engine documentation to get more details on the difference between those APIs.
5+
## Installation
66

7+
1. Install IBM Cloud backend dependencies:
8+
9+
```bash
10+
python3 -m pip install lithops[ibm]
11+
```
712

813
## Configuration
914

@@ -13,7 +18,7 @@ IBM Code Engine exposes both Knative and Kubernetes Job Descriptor API. Lithops
1318

1419
3. Copy the generated IAM API key (You can only see the key the first time you create it, so make sure to copy it).
1520

16-
4. Naviagete to the [resource groups dashboard](https://cloud.ibm.com/account/resource-groups), and copy the desired resource group ID.
21+
4. Navigate to the [resource groups dashboard](https://cloud.ibm.com/account/resource-groups), and copy the desired resource group ID.
1722

1823
5. Edit your lithops config and add the following keys:
1924

@@ -85,7 +90,7 @@ code_engine:
8590
....
8691
docker_server : docker.io
8792
docker_user : <container registry username>
88-
docker_password : <container registry access TOEKN>
93+
docker_password : <container registry access TOKEN>
8994
```
9095

9196
#### Configure IBM Container Registry

docs/source/compute_config/ibm_cf.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ python3 -m pip install lithops[ibm]
2222

2323
4. Copy the generated IAM API key (You can only see the key the first time you create it, so make sure to copy it).
2424

25-
5. Naviagete to the [resource groups dashboard](https://cloud.ibm.com/account/resource-groups), and copy the desired resource group ID.
25+
5. Navigate to the [resource groups dashboard](https://cloud.ibm.com/account/resource-groups), and copy the desired resource group ID.
2626

2727
5. Edit your lithops config and add the following keys:
2828

@@ -50,8 +50,8 @@ python3 -m pip install lithops[ibm]
5050

5151
|Group|Key|Default|Mandatory|Additional info|
5252
|---|---|---|---|---|
53-
|ibm_cf| namespace | |no | Value of CURRENT NAMESPACE from [here](https://cloud.ibm.com/functions/namespace-settings). Provide it if you want to use an existsing `namespace`. Lithops will automatically create a new namespace if not provided.|
54-
|ibm_cf| namespace_id | |no | Value of 'GUID' from [here](https://cloud.ibm.com/functions/namespace-settings). Provide it if you want to use an existsing `namespace`. Provide it along with `namespace`.|
53+
|ibm_cf| namespace | |no | Value of CURRENT NAMESPACE from [here](https://cloud.ibm.com/functions/namespace-settings). Provide it if you want to use an existing `namespace`. Lithops will automatically create a new namespace if not provided.|
54+
|ibm_cf| namespace_id | |no | Value of 'GUID' from [here](https://cloud.ibm.com/functions/namespace-settings). Provide it if you want to use an existing `namespace`. Provide it along with `namespace`.|
5555
|ibm_cf | region | |no | Service region. One of: `jp-tok`, `au-syd`, `eu-gb`, `eu-de`, `us-south`, `us-east`. Lithops will use the `region` set under the `ibm` section if it is not set here |
5656
|ibm_cf| endpoint | |no | IBM Cloud Functions endpoint (if region not provided). Make sure to use https:// prefix, for example: https://us-east.functions.cloud.ibm.com |
5757
|ibm_cf | max_workers | 1200 | no | Max number of workers per `FunctionExecutor()`|

docs/source/compute_config/ibm_vpc.md

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,21 @@
22

33
The IBM VPC client of Lithops can provide a truely serverless user experience on top of IBM VPC where Lithops creates new VSIs (Virtual Server Instance) dynamically in runtime, and scale Lithops jobs against them. Alternatively Lithops can start and stop an existing VSI instances.
44

5+
## Installation
6+
7+
1. Install IBM Cloud backend dependencies:
8+
9+
```bash
10+
python3 -m pip install lithops[ibm]
11+
```
12+
513
## IBM VPC
614
The assumption that you already familiar with IBM Cloud, have your IBM IAM API key created (you can create new keys [here](https://cloud.ibm.com/iam/apikeys)), have valid IBM COS account, region and resource group.
715

8-
Follow [IBM VPC setup](https://cloud.ibm.com/vpc-ext/overview) if you need to create IBM Virtual Private Cloud. Decide the region for your VPC. The best practice is to use the same region both for VPC and IBM COS, hoewever there is no requirement to keep them in the same region.
16+
Follow [IBM VPC setup](https://cloud.ibm.com/vpc-ext/overview) if you need to create IBM Virtual Private Cloud. Decide the region for your VPC. The best practice is to use the same region both for VPC and IBM COS, however there is no requirement to keep them in the same region.
917

1018
## Choose an operating system image for VSI
11-
Any Virtual Service Instance (VSI) need to define the instance’s operating system and version. Lithops support both standard Ubuntu operting system choices provided by the VPC and using pre-defined custom images that already contains all dependencies required by Lithops.
19+
Any Virtual Service Instance (VSI) need to define the instance’s operating system and version. Lithops support both standard Ubuntu operating system choices provided by the VPC and using pre-defined custom images that already contains all dependencies required by Lithops.
1220

1321
- Option 1: Lithops is compatible with any Ubuntu 22.04 image provided in IBM Cloud. In this case, no further action is required and you can continue to the next step. Lithops will install all required dependencies in the VSI by itself. Notice this can consume about 3 min to complete all installations.
1422

@@ -81,7 +89,7 @@ ibm_vpc:
8189
|ibm_vpc | subnet_id | | no | Subnet id of an existing VPC. Get it from [here](https://cloud.ibm.com/vpc-ext/network/subnets)|
8290
|ibm_vpc | ssh_key_id | | no | SSH public key id. Get it from [here](https://cloud.ibm.com/vpc-ext/compute/sshKeys)|
8391
|ibm_vpc | gateway_id | | no | Gateway id. Get it from [here](https://cloud.ibm.com/vpc-ext/network/publicGateways)|
84-
|ibm_vpc | image_id | | no | Virtual machine image id. Default is Ubutnu Server 22.04 |
92+
|ibm_vpc | image_id | | no | Virtual machine image id. Default is Ubuntu Server 22.04 |
8593
|ibm_vpc | runtime | python3 | no | Runtime name to run the functions. Can be a container image name. If not set Lithops will use the default python3 interpreter of the VM |
8694
|ibm_vpc | ssh_username | root |no | Username to access the VM |
8795
|ibm_vpc | ssh_password | |no | Password for accessing the worker VMs. If not provided, it is created randomly|
@@ -91,15 +99,15 @@ ibm_vpc:
9199
|ibm_vpc | worker_profile_name | cx2-2x4 | no | Profile name for the worker VMs |
92100
|ibm_vpc | master_profile_name | cx2-2x4 | no | Profile name for the master VM |
93101
|ibm_vpc | verify_resources | True | no | Verify the resources that are stored in the local cache, and expected to be already created (VPC, subnet, floating IP, etc.), exist every time a `FunctionExecutor()` is created |
94-
|ibm_vpc | delete_on_dismantle | True | no | Delete the worekr VMs when they are stopped |
102+
|ibm_vpc | delete_on_dismantle | True | no | Delete the worker VMs when they are stopped |
95103
|ibm_vpc | max_workers | 100 | no | Max number of workers per `FunctionExecutor()`|
96104
|ibm_vpc | worker_processes | AUTO | no | Number of Lithops processes within a given worker. This is used to parallelize function activations within a worker. By default it detects the amount of CPUs in the worker VM|
97105
|ibm_vpc | auto_dismantle | True |no | If False then the VM is not stopped automatically.|
98106
|ibm_vpc | soft_dismantle_timeout | 300 |no| Time in seconds to stop the VM instance after a job **completed** its execution |
99107
|ibm_vpc | hard_dismantle_timeout | 3600 | no | Time in seconds to stop the VM instance after a job **started** its execution |
100108
|ibm_vpc | exec_mode | reuse | no | One of: **consume**, **create** or **reuse**. If set to **create**, Lithops will automatically create new VMs for each map() call based on the number of elements in iterdata. If set to **reuse** will try to reuse running workers if exist |
101109
|ibm_vpc | singlesocket | False | no | Try to allocate workers with single socket CPU. If eventually running on multiple socket, a warning message printed to user. Is **True** standalone **workers_policy** must be set to **strict** to trace workers states|
102-
|ibm_vpc | gpu | False | no | If True docker started with gpu support. Requires host to have neccessary hardware and software preconfigured and docker image runtime with gpu support specified |
110+
|ibm_vpc | gpu | False | no | If `True` docker started with gpu support. Requires host to have necessary hardware and software pre-configured, and docker image runtime with gpu support specified |
103111

104112
## Lithops and the VSI consume mode
105113

@@ -146,11 +154,11 @@ If you need to create new VM, then follow the steps to create and update Lithops
146154
|---|---|---|---|---|
147155
|ibm_vpc | region | |yes | VPC Region. For example `us-south`. Choose one region from [here](https://cloud.ibm.com/docs/vpc?topic=vpc-service-endpoints-for-vpc). Lithops will use the region set under the `ibm` section if it is not set here |
148156
|ibm_vpc | instance_id | | yes | virtual server instance ID |
149-
|ibm_vpc | floating_ip | | yes | Floatting IP address atached to your VM instance|
157+
|ibm_vpc | floating_ip | | yes | Floating IP address attached to your VM instance|
150158
|ibm_vpc | ssh_username | root |no | Username to access the VM |
151159
|ibm_vpc | ssh_key_filename | ~/.ssh/id_rsa | no | Path to the ssh key file provided to create the VM. It will use the default path if not provided |
152160
|ibm_vpc | worker_processes | AUTO | no | Number of Lithops processes within a given worker. This is used to parallelize function activations within the worker. By default it detects the amount of CPUs in the VM|
153-
|ibm_vpc | runtime | python3 | no | Runtime name to run the functions. Can be a container image name. If not set Lithops will use the defeuv python3 interpreter of the VM |
161+
|ibm_vpc | runtime | python3 | no | Runtime name to run the functions. Can be a container image name. If not set Lithops will use the default `python3` interpreter of the VM |
154162
|ibm_vpc | auto_dismantle | True |no | If False then the VM is not stopped automatically.|
155163
|ibm_vpc | soft_dismantle_timeout | 300 |no| Time in seconds to stop the VM instance after a job **completed** its execution |
156164
|ibm_vpc | hard_dismantle_timeout | 3600 | no | Time in seconds to stop the VM instance after a job **started** its execution |
@@ -174,7 +182,7 @@ lithops logs poll
174182

175183
## VM Management
176184

177-
Lithops for IBM VPC follows a Mater-Worker architecrue (1:N).
185+
Lithops for IBM VPC follows a Mater-Worker architecture (1:N).
178186

179187
All the VMs, including the master VM, are automatically stopped after a configurable timeout (see hard/soft dismantle timeouts).
180188

docs/source/sklearn_joblib.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Distributed Scikit-learn / Joblib
33

44
Lithops supports running distributed scikit-learn programs by implementing a Lithops backend for joblib using Functions instead of local processes. This makes it easy to scale existing applications that use scikit-learn from a single node to a cluster.
55

6-
To get started, first install Lithops and the joblib dependecies with:
6+
To get started, first install Lithops and the joblib dependencies with:
77

88
.. code-block:: bash
99

docs/source/storage_config/ibm_cos.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
# IBM Cloud Object Storage
22

3-
43
Lithops with IBM COS as storage backend.
54

6-
75
## Installation
86

97
1. Install IBM Cloud backend dependencies:
@@ -93,7 +91,7 @@ python3 -m pip install lithops[ibm]
9391
## Lithops COS Endpoint configuration
9492

9593
### Using region
96-
The easiest apporach is to let Lithops to choose the right endpoint by itself. To enable this, just configure Lithops with the region name of your `storage_bucket`, as follows:
94+
The easiest approach is to let Lithops to choose the right endpoint by itself. To enable this, just configure Lithops with the region name of your `storage_bucket`, as follows:
9795

9896
```yaml
9997
ibm_cos:

0 commit comments

Comments
 (0)