Giter Site home page Giter Site logo

swiftcloud's Introduction

Swiftcloud

SwiftCloud: a causally-consistent CRDT object database for client-side apps

This repository contains the prototype database SwiftCloud, originally described in the Inria tech report "SwiftCloud: Fault-Tolerant Geo-Replication Integrated all the Way to the Client Machine" by Marek Zawirski, Annette Bieniusa, Valter Balegas, Sérgio Duarte, Carlos Baquero, Marc Shapiro, and Nuno Preguiça (http://hal.inria.fr/hal-00870225), with an updated description appearing in a PhD thesis of Marek Zawirski on "Dependable Eventual Consistency with Replicated Data Types" (http://pagesperso-systeme.lip6.fr/Marek.Zawirski/papers/thesis.pdf). This codebase served in the experiments for the latter.

The code is licensed under The Apache License Version 2.0 (LICENSE), provided in the spirit of CRAPL license (CRAPL-LICENSE), i.e., it is ugly to read/use and far from production ready.

SwiftCloud crash course

TODO

Example applications

  • SwiftSocial - a simple social network application modeled after WaltSocial
  • Port of YCSB benchmark
  • File system with FUSE bindings

Running scripts

Deployment scripts for experiments are implemented in Groovy. The scripts are in scripts/groovy/deployment directory, both deployment classes definitions (such as SwiftBase.groovy, SwiftSocial2.groovy etc.) and concrete experiment instances (runsocialmanual.groovy etc.).

To run the scripts, you need:

  • groovy and ant installed on your machine, and
  • bin/ directory with compiled sources (e.g., generated by Eclipse by default)
  • ssh access configured for the target machine. In the case of EC2 machines used in experiments, the simplest is to configure your ssh like this:
Host *.compute.amazonaws.com
	StrictHostKeyChecking no
	UserKnownHostsFile=/dev/null
	IdentityFile PATH_TO_SSH_KEY_GOES_HERE

Host *.compute-1.amazonaws.com
	StrictHostKeyChecking no
	UserKnownHostsFile=/dev/null
	IdentityFile PATH_TO_SSH_KEY_GOES_HERE

To run experiments, use scripts from scripts/groovy/swift/deployment E.g. to run a single swiftsocial experiment manually:

./scripts/groovy/swift/deployment/runsocialmanual.groovy

(TODO: edit that example to modify SwiftSocial2 parameters)

E.g. to run a series of experiments oriented at scalability:

./scripts/groovy/swift/deployment/runscalabilitythroughput.groovy

The experiments generate log files. To generate plots from the logs, use scripts from eval_R/. e.g. to generate a detailed analysis of a run:

Rscript eval_R/analyze_run.R all <run_logs.tar.gz> [output directory]

e.g. to compare different runs use eval_R/compare_runs.R and associated Makefiles.

swiftcloud's People

Contributors

zawir avatar smduarte avatar bieniusa avatar eipifi avatar balegas avatar

Watchers

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