Commit Graph

23 Commits

Author SHA1 Message Date
Steve Fan 42f993b96d reset advertise addr if bad addr, same as memberlist behavior
(cherry picked from commit c27d37591589c7de2ca977e2e4c750b4fa4fb7a3)
2022-02-11 16:09:04 +01:00
Steve Fan c9afa9f5ef add initial advertise(Addr|Port) support
(cherry picked from commit 2a0b4f335eb54caa19ad908cdc441d73b57d68ca)
2022-02-11 16:08:56 +01:00
Jacob McSwain 480cbb45f5 Add keepalive to wesher
(cherry picked from commit 982cac3b1a69d5759eaf477785301a564b551bc5)
2022-02-08 10:59:20 +01:00
kaiyou fd8b63c291 Make the MTU configurable 2020-11-29 09:31:54 +01:00
kaiyou a52d693f56 Allow specific address to be specified 2020-06-22 18:29:03 +02:00
kaiyou da04afe24b Rejoin join nodes automatically
This adds a --rejoin setting for rejoining
cluter nodes automatically when gone.
2020-06-16 10:46:52 +02:00
kaiyou 8637377cec Implement networks routed through wesher
This adds an option for specifying a routed network. Every node route
that belongs to that routed network will be announced to the cluster and
every other node will direct traffic to that node for said route.
2020-06-16 10:37:55 +02:00
kaiyou 129291e848 Use interface name instead of cluster name
The cluster name option is not required anymore and
removed, the interface name is used to name the cluster
directly. For backward compatibility, the old path for storing
cluster state is tried as a fallback when loading.
2020-05-27 23:26:29 +02:00
kaiyou adc7a807df Expose ClusterName instead of Banner/StatePath 2020-05-27 23:26:29 +02:00
kaiyou f1de2def7f Add Banner and StatePath settings
Banner is used to carry a custom etc/hosts banner while StatePath holds
the path to cluster state storage.
2020-05-27 23:26:29 +02:00
kaiyou c50011bc36 Use errors.Wrap instead of manual formatting 2020-05-13 13:52:54 +02:00
kaiyou dadfbee083 Split the application into modules
Splitting into modules will help keep concerns separate,
at the cost of a slightly more verbose code.
2020-05-13 13:52:54 +02:00
kaiyou a5a55e9447 Properly wrap errors from config.go
Co-authored-by: Leo Antunes <leo@costela.net>
2020-05-13 13:52:54 +02:00
kaiyou 7adb944f92 Properly wrap errors from config.go
Co-authored-by: Leo Antunes <leo@costela.net>
2020-05-13 13:52:54 +02:00
kaiyou bce8a0451a Move the bindAddress computation to config parsing 2020-05-13 13:52:54 +02:00
Leo Antunes 2edf641c46 add option for binding to interface
this effectively still bind to an address, but resolves it based on the
interface instead of explicitly.
2019-07-21 23:00:18 +02:00
Leo Antunes 694fd4dd86 fix broken IP detection for private-only hosts 2019-03-27 22:23:15 +01:00
Leo Antunes abb832d159 be more explicit about --bind-addr 2019-03-27 00:47:23 +01:00
Leo Antunes a3e1573160 work around memberlist not listening on public IPs 2019-03-27 00:26:59 +01:00
Leo Antunes 407bfbfb7e add version flag 2019-03-26 23:32:36 +01:00
Leo Antunes e89a7141e5 add hosts file support 2019-03-26 23:32:36 +01:00
Leo Antunes b1ff41c523 simplify option names 2019-03-26 23:32:36 +01:00
Leo Antunes 5e01de00c1 first working PoC 2019-03-26 23:32:36 +01:00