Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1206 delete mcast #223

Merged
merged 2 commits into from
Dec 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 0 additions & 49 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ Strategy | Description
-----------|--------------------------------------
manual | Join cluster manually
static | Static node list
mcast | IP Multicast
dns | DNS A Records
etcd | etcd
k8s | Kubernetes
Expand All @@ -49,54 +48,6 @@ Erlang config:
]}},
```

### Cluster using IP Multicast

Cuttlefish style config:

```
cluster.discovery = mcast

## IP Multicast Address.
##
## Value: IP Address
cluster.mcast.addr = 239.192.0.1

## Multicast Ports.
##
## Value: Port List
cluster.mcast.ports = 4369,4370

## Multicast Iface.
##
## Value: Iface Address
##
## Default: 0.0.0.0
cluster.mcast.iface = 0.0.0.0

## Multicast Ttl.
##
## Value: 0-255
cluster.mcast.ttl = 255

## Multicast loop.
##
## Value: on | off
cluster.mcast.loop = on
```

Erlang config:

```
{cluster_discovery,
{mcast, [
{addr, {239,192,0,1}},
{ports, [4369,4370]},
{iface, {0,0,0,0}},
{ttl, 255},
{loop, true}
]}},
```

### Cluster using DNS A records

Cuttlefish style config:
Expand Down
10 changes: 0 additions & 10 deletions data/app.mcast.config

This file was deleted.

9 changes: 0 additions & 9 deletions etc/ekka.config.example
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,6 @@
%% {seeds, ['[email protected]', '[email protected]']}
%% ]}},

%% Clustering via IP Multicast
%% {cluster_discovery, {mcast, [
%% {addr, {239,192,0,1}},
%% {ports, [4369,4370]},
%% {iface, {0,0,0,0}},
%% {ttl, 255},
%% {loop, true}
%% ]}},

%% Clustering via DNS A Record
%% {cluster_discovery, {dns, [
%% {name, "localhost"},
Expand Down
4 changes: 0 additions & 4 deletions scripts/cluster.mcast.sh

This file was deleted.

231 changes: 0 additions & 231 deletions src/ekka_cluster_mcast.erl

This file was deleted.

9 changes: 0 additions & 9 deletions src/ekka_cluster_sup.erl
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,6 @@ stop_child(M) ->

init([]) ->
Childs = case ekka:env(cluster_discovery) of
{ok, {mcast, Options}} ->
Mcast = #{id => ekka_cluster_mcast,
start => {ekka_cluster_mcast, start_link, [Options]},
restart => permanent,
shutdown => 5000,
type => worker,
modules => [ekka_cluster_mcast]
},
[Mcast];
{ok, {etcd, Options}} ->
case proplists:get_value(version, Options, v3) of
v3 ->
Expand Down
2 changes: 1 addition & 1 deletion src/ekka_locker.erl
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ start_link(Name, LeaseTime) ->
stop() ->
stop(?SERVER).

-spec(stop(atom()) -> ok).
-spec(stop(pid() | atom()) -> ok).
stop(Name) ->
gen_server:call(Name, stop).

Expand Down
Loading
Loading