Skip to content

Latest commit

 

History

28 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ClusterUplink

Libcluster strategy for uplink. This strategy will connect to the unix socket inside your container and retrieve service discovery endpoint. It will then call the endpoint and retrieve the list of instances to connect to.

Installation

If available in Hex, the package can be installed by adding libcluster_uplink to your list of dependencies in mix.exs:

def deps do
  [
    {:libcluster_uplink, "~> 0.1.0"}
  ]
end
config :libcluster,
  topologies: [
    example: [
      strategy: Cluster.Strategy.Uplink,
      config: [
        app_name: "your-app"
      ]
    ]
  ]

Configuration

Key Required Description
:app_name The name of your Elixir application
:lxd_socket Path to the LXD Unix socket (defaults to /dev/lxd/sock)
:req_options Options passed to Req.get/2 (defaults to [])

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/libcluster_uplink.

About

Uplink strategy for libcluster

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages