Skip to content

A framework of auto optimization, packaging, deployment and hyperparameter-tuning for Serverless function

Notifications You must be signed in to change notification settings

Heronalps/Seneca

Repository files navigation

Seneca

A framework of auto-packaging, deployment, optimization and hyperparameter-tuning for Serverless function

Published at IEEE SCC 2019:

Seneca Paper Link

User Guidance

CLI Installation

  • Install pipsi:
curl https://raw.githubusercontent.com/mitsuhiko/pipsi/master/get-pipsi.py | python
  • Install seneca:
cd <rootdir-of-Seneca>
pipsi install ./cli
  • Usage
seneca --help

Execution

  • Start EC2 instance
  • Start Rabbitmq Server, run sudo rabbitmq-server
  • Configure Rabbitmq,run sh rabbitmq_config.sh
  • Start Redis Server, run redis-server
  • Configure .aws/config & .aws/credentials
  • Direct to repo directory /Celery_Lambda, run nohup celery -A proj worker --concurrency=10 &
  • Invoke Seneca nohup seneca -m <model> -c ./config/<model>/config.py -r 30 &
  • Kill background celery workers kill $(ps aux | grep '[c]elery' | awk '{print $2}')
  • List celery queue sudo rabbitmqctl list_queues -p myvhost
  • Purge celery queue sudo rabbitmqctl purge_queue celery -p myvhost
  • Invoke serial tuning nohup python -u execs/run_xgboost.py > run_xgboost.txt &

Container-Test

  • In another terminal at repo directory, run python run_container_test.py with 3 arguments, celery_async, lambda_async, invoke_time

Centaurus

  • The aws branch is a hybrid solution, which needs a PostgreSQL server

Prophet

  • Install Prophet on masOS

Since gcc hookup issue, please install Pystan BEFORE installing fbprophet, and they CANNOT be in one pip install command.

pip install numpy==1.15.4
pip install pystan
pip install fbprophet
  • Ubuntu patching
sudo apt-get install build-essential autoconf libtool pkg-config python-opengl python-pyrex python-pyside.qtopengl idle-python2.7 qt4-dev-tools qt4-designer libqtgui4 libqtcore4 libqt4-xml libqt4-test libqt4-script libqt4-network libqt4-dbus python-qt4 python-qt4-gl libgle3 python-dev libssl-dev
  • Auto packaging and deployment to Lambda
cd ./src/lambda_func/prophet
docker-compose up

About

A framework of auto optimization, packaging, deployment and hyperparameter-tuning for Serverless function

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published