Code Monkey home page Code Monkey logo

rfas's Introduction

RFAS contains two modules:
1. ventsink - library which allows for certain Scala collections (ex. List) its operations
              (ex. map, filter, flatMap) to be executed in a distributed fashion, across a compute grid.
              As a result, computationally intensive tasks could be ran in parallel, utilizing
              multiple computing resources.
              It's an extension to Scala's collection library and preserves the same Collections API.

2. worker   - server which applies functions. It's a multithreaded application which accepts requests
              from ventsink containing a function and a parameter, then applies the function to the
              parameter and finally sends the result of the function application back to ventsink.

Prerequisites
-------------
1. RFAS uses ZeroMQ to exchange messages between nodes. Therefore, ZeroMQ must be installed on all nodes
   (client and workers).
2. LD_LIBRARY_PATH must be defined and point to 0MQ libraries directory (ex.: /usr/local/lib).
3. Java Runtime must be installed on all nodes.
4. All worker nodes must have client JAR file in the classpath (due to lack of remote class loading).

Quick Setup (Linux)
-------------------
1. Install ZeroMQ:
   a) sudo apt-get install libtool autoconf automake
   b) sudo apt-get install uuid-dev g++
   c) download and unpack the latest zeromq distribution (currently 2.1.6):
      wget http://download.zeromq.org/zeromq-2.1.6.tar.gz
      gunzip zeromq-2.1.6.tar.gz
      tar xvf zeromq-2.1.6.tar
   d) ./configure
   e) make
   f) sudo make install
   g) sudo ldconfig (just ignore the error it throws)

2. Install Java bindings for ZeroMQ:
   a) set JAVA_HOME env variable to point to JDK installation. For example:
      export JAVA_HOME=/usr/lib/jvm/java-6-sun
   b) download the source of the java binding from github:
      wget --no-check-certificate  https://github.com/zeromq/jzmq/zipball/master
   c) ./autogen.sh
   d) ./configure
   e) make
   f) make install

Running
-------
There are two parts to run: client node and worker nodes. Thanks to ZeroMQ, it does not matter which
part we start first. Nevertheless, to ensure equal distribution of work, starting all workers first
and then the master node is the recommended approach.

Worker start script expects one parameter to be specified: bind address. This is the host name of
the master node. Obviously, if running on a single computer, it should be specified as localhost.
Example:
        ./run.sh localhost

Current Limitations
-------------------
1. Only single parameter functions can be remotely applied.
2. Parameters and functions must be *fully* serializable to be remotely applied.

Desired Improvements
--------------------
1. Remote class loading on the worker side.
2. Define a common project on which ventsink and worker shall depend (apparently this is possible in SBT).
3. Write some unit tests.
4. Incorporate some kind of logging (ex. SLF4S, Configgy, etc...).

rfas's People

Contributors

nermin avatar

Stargazers

 avatar  avatar

Watchers

 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.