Giter Club home page Giter Club logo

dapp's Introduction

Distributed Cloud Storage

This project is for a course CSE811 in Ajou Univ. The application is basically a client-server model but it has different server nodes for better fault tolerance and to distribute client traffic. Each component is deployed in a docker container except the clients. The server container will be tied in a same network so that each node can communicate with each other.

The detail of implementation will not be explained since the code is pretty much self-explantory.

Caution

  • Master & Slaves should run first and they need a time to be tied with each other, which means that there must be a time to the slave to send a capacity to the master.

Run server as container

$ ./server.sh

Run Client as a container

$ ./client.sh

Run Server in local

# Master
$ pwd
dapp_project/src
$ javac dapp/Master.java
$ java dapp.Master

# Slave
$ pwd
dapp_project/src
$ javac dapp/Slave.java
$ java dapp.Slave 7001

Run Client in local

# Master
$ pwd
dapp_project/src
$ javac dapp/Client.java
$ java dapp.Client

Commands in Client

# List files in the server
$ java dapp.Client list

# Download a file 
$ java dapp.Client download <file>

# Upload a file 
$ java dapp.Client upload <file>

dapp's People

Contributors

jhk16 avatar

Watchers

 avatar  avatar  avatar

dapp's Issues

Redundant replication

When master node execute upload operation in local, replication function not work well..

File replicated by Master is odd.

I think we must use docker that run Master&Slave node because their storage is separated when we use docker.

Client node is independent.

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.