Skip to content

Commit 8c5f6ab

Browse files
authored
Merge pull request lithops-cloud#1357 from JosepSampe/lithops-dev
Update docs
2 parents c815261 + e72bc3b commit 8c5f6ab

File tree

21 files changed

+71
-62
lines changed

21 files changed

+71
-62
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ lithops_*.zip
99
*.log
1010
*.txt
1111
*.csv
12+
*.coverage*
1213

1314
# Virtual environments
1415
.env

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
### Added
66
- [CLI] Allow to pass a name in the "lithops runtime list" command
7+
- [Ceph] Added extra region parameter to Ceph backend
78

89
### Changed
910
- [Setup] Removed unused 'lxml', 'docker' and 'python-dateutil' packages from the setup.py
@@ -16,6 +17,7 @@
1617
- [AWS Lambda] Fixed wrong AWS Lambda delete runtime_name match semantics
1718
- [Worker] Fixed potential issue that can appear during 'func_obj' loading from cache
1819
- [Monitor] Fixed potential 'keyerror' exceptions
20+
- [Swift] Fixed OpenStack Swift parameters and authentication by adding domain information
1921

2022

2123
## [v3.3.0]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,4 +195,4 @@ If you are interested in contributing, see [CONTRIBUTING.md](./CONTRIBUTING.md).
195195
196196
197197
# Acknowledgements
198-
This project has received funding from the European Union's Horizon 2020 research and innovation programme under grant agreement No 825184.
198+
This project has received funding from the European Union's Horizon 2020 research and innovation programme under grant agreement No 825184 (CloudButton).

config/README.md

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,20 @@ Example of providing configuration keys for IBM Code Engine and IBM Cloud Object
117117
```python
118118
import lithops
119119

120-
config = {'lithops': {'backend': 'code_engine', 'storage': 'ibm_cos'},
121-
'ibm': {'region': 'REGION',
122-
'iam_api_key': 'IAM_API_KEY',
123-
'resource_group_id': 'RESOURCE_GROUP_ID'},
124-
'ibm_cos': {'storage_bucket': 'STORAGE_BUCKET'}}
120+
config = {
121+
'lithops': {
122+
'backend': 'code_engine',
123+
'storage': 'ibm_cos'
124+
},
125+
'ibm': {
126+
'region': 'REGION',
127+
'iam_api_key': 'IAM_API_KEY',
128+
'resource_group_id': 'RESOURCE_GROUP_ID'
129+
},
130+
'ibm_cos': {
131+
'storage_bucket': 'STORAGE_BUCKET'
132+
}
133+
}
125134

126135
def hello_world(name):
127136
return f'Hello {name}!'
@@ -136,8 +145,8 @@ if __name__ == '__main__':
136145

137146
|Group|Key|Default|Mandatory|Additional info|
138147
|---|---|---|---|---|
139-
|lithops | backend | aws_lambda | no | Compute backend implementation. IBM Cloud Functions is the default |
140-
|lithops | storage | aws_s3 | no | Storage backend implementation. IBM Cloud Object Storage is the default |
148+
|lithops | backend | aws_lambda | no | Compute backend implementation. `localhost` is the default if no config or config file is provided|
149+
|lithops | storage | aws_s3 | no | Storage backend implementation. `localhost` is the default if no config or config file is provided|
141150
|lithops | data_cleaner | True | no |If set to True, then the cleaner will automatically delete all the temporary data that was written into `storage_bucket/lithops.jobs`|
142151
|lithops | monitoring | storage | no | Monitoring system implementation. One of: **storage** or **rabbitmq** |
143152
|lithops | monitoring_interval | 2 | no | Monitoring check interval in seconds in case of **storage** monitoring |

docs/source/compute_config/aws_batch.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ python3 -m pip install lithops[aws]
1414

1515
1. [Login](https://console.aws.amazon.com/?nc2=h_m_mc) to Amazon Web Services Console (or signup if you don't have an account)
1616

17-
2. Navigate to **IAM > Roles** to create the ECS Task Execution Role. AWS provides a defualt role named `ecsTaskExecutionRole`, which can be used instead. If you want to create another role or it is missing, create a new role attached to `Elastic Container Service Task`, and add the following policies:
17+
2. Navigate to **IAM > Roles** to create the ECS Task Execution Role. AWS provides a default role named `ecsTaskExecutionRole`, which can be used instead. If you want to create another role or it is missing, create a new role attached to `Elastic Container Service Task`, and add the following policies:
1818
- `SecretsManagerReadWrite`
1919
- `AmazonEC2ContainerRegistryFullAccess`
2020
- `CloudWatchFullAccess`
2121
- `AmazonECSTaskExecutionRolePolicy`
2222

23-
3. Navigate to **IAM > Roles** to create the ECS Instance Role. AWS provides a defualt role named `ecsInstanceRole`, which can be used instead. If you want to create another role or it is missing, create a new role attached to `EC2`, and add the following policy:
23+
3. Navigate to **IAM > Roles** to create the ECS Instance Role. AWS provides a default role named `ecsInstanceRole`, which can be used instead. If you want to create another role or it is missing, create a new role attached to `EC2`, and add the following policy:
2424
- `AmazonEC2ContainerServiceforEC2Role`
2525

2626
## AWS Credential setup

docs/source/compute_config/aws_ec2.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ In summary, you can use one of the following settings:
7777
|aws_ec2 | region | |yes | Region name of the VPC. For example `us-east-1`. Lithops will use the region set under the `aws` section if it is not set here |
7878
|aws_ec2 | ssh_username | ubuntu |no | Username to access the VM |
7979
|aws_ec2 | 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 |
80-
|aws_ec2 | 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|
80+
|aws_ec2 | worker_processes | AUTO | no | Number of parallel Lithops processes in a worker. This is used to parallelize function activations within the worker. By default it detects the amount of CPUs in the VM|
8181
|aws_ec2 | 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 |
8282
|aws_ec2 | auto_dismantle | True |no | If False then the VM is not stopped automatically.|
8383
|aws_ec2 | soft_dismantle_timeout | 300 |no| Time in seconds to stop the VM instance after a job **completed** its execution |
@@ -151,7 +151,7 @@ In summary, you can use one of the following settings:
151151
|aws_ec2 | worker_instance_type | t2.medium | no | Profile name for the worker VMs |
152152
|aws_ec2 | delete_on_dismantle | True | no | Delete the worker VMs when they are stopped. Master VM is never deleted when stopped |
153153
|aws_ec2 | max_workers | 100 | no | Max number of workers per `FunctionExecutor()`|
154-
|aws_ec2 | worker_processes | 2 | no | Number of Lithops processes within a given worker. This can be used to parallelize function activations within a worker. It is recommendable to set this value to the same number of CPUs of a worker VM. |
154+
|aws_ec2 | worker_processes | AUTO | no | Number of parallel Lithops processes in a worker. This is used to parallelize function activations within the worker. By default it detects the amount of CPUs in the `worker_instance_type` VM|
155155
|aws_ec2 | 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 |
156156
|aws_ec2 | auto_dismantle | True |no | If False then the VM is not stopped automatically.|
157157
|aws_ec2 | soft_dismantle_timeout | 300 |no| Time in seconds to stop the VM instance after a job **completed** its execution |
@@ -176,7 +176,7 @@ lithops logs poll
176176

177177
## VM Management
178178

179-
Lithops for AWS EC2 follows a Mater-Worker architecrue (1:N).
179+
Lithops for AWS EC2 follows a Mater-Worker architecture (1:N).
180180

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

docs/source/compute_config/aws_lambda.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ python3 -m pip install lithops[aws]
3939
}
4040
```
4141

42-
4. Click **Next: Tags** and **Next: Review**. Fill the policy name field (you can name it `lithops-policy` or simmilar) and create the policy.
42+
4. Click **Next: Tags** and **Next: Review**. Fill the policy name field (you can name it `lithops-policy` or similar) and create the policy.
4343

4444
5. Go back to **IAM** and navigate to **Roles** tab. Click **Create role**.
4545

@@ -105,7 +105,7 @@ In summary, you can use one of the following settings:
105105
| aws_lambda | architecture | x86_64 | no | Runtime architecture. One of **x86_64** or **arm64** |
106106
| aws_lambda | ephemeral_storage | 512 | no | Ephemeral storage (`/tmp`) size in MB (must be between 512 MB and 10240 MB) |
107107
| aws_lambda | env_vars | {} | no | List of {name: ..., value: ...} pairs for Lambda instance environment variables |
108-
| aws_lambda | namespace | | no | Virtual namespace. This can be usefull to virtually group Lithops function workers. The functions deployed by lithops will be prefixed by this namespace. For example you can set it to differentiate between `prod`, `dev` and `stage` environments. |
108+
| aws_lambda | namespace | | no | Virtual namespace. This can be useful to virtually group Lithops function workers. The functions deployed by lithops will be prefixed by this namespace. For example you can set it to differentiate between `prod`, `dev` and `stage` environments. |
109109
| aws_lambda | runtime_include_function | False | no | If set to true, Lithops will automatically build a new runtime, including the function's code, instead of transferring it through the storage backend at invocation time. This is useful when the function's code size is large (in the order of 10s of MB) and the code does not change frequently |
110110

111111

docs/source/compute_config/azure_containers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ az containerapp env create --name lithops --resource-group LithopsResourceGroup
9595
|---|---|---|---|---|
9696
|azure_containers| resource_group | |no | Name of a resource group, for example: `LithopsResourceGroup`. Lithops will use the `resource_group` set under the `azure` section if it is not set here |
9797
|azure_containers| region | |no | The location where you created the `lithops` Container APP environment. For example: `westeurope`, `westus2`, etc. Lithops will use the `region` set under the `azure` section if it is not set here|
98-
|azure_containers| environment | lithops |no | The environemnt name you created in the step 5 of the installation |
98+
|azure_containers| environment | lithops |no | The environment name you created in the step 5 of the installation |
9999
|azure_containers | docker_server | index.docker.io |no | Container registry URL |
100100
|azure_containers | docker_user | |no | Container registry user name |
101101
|azure_containers | docker_password | |no | Container registry password/token. In case of Docker hub, login to your docker hub account and generate a new access token [here](https://hub.docker.com/settings/security)|

docs/source/compute_config/azure_functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ az login
8989
|---|---|---|---|---|
9090
|azure_functions| resource_group | |no | Name of a resource group, for example: `LithopsResourceGroup`. Lithops will use the `resource_group` set under the `azure` section if it is not set here |
9191
|azure_functions| region | |no | The location of the consumption plan for the runtime. Use `az functionapp list-consumption-locations` to view the available locations. For example: `westeurope`, `westus2`, etc. Lithops will use the `region` set under the `azure` section if it is not set here|
92-
|azure_functions | max_workers | 1000 | no | Max number of parallel workers. Altough Azure limits the number of workrs to 200, it is convenient to keep this value high|
92+
|azure_functions | max_workers | 1000 | no | Max number of parallel workers. Although Azure limits the number of workers to 200, it is convenient to keep this value high|
9393
|azure_functions | worker_processes | 1 | no | Number of Lithops processes within a given worker. This can be used to parallelize function activations within a worker |
9494
|azure_functions| runtime | |no | Runtime name already deployed in the service|
9595
|azure_functions | runtime_timeout | 300 |no | Runtime timeout in seconds. Default 5 minutes |

docs/source/compute_config/azure_vms.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Edit your lithops config and add the relevant keys:
8989
|azure_vms | ssh_username | ubuntu | yes | Username to access the VM. It will use `ubuntu` if not provided |
9090
|azure_vms | ssh_key_filename | ~/.ssh/id_rsa | yes | Path to the ssh key file provided to create the VM. It will use the default path if not provided |
9191
|azure_vms | region | |no | Location of the resource group, for example: `westeurope`, `westus2`, etc. Lithops will use the region set under the `azure` section if it is not set here |
92-
|azure_vms | 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|
92+
|azure_vms | worker_processes | AUTO | no | Number of parallel Lithops processes in a worker. This is used to parallelize function activations within the worker. By default it detects the amount of CPUs in the VM|
9393
|azure_vms | 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 |
9494
|azure_vms | auto_dismantle | True |no | If False then the VM is not stopped automatically.|
9595
|azure_vms | soft_dismantle_timeout | 300 |no| Time in seconds to stop the VM instance after a job **completed** its execution |
@@ -139,12 +139,12 @@ Edit your lithops config and add the relevant keys:
139139
|azure_vms | worker_instance_type | Standard_B2s | no | Profile name for the worker VMs |
140140
|azure_vms | delete_on_dismantle | False | no | Delete the worker VMs when they are stopped. Master VM is never deleted when stopped. `True` is NOT YET SUPPORTED |
141141
|azure_vms | max_workers | 100 | no | Max number of workers per `FunctionExecutor()`|
142-
|azure_vms | worker_processes | 2 | no | Number of Lithops processes within a given worker. This can be used to parallelize function activations within a worker. It is recommendable to set this value to the same number of CPUs of a worker VM. |
142+
|azure_vms | worker_processes | AUTO | no | Number of parallel Lithops processes in a worker. This is used to parallelize function activations within the worker. By default it detects the amount of CPUs in the `worker_instance_type` VM|
143143
|azure_vms | 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 |
144144
|azure_vms | auto_dismantle | True |no | If False then the VM is not stopped automatically.|
145145
|azure_vms | soft_dismantle_timeout | 300 |no| Time in seconds to stop the VM instance after a job **completed** its execution |
146146
|azure_vms | hard_dismantle_timeout | 3600 | no | Time in seconds to stop the VM instance after a job **started** its execution |
147-
|azure_vms | 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 |
147+
|azure_vms | 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 |
148148
149149
150150
## Test Lithops
@@ -164,7 +164,7 @@ lithops logs poll
164164
165165
## VM Management
166166
167-
Lithops for Azure VMs follows a Mater-Worker architecrue (1:N).
167+
Lithops for Azure VMs follows a Mater-Worker architecture (1:N).
168168
169169
All the VMs, including the master VM, are automatically stopped after a configurable timeout (see hard/soft dismantle timeouts).
170170

0 commit comments

Comments
 (0)