Giter Site home page Giter Site logo

agismail / zkuacoordination Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 391 KB

Distributed Coordination of Redundant OPC UA Servers with Apache ZooKeeper

License: GNU General Public License v3.0

Makefile 0.09% Shell 16.09% M4 0.05% C 83.72% C++ 0.05%
zookeeper opcua opc-ua coordination redundancy iec62541 c iiot

zkuacoordination's Introduction

Coordinating Redundant OPC UA Servers

This code accompanies the IEEE ETFA'17 paper "Coordinating Redundant OPC UA Servers". The paper is available under the docs folder and explains the architecture, data model, and implementation.

This code is for PoC purposes and should not be used in production.

Compiling

Based on a debootstrapped debian stretch VM:

Dependencies:

apt-get install -y dh-autoreconf wget make git openjdk-8-jdk libcppunit-dev libcppunit-doc libtool patch libzookeeper-mt-dev libjansson-dev

Compile:

ACLOCAL="aclocal -I /usr/share/aclocal" autoreconf -if
./configure && make

Running a zkUA Client, Server, Failover Controller

The ZooKeeper server/quorum should already be running.

Configure the zkUA configuration file (clientConf.txt and or serverConf.txt) and execute as so:

./cli_mt_UA_client
./cli_mt_UA_server
./cli_mt_UA_failoverController

The server should be started before the failoverController.

Dockerfile

Build the docker image using:

docker build -t zkua .

Alternatively pull the image from:

docker pull amismail/zkuaRedundancy

Run the docker container using the command:

docker run -it -p 16664:16664 --name zkua_1 zkua /bin/bash

Port 16664 is the default port configured in serverConf.txt for the zkUA Server. This is the port you connect to using a zkUA Client or UA Client (e.g., using UA Expert).

NOTE: You will need a ZooKeeper cluster running - update the config files with ZooKeeper's IPs and port numbers accordingly.

Limitations

Currently, the code is limited to replicating nodes with a namespace Index > 0 and nodes with numeric identifiers.

Methods are not replicated.

zkuacoordination's People

Stargazers

 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.