Coder Social home page Coder Social logo

sachinites / transparenthighavailability Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 2.0 64 KB

Transparent High Availability project - sync application state to redundant machine for High Availability

C 98.80% Makefile 1.16% C++ 0.05%
high availability pointer gcc standby tha

transparenthighavailability's Introduction

TransparentHighAvailability

Transparent High Availability project - sync application state to redundant machine for High Availability

Abstract

This is the High Availability Project, design to sync the application heap state to standby/redundant machine via sockets. The machines are named as Active and standby machines respectively. Any operation done by the user on Active which results in Heap Memory state change of the application is synced to the standby state. The goal is to maintain the Active and standby application heap state the mirror images of each other at all point of time, so that, in the event when Active machine collapses, the application can resume on standby from the same state. HA Infra has been designed that only changed data structures are synced to standby machine. Design follow Registration model - Developer need to register new Data structures to be HA supported with the infra, and infra will take care to sync these data structure whenever they are updated. Developer need not write any Serialize/deserialize code for new structures to be syncd. In Addition, infra supports Memory leak detection as well as checheckpointing of the application state. User can save and reload application state from persistent storage as well.

  1. This is a Project that implements the Transparent High Availability in C.
  2. Started on 7 Oct 2016
  3. completed on 28 Oct 2016
  4. ToDo : Support for Arrays of pointers
  5. Arrays of pointers is not yet supported
  6. Checkpointing is Supported.

/* Run this project*/

Requirement:

  1. You should have gcc compiler ( this project was build with version gcc version 4.8.4)
  2. run make in THA/ACTIVE. This will compile the THA library
  3. goto THA/DemoApp/ACTIVE, run make again. This will create the executable for Demo App to be run on Active
  4. copy all files from THA/DemoApp/ACTIVE to THA/DemoApp/STANDBY
  5. in THA/DemoApp/STANDBY dir, open app_main.c
  6. in main(), change the value of the variable from 1 to 0 for I_AM_ACTIVE_CP. Save and close the file
  7. run make in THA/DemoApp/STANDBY. This will create executable to be run on standby machine
  8. run THA/DemoApp/STANDBY/exe first, then run THA/DemoApp/ACTIVE/exe
  9. Now enjoy the program, you will see the objects being synced to standby whenever you choose option 11 in main menu.

transparenthighavailability's People

Contributors

sachinites 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.