Coder Social home page Coder Social logo

al8n / memberlist Goto Github PK

View Code? Open in Web Editor NEW
16.0 3.0 3.0 8.66 MB

A highly customable, adaptable, runtime agnostic and WASM/WASI friendly Gossip protocol (SWIM) which helps manage cluster membership and member failure detection.

License: Mozilla Public License 2.0

Rust 99.66% Shell 0.17% PowerShell 0.17%
async asynchronous-programming distributed-consensus distributed-consensus-algorithms gossip gossip-protocol memberlist rust rust-

memberlist's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

memberlist's Issues

Add example

Does anyone have a minimal example of using memberlist?

If someone is able to help me get started, I'll gladly contribute an example to the repo.

Thanks!

[BUG]: `QuicTransport` does not release the port after shutdown the `Memberlist` in test case

When two memberlist instances (using QuicTransport) in the same test case, and node1 joins node2, then, shut down node1, drops node1, and finally brings back node1 by using the same configuration, it will report the error "Address already in use". This may be caused by that the remote (node2) still holds the connection to node1, and the underlying socket address is held by the connection.

Pseudo code:

let n1 = Memberlist::new(...).await.unwrap();
let n2 = Memberlist::new(...).await.unwrap();

n1.join(n2).await.unwrap();

n1.shutdown().await.unwrap();
drop(n1);

let n1 = Memberlist::new(...).await.unwrap(); // panic: "Address already in used".

Roadmap

Stage 1

  • Transports support
    • TCP/TLS/NativeTLS & UDP Transport
    • QUIC & QUIC Transport #15
      • quinn support #15
      • s2n support #15
  • Testing
    • state unit tests #25
    • network unit tests
      • NetTransport unit tests #14
      • QuicTransport unit tests #16
    • memberlist unit tests #25
    • Add CI
      • Code coverage over 75%
  • Documentation
    • 100% document

Stage 2

  • Bindings
    • #31
    • #32
    • wasmer
      • Basic support
      • Advanced support (allow users implement Delegate trait by other languages and integrate it into memberlist by Wasmer).
  • QUIC & UDP Transport support
  • Tutorials

[windows] CI: Fix `ci/setup_subnet_windows.ps1`

I am not familiar with Windows. I do not know why the sub-networks added by ci/setup_subnet_windows.ps1 cannot be connected and bind for IPv6 addresses like Ubuntu and MacOS in GitHub Action CI.

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.