v0.5.0-alpha.3
Pre-release
Pre-release
buraksezer
released this
27 Mar 22:10
·
108 commits
to master
since this release
Here is the third alpha of v0.5.x tree. It includes many improvements including:
- Initial implementation of cluster events. Now users can observe the cluster state by subscribing to
cluster.events
channel. Olric sends events in JSON format. Sample fromredis-cli
:
1) "message"
2) "cluster.events"
3) "{\"timestamp\":1648410047096938000,\"source\":\"127.0.0.1:3320\",\"kind\":\"node-left-event\",\"node_left\":\"127.0.0.1:3321\"}"
1) "message"
2) "cluster.events"
3) "{\"timestamp\":1648410056207893000,\"source\":\"127.0.0.1:3320\",\"kind\":\"node-join-event\",\"node_join\":\"127.0.0.1:3321\"}"
1) "message"
2) "cluster.events"
3) "{\"timestamp\":1648410056107344000,\"source\":\"127.0.0.1:3321\",\"kind\":\"node-join-event\",\"node_join\":\"127.0.0.1:3320\"}"
Available events:
- node-join-event
- node-left-event
- fragment-migration-event
- fragment-received-event
It's not fully documented yet. See events/cluster_events.go
file to get more information about the feature.
Install with the following command:
go get github.com/buraksezer/[email protected]