Skip to content

Commit

Permalink
Add note about ulimit to lithops examples
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwhite committed Feb 22, 2024
1 parent e6ef01d commit 4a371a9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/lithops/aws-lambda/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ lithops runtime build -b aws_lambda -f docker/Dockerfile_aws_lambda cubed-runtim
lithops runtime deploy -b aws_lambda --memory 2000 --timeout 180 cubed-runtime # optional, will be done automatically on first use
```

5. Set file descriptor limit. Different systems have different limits, so this step may be needed to run the larger examples. You can check what the limit is on your system with `ulimit -n`. The following command will set the limit to 1024 for the current session.

```shell
ulimit -n 1024
```

## Running

Start with the simplest example:
Expand Down
6 changes: 6 additions & 0 deletions examples/lithops/gcf/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ lithops runtime build -f requirements.txt cubed-runtime -b gcp_functions
lithops runtime deploy -b gcp_functions --memory 2048 cubed-runtime # optional, will be done automatically on first use
```

6. Set file descriptor limit. Different systems have different limits, so this step may be needed to run the larger examples. You can check what the limit is on your system with `ulimit -n`. The following command will set the limit to 1024 for the current session.

```shell
ulimit -n 1024
```

## Running

Start with the simplest example:
Expand Down

0 comments on commit 4a371a9

Please sign in to comment.