Documentation ¶
Index ¶
Constants ¶
View Source
const ( SUPERSTEP masterState = iota DEAD DONE SAVESTATE )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Master ¶
type Master struct {
// contains filtered or unexported fields
}
Master handles all computations for the Master Node
func NewMaster ¶
func NewMaster(numPartitions, checkpoint int, ipFile, graphFile string, port string, primaryAddress string) *Master
NewMaster Constructor for Master struct
func (*Master) AssignPartitions ¶
AssignPartitions Assign partToVert to active nodes
func (*Master) DisseminateGraph ¶
func (m *Master) DisseminateGraph()
DisseminateGraph Helper function to disseminate graph to workers
func (*Master) InitConnections ¶
func (m *Master) InitConnections()
InitConnections Initializes connections with all machines via ip addresses found in nodeAdrs []string. Generates a list of activeNodes which are the machines that Master will request to start Superstep.
type Vertex ¶
type Vertex struct { Id int Val float64 InMsg []float64 OutEdges []edgeReader NumVertices float64 // contains filtered or unexported fields }
func (*Vertex) VoteToHalt ¶
Click to show internal directories.
Click to hide internal directories.