Giter Club home page Giter Club logo

dbaas's Introduction

#DBAAS

Final CC project repository

High available scalable and fault tolerant database as a service

    Dependencies
  • docker
  • docker-compose

Instructions

To run the CC Final project these are the following steps .

Initial setup

	I made a setup file you can run it instead of these commands
	- we need to have a network called mynet
	$sudo docker network create --subnet=172.27.0.0/16 --gateway=172.27.0.1 mynet
	For mac os some additional setup needs to be done about network

	- I used docker volumes used for scaling
	$sudo docker volume create data

	- Pull the rabbitmq:3.8.3-alpine and zookeeper images
	$sudo docker pull rabbitmq:3.8.3-alpine
	$sudo docker pull zookeeper:latest

	//Run the rabbitmq on the docker frst so that it gets 172.27.0.2 as IP	
	$sudo docker run --network=mynet --name=rmq rabbitmq:3.8.3-alpine

	//Run the zookeeper on docker so that it gets 172.27.0.3 as IP
	$sudo docker run --network=mynet --name=zoo zookeeper:latest

These commands must be executed to run the project

** Build the slave image . Go to the slaves folder and type .. Name of the image should be exactly same
$sudo docker build -t slaves_slave .

** After that you need to run the zookeep(a container for fault tolerance)
Go inside the zookeep_client folder
$sudo docker-compose up --build -d

** After that you need to start the orchestrator
Go inside the orchs_new folder
$sudo docker-compose up --build -d

To run the users and rides same concept (It works even without the docker just python app(inside rides) or python users(inside users))
Check the ports of users and rides before sending the requests
These are the steps to run our project

dbaas's People

Contributors

jnaneshd avatar sujay2611 avatar

Watchers

James Cloos avatar

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.