Giter Site home page Giter Site logo

dfs's Introduction

Distributed File System

Innopolis Unversity, 2019
Distributed Systems

Team

Andrey Volkov
Madina Gafarova
Gleb Petrakov

Structure

Architecture

client

A simple Python package to perform operations to FS from user space.

Calls

Create a new instance of client with Client(nameserver_addr), where nameserver_addr is nameserver ip address.

naming_server

A Django server for managing storage nodes and to transit filesystem operations to storage servers.

Original Docker image: regzon/dfs-naming-server

Port: 6500

Running

Environment

Set up all environmental variables within .env file (example given).

Execute to export variables manually:
export $(grep -v '^#' .env | xargs)

Docker

Images:

regzon/dfs-naming-server - naming server image.
https://hub.docker.com/r/regzon/dfs-naming-server

regzon/dfs-storage-server - storage server image.
https://hub.docker.com/r/regzon/dfs-storage-server

Build

To build specific image, run:

docker build -t <image_name>:<image_tag> ./<context>

E. g.: docker build -t regzon/dfs-naming-server ./naming_server

Run

Execute to run container: docker run -d -it --restart=always --name=<name> -p <port>:<port> <image>

Docker-Compose

Execute to build and run the whole system within docker-compose environment:
docker-compose up -d --build

Execute to stop all containers:
docker-compose down -v

Docker Swarm

Initialize Swarm node:
docker swarm init --advertise-addr <ip_address>

Clone this repo:
git clone https://github.com/regzon/dfs && cd dfs

Execute to export variables for Docker Swarm:
export $(grep -v '^#' .env | xargs)

Deploy stack:
docker stack deploy --compose-file docker-compose.yml dfs

dfs's People

Contributors

gafmn avatar regzon avatar imajou avatar

Watchers

James Cloos avatar  avatar  avatar  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.