Coder Social home page Coder Social logo

dist_sys's Introduction

Proyecto de Sistemas Distribuidos

Autores: C411 - Harold Rosales Hernandez C411 - Oscar Luis Hernadez Solano

Modo de uso

python3 client.py client-ip client-port bootstrap-routing-node-ip bootstrap-routing-port

• add -f file-list -t tag-list

Copia uno o más ficheros hacia el sistema y estos son inscritos con las etiquetas contenidas en tag-list.

• delete -q tag-query

Elimina todos los ficheros que cumplan con la consulta tag-query.

• list -q tag-query

Lista el nombre y las etiquetas de todos los ficheros que cumplan con la consulta tag-query.

• add-tags -q tag-query -t tag-list

Añade las etiquetas contenidas en tag-list a todos los ficheros que cumpan con la consulta tag-query.

• delete-tags -q tag-query -t tag-list

Elimina las etiquetas contenidas en tag-list de todos los ficheros que cumplan con la consulta tag-query.

• get -q tag-query

Descarga todos los ficheros que cumplan con la consulta tag-query. Los ficheros seran almacenados en la carpeta 'downloads' del Proyecto.

Inicializar la red

Iniciar:

python3 first_node.py bootstrap-routing-node-ip bootstrap-routing-port

Practical Use Example

  1. Start a new network

    python3 start_network.py
    
  2. Start talking to a node member of that network created above, and send some files

    python3 client.py 127.0.0.1 8000 127.0.0.1 9000
    
  3. Send a file

    python3 add -f foto_test.jpg -t f1
    
  4. Check the image we just uploaded to the system

    python3 list -q f1
    
  5. In theory the file f1 should'nt be just on the node 127.0.0.1:9000, it should be distributed on the network. So if if the node went down, we still should be able to recover the file. Let's try do that

  6. Kill the node

    kill -9 127.0.0.1 9000
    
  7. Recover the file

    python3 list -q f1
    
  8. File should be listed, with a warning that the connection to the previous node has been lost

dist_sys's People

Contributors

oschdez97 avatar

Watchers

 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.