Giter Site home page Giter Site logo

negasus / rplx Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 3.54 MB

Golang library for multi-master replication integer variables with TTL

License: MIT License

Makefile 0.35% Go 99.15% Dockerfile 0.50%
go golang golang-library multimaster replication

rplx's Issues

Add prometheus metrics

Add prometheus metrics

  • count of incoming/outcomping sync requests
  • size of sync requiests
  • count of remote nodes
    etc.

Possible write to closed channel

While closing channel in node.go#105 close(n.syncQueue), possible write to channel in node_sync.go#16 case n.syncQueue <- struct{}{}:

Implement compacting values from not exists nodes

Save memory proposal.

If many nodes leaved cluster (and possible joined to cluster with new ID), its values with old IDs will be take memory forever.

Consider compacting proccess for orphans values to one virtual node value.

For example. Node2 and greater are orphans

Var1:
node1: 100
node2: 200
node3: 300
node4: 400

After compacting

Var1:
node1: 200
SpecialVirtualNode: 200+300+400

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.