Skip to content
#

raft

Here are 402 public repositories matching this topic...

JeanGolang
JeanGolang commented Feb 7, 2017

Hello Philip!
I think there is an issue with this part of the code of rqlite (store/store.go).

func (s *Store) Database(leader bool) ([]byte, error) {
	if leader && s.raft.State() != raft.Leader {
		return nil, ErrNotLeader
	}
	// Ensure only one snapshot can take place at once, and block all queries.
	s.mu.Lock()
	defer s.mu.Unlock()

	f, err := ioutil.TempFile("", "rqlilte-snap-
alexei-osipov
alexei-osipov commented Oct 7, 2020

Use case and problem

We make a system that uses SOFAJRaft for leader election and we also want to use it for cluster member management. The basic idea that we want to consider our cluster member "live" for our systems as long as it's "live" for current leader of SOFAJRaft cluster.

As for now SOFAJRaft provides a Node#listAlivePeers() API method that almost sufficient for our task. The mi

HichuYamichu
HichuYamichu commented Oct 8, 2020

Or more specifically how does one build transport component?

I'm feeling kind of lost after reading docs, readme and examples as none of them (at least to my knowledge) shows/points to information about transport implementation. Readme mentions gRPC but I couldn't find any further information on the matter besides raft-rs/proto/, which is

Improve this page

Add a description, image, and links to the raft topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the raft topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.