-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Please see the changelog for more detailed changes.
- Loading branch information
Showing
12 changed files
with
306 additions
and
298 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
## 2.0.0 | ||
|
||
### Added | ||
|
||
- Configurable `connect` and `disconnect` options for implementing strategies | ||
on top of custom topologies | ||
- The ability to start libcluster for more than a single topology | ||
- Added `polling_interval` option to Kubernetes strategy | ||
- Added ability to specify a list of hosts for the Epmd strategy to connect to on start | ||
|
||
### Removed | ||
|
||
- Cluster.Events module, as it was redundant and unused | ||
|
||
### Changed | ||
|
||
- Configuration format has changed significantly, please review the docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,22 @@ | ||
# This file is responsible for configuring your application | ||
# and its dependencies with the aid of the Mix.Config module. | ||
# This file is provided as an example of how to configure libcluster in your own apps | ||
use Mix.Config | ||
|
||
config :libcluster, | ||
strategy: Cluster.Strategy.Epmd | ||
# You can start clustering for one or more topologies. | ||
topologies: [ | ||
example: [ | ||
# The selected clustering strategy. Required. | ||
strategy: Cluster.Strategy.Epmd, | ||
# Options for the provided strategy. Optional. | ||
strategy_opts: [], | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
bitwalker
Author
Owner
|
||
# The function to use for connecting nodes. The node | ||
# name will be appended to the argument list. Optional | ||
connect: {:net_kernel, :connect, []}, | ||
# The function to use for disconnecting nodes. The node | ||
# name will be appended to the argument list. Optional | ||
disconnect: {:net_kernel, :disconnect, []}, | ||
# A list of options for the supervisor child spec | ||
# of the selected strategy. Optional | ||
opts: [] | ||
] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Maybe it would be better to call this
child_spec
or child_optsinstead of
optsto avoid confusion with
config? You can keep it backwards compatible by doing
topology[:child_spec] || topology[:opts]`?