epaxos

package
v0.0.0-...-5782b8f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WHITE int8 = iota
	GRAY
	BLACK
)
View Source
const ADAPT_TIME_SEC = 10
View Source
const BF_K = 4
View Source
const BF_M_N = 32.0
View Source
const COMMIT_GRACE_PERIOD = 10 * 1e9 // 10 second(s)
View Source
const FALSE = uint8(0)
View Source
const HT_INIT_SIZE = 200000
View Source
const MAX_DEPTH_DEP = 10
View Source
const MAX_INSTANCE = 10 * 1024 * 1024
View Source
const TRUE = uint8(1)

Variables

This section is empty.

Functions

This section is empty.

Types

type Exec

type Exec struct {
	// contains filtered or unexported fields
}

type Instance

type Instance struct {
	Cmds []state.Command

	Status int8
	Seq    int32
	Deps   []int32

	Index, Lowlink int
	// contains filtered or unexported fields
}

type LeaderBookkeeping

type LeaderBookkeeping struct {
	// contains filtered or unexported fields
}

type Replica

type Replica struct {
	*genericsmr.Replica

	InstanceSpace [][]*Instance // the space of all instances (used and not yet used)

	CommittedUpTo []int32 // highest committed instance per replica that this replica knows about
	ExecedUpTo    []int32 // instance up to which all commands have been executed (including iteslf)

	IsLeader bool // does this replica think it is the leader
	// contains filtered or unexported fields
}

func NewReplica

func NewReplica(replica *genericsmr.Replica, id int, peerAddrList []string, thrifty bool, exec bool, lread bool, dreply bool, beacon bool, durable bool, batchWait int, transconf bool, failures int, storageParentDir string, fastLearn bool, emulatedSS bool, emulatedWriteTime time.Duration, cmpCommitExec bool, cmpCommitExecLoc string, sepExecThread bool, deadTime int32, sendToFastQrm bool) *Replica

func (*Replica) BatchingEnabled

func (r *Replica) BatchingEnabled() bool

func (*Replica) BeTheLeader

func (*Replica) CloseUp

func (r *Replica) CloseUp()

type SCComponent

type SCComponent struct {
	// contains filtered or unexported fields
}

type ToRecord

type ToRecord struct {
	CommitExecutionComparator.InstanceID
	time.Time
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL