Skip to content
No description, website, or topics provided.
Jupyter Notebook Python Shell
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
sls
.gitignore
001_ImageResize_local.py
010_ImageResize_labmda.py
011_ImageResize_labmda_parallel.py
MultiProcessUtil.py
README.md
config.sh
demo.ipynb

README.md

Lambda Performance Evaluation

Install Prerequisit

serverless framework

$ npm install -g serverless
$ serverless config credentials --provider aws --key “IAMユーザのアクセスキーID”  --secret “IAMユーザのシークレットアクセスキー”

besides this, you need to install docker to use serverless framework, if you have not installed docker.

plugins

$ cd sls
$ serverless plugin install -n serverless-python-requirements
$ serverless plugin install -n serverless-prune-plugin

Prepare Images

Local drive

  • store images to the input dir.
  • the extension of the image must be '.jpeg'

S3

  • store the same images with the same key as the path
  • for example, if the path of the image on drive is "input/aaa/bbb.jpeg", the key on the S3 is "input/aaa/bbb.jpeg".

Deploy Lambda

$ cd sls
$ serverless deploy

Configure API Gateway

Change timeout to 29sec.

Configure Lambda

Set the role to use cloudwatch and S3.

Configure Demoscript

edit config.sh

Demo

See

  • demo.ipynb
You can’t perform that action at this time.