Giter Club home page Giter Club logo

csc724-autoscaling-inmemory-datastores's Introduction

CSC 724: Auto-Scaling In-Memory Data Stores

This project includes the different modules to demonstrate our work on auto-scaling Redis nodes based on its workload.

Infrastructure Setup

To setup the infrastructure follow the instructions inside the vcl-setup, redis-docker, scale-node-docker, workload-docker folders.

To install the prediction engine follow the instructions inside the prediction folder.

The current system only supports Azure, so you need azure credentials for things to work properly.

Prediction Module

The prediction module consists of two models:

  1. ARIMA (Click here to see the code)
  2. RNN (Click here to see the code)

Folder structure (Details only about important files):

.
├── rnn                  # Python code files of RNN
├── arima                # Python code files of ARIMA
├── rnn_model.sav        # Pre-trained model used in online-phase
├── predictionEngine.py  # Main python file which calls consumer for streaming data and calls RNN and ARIMA to predict
├── consumer.py          # Fetches data from Kafka and gives the response to predictionEngine
├── forecast.pickle      # A trained ARIMA model saved using pickle
└── README.md

Inside RNN folder

.
├── multivariate_rnn-offline.py         # Offline phase of RNN which trains the model
├── multivariate_rnn.py	                # Considers latency,memory and CPU for prediction
├── online_rnn.py                       # Python file that runs during the online-phase(integrated with system)
├── with_window.py                      # RNN with one node varying window size(Failed method 01)
├── multivariate_single_node.py         # RNN with one node(Failed method 01)
└── README.md                           # Code described in detail for RNN

Inside ARIMA folder

 .
├── auto_arima.py                       # AutoARIMA which sets value of p,q,d by choosing lowest AIC values
├── arima.py	                        # ARIMA Function which chooses values of p,q from ACF & PACF,d from ch-test
└── README.md                           # Code described in detail for ARIMA

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.