Coder Social home page Coder Social logo

commanded-swarm-registry's Introduction

Commanded Swarm registry

Distributed process registry using Swarm for Commanded.

Supports running Commanded on a cluster of nodes.

MIT License

Build Status


Overview


Contributing

Pull requests to contribute new or improved features, and extend documentation are most welcome.

Please follow the existing coding conventions, or refer to the Elixir style guide.

You should include unit tests to cover any changes. Run mix test to execute the test suite.

Need help?

Please open an issue if you encounter a problem, or need assistance. You can also seek help in the Gitter chat room for Commanded.

For commercial support, and consultancy, please contact Ben Smith.

commanded-swarm-registry's People

Contributors

slashdotdash avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

commanded-swarm-registry's Issues

Not all projections are running correctly

I have a setup with libcluster and three cluster nodes, and I sometimes get errors like the following.

18:59:50.813 [warn]  [swarm on app@server] [tracker:handle_topology_change] handoff failed for {CommandedApplication, Commanded.Event.Handler, "Projectors.Object"}: {{%RuntimeError{message: "attempted to call GenServer #PID<0.3862.0> but no handle_call/3 clause was provided"}, [{Commanded.Event.Handler, :handle_call, 3, [file: 'lib/gen_server.ex', line: 773]}, {:gen_server, :try_handle_call, 4, [file: 'gen_server.erl', line: 661]}, {:gen_server, :handle_msg, 6, [file: 'gen_server.erl', line: 690]}, {:proc_lib, :init_p_do_apply, 3, [file: 'proc_lib.erl', line: 249]}]}, {GenServer, :call, [#PID<0.3862.0>, {:swarm, :begin_handoff}, 5000]}}

18:59:50.813 [error] GenServer #PID<0.3487.0> terminating
** (RuntimeError) attempted to call GenServer #PID<0.3862.0> but no handle_call/3 clause was provided
    (commanded 1.2.0) lib/gen_server.ex:773: Commanded.Event.Handler.handle_call/3
     (stdlib 3.12.1) gen_server.erl:661: :gen_server.try_handle_call/4
    (stdlib 3.12.1) gen_server.erl:690: :gen_server.handle_msg/6
    (stdlib 3.12.1) proc_lib.erl:249: :proc_lib.init_p_do_apply/3
Last message: {:DOWN, #Reference<0.1551621646.1983119361.7440>, :process, #PID<0.3862.0>, {%RuntimeError{message: "attempted to call GenServer #PID<0.3862.0> but no handle_call/3 clause was provided"}, [{Commanded.Event.Handler, :handle_call, 3, [file: 'lib/gen_server.ex', line: 773]}, {:gen_server, :try_handle_call, 4, [file: 'gen_server.erl', line: 661]}, {:gen_server, :handle_msg, 6, [file: 'gen_server.erl', line: 690]}, {:proc_lib, :init_p_do_apply, 3, [file: 'proc_lib.erl', line: 249]}]}}

I'm not sure how to debug this. This means that the projectors stop working. When I restart a node they start again but then I get the same kinds of errors and not all projectors are running.

I don't really care if there are errors in the log, but I want my projectors to eventually be running, even if it takes a few restarts when taking a node down or up.

My setup looks like this: in my application I start the projectors as children to my application supervisor. Is there a good way to make sure that my projections are not going away when restarting a node? Should I look for something in particular in the logs?

Broken with Commanded 0.19

Interim fix:

{:commanded, "~> 0.19", override: true},
{:commanded_swarm_registry, "~> 0.2",
github: "commanded/commanded-swarm-registry", ref: "b48e18b"}

Cheers! ๐Ÿป

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.