command
module
Version:
v0.0.0-...-555abad
Opens a new window with list of versions in this module.
Published: Jan 28, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 18
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Build local cluster using Ring
This examples uses loopback
interface to build a ring of multiple processes locally.
Usage
- Build
go build local.go
- Start a peer
./local -bindaddr=127.0.0.1
- Start another peer in different terminal
./local -bindaddr=127.0.0.2 -join-member=127.0.0.1
-
You can start as many peers as you want with different loopback bindaddr.
-
Check the ring page
Go to ring page of one of the peers. Each peer's ring page should show all the peers in the ring. Should look something like below.
e.g: http://127.0.0.1:8100/ring

- Also check the memberlist status page.
e.g: https://127.0.0.1:8100/kv

- You can also get the
ring
information as a client.
./local -mode=client
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.