Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aQuaYi/MIT-6.824-Distributed-Systems
/ functions
Functions
473 in github.com/aQuaYi/MIT-6.824-Distributed-Systems
⨍
Functions
473
◇
Types & classes
96
↓ 58 callers
Method
join
tell the shardmaster that a group is joining.
src/shardkv/config.go:303
↓ 40 callers
Method
one
do a complete agreement. it might choose the wrong leader initially, and have to re-submit after giving up. entirely gives up after about 10 seconds.
src/raft/config.go:426
↓ 39 callers
Function
debugPrintf
debugPrintf 根据设置打印输出
src/raft/util.go:14
↓ 36 callers
Method
Enable
enable/disable a ClientEnd.
src/labrpc/labrpc.go:343
↓ 36 callers
Method
connect
attach server i to the net.
src/raft/config.go:235
↓ 35 callers
Function
check
(t *testing.T, ck *Clerk, key string, value string)
src/shardkv/test_test.go:15
↓ 34 callers
Method
call
(event fsmEvent, args interface{})
src/raft/fsm.go:39
↓ 32 callers
Function
randstring
(n int)
src/shardkv/config.go:20
↓ 29 callers
Method
disconnect
detach server i from the net.
src/raft/config.go:258
↓ 28 callers
Method
Query
(num int)
src/shardmaster/client.go:31
↓ 27 callers
Method
Call
send an RPC, wait for the reply. the return value indicates success; false means that no reply was received from the server.
src/labrpc/labrpc.go:84
↓ 26 callers
Method
leave
tell the shardmaster that a group is leaving.
src/shardkv/config.go:321
↓ 22 callers
Method
Connect
connect a ClientEnd to a server. a ClientEnd can only be connected once in its lifetime.
src/labrpc/labrpc.go:335
↓ 22 callers
Method
MakeEnd
create a client end-point. start the thread that listens and delivers.
src/labrpc/labrpc.go:300
↓ 21 callers
Method
checkOneLeader
check that there's exactly one leader. try a few times in case re-elections are needed.
src/raft/config.go:298
↓ 19 callers
Method
AddService
(svc *Service)
src/labrpc/labrpc.go:381
↓ 19 callers
Method
makeClient
()
src/shardkv/config.go:115
↓ 17 callers
Method
Decode
(e interface{})
src/labgob/labgob.go:52
↓ 17 callers
Method
Put
(key string, value string)
src/shardkv/client.go:130
↓ 17 callers
Method
begin
start a Test. print the Test message. e.g. cfg.begin("Test (2B): RPC counts aren't too high")
src/raft/config.go:478
↓ 16 callers
Method
ShutdownGroup
(gi int)
src/shardkv/config.go:194
↓ 16 callers
Method
cleanup
()
src/raft/config.go:224
↓ 16 callers
Method
end
end a Test -- the fact that we got here means there was no failure. print the Passed message, and some performance numbers.
src/raft/config.go:490
↓ 16 callers
Function
makeConfig
(t *testing.T, n int, unreliable bool)
src/raft/config.go:59
↓ 15 callers
Method
AddServer
(servername interface{}, rs *Server)
src/labrpc/labrpc.go:319
↓ 15 callers
Function
GenericTest
Basic test is as follows: one or more clients submitting Append/Get operations to set of servers for some period of time. After the period is over, t
src/kvraft/test_test.go:151
↓ 15 callers
Function
Put
(cfg *config, ck *Clerk, key string, value string)
src/kvraft/test_test.go:27
↓ 15 callers
Method
Start
Start 给 server 发送命令 the service using Raft (e.g. a k/v server) wants to start agreement on the next command to be appended to Raft's log. if this serv
src/raft/raft_method.go:122
↓ 14 callers
Method
Append
(key string, value string)
src/shardkv/client.go:133
↓ 14 callers
Method
Cleanup
()
src/labrpc/labrpc.go:156
↓ 14 callers
Method
Wait
Wait blocks until the currently scheduled work has completed. This happens when all tasks have scheduled and completed, the final output have been com
src/mapreduce/master.go:158
↓ 14 callers
Function
check
(cfg *config, t *testing.T, ck *Clerk, key string, value string)
src/kvraft/test_test.go:37
↓ 14 callers
Method
start1
start or re-start a Raft. if one already exists, "kill" it first. allocate new outgoing port file names, and a new state persister, to isolate previo
src/raft/config.go:135
↓ 13 callers
Method
Encode
(e interface{})
src/labgob/labgob.go:32
↓ 13 callers
Method
cleanup
()
src/shardkv/config.go:79
↓ 13 callers
Function
make_config
(t *testing.T, n int, unreliable bool, maxraftstate int)
src/shardkv/config.go:335
↓ 12 callers
Method
Join
(servers map[int][]string)
src/shardmaster/client.go:48
↓ 12 callers
Method
StartGroup
(gi int)
src/shardkv/config.go:261
↓ 12 callers
Function
debug
debug() will only print if debugEnabled is true
src/mapreduce/common.go:12
↓ 11 callers
Method
Leave
(gids []int)
src/shardmaster/client.go:66
↓ 11 callers
Method
makeClient
Create a clerk with clerk specific server names. Give it connections to all of the servers, but for now enable only connections to servers in to[].
src/kvraft/config.go:191
↓ 10 callers
Method
All
()
src/kvraft/config.go:157
↓ 10 callers
Function
MakeNetwork
()
src/labrpc/labrpc.go:130
↓ 10 callers
Function
MakeServer
()
src/labrpc/labrpc.go:375
↓ 10 callers
Function
MakeService
(rcvr interface{})
src/labrpc/labrpc.go:429
↓ 10 callers
Function
check
(t *testing.T, groups []int, ck *Clerk)
src/shardmaster/test_test.go:11
↓ 10 callers
Method
get
(pos uint)
src/linearizability/bitset.go:39
↓ 9 callers
Method
StartServer
start i'th server in gi'th group
src/shardkv/config.go:201
↓ 9 callers
Method
addHandler
(state fsmState, event fsmEvent, handler fsmHandler)
src/raft/fsm.go:29
↓ 8 callers
Method
Copy
Copy is
src/raft/persister.go:27
↓ 8 callers
Method
GetState
GetState 可以获取 raft 对象的状态 return currentTerm and whether this server believes it is the leader.
src/raft/raft_method.go:14
↓ 8 callers
Method
LogSize
Maximum log size across all servers
src/kvraft/config.go:82
↓ 8 callers
Method
StartServer
If restart servers, first call ShutdownServer
src/kvraft/config.go:287
↓ 8 callers
Method
begin
start a Test. print the Test message. e.g. cfg.begin("Test (2B): RPC counts aren't too high")
src/kvraft/config.go:399
↓ 8 callers
Method
end
end a Test -- the fact that we got here means there was no failure. print the Passed message, and some performance numbers.
src/kvraft/config.go:414
↓ 7 callers
Method
Register
Register is an RPC method that is called by workers after they have started up to report that they are ready to receive tasks.
src/mapreduce/master.go:36
↓ 7 callers
Method
Reliable
(yes bool)
src/labrpc/labrpc.go:160
↓ 7 callers
Method
ShutdownServer
Shutdown i'th server of gi'th group, by isolating it
src/shardkv/config.go:153
↓ 7 callers
Function
port
Cook up a unique-ish UNIX-domain socket name in /var/tmp. can't use current directory since AFS doesn't support UNIX-domain sockets.
src/mapreduce/test_test.go:122
↓ 7 callers
Method
set
(pos uint)
src/linearizability/bitset.go:27
↓ 6 callers
Method
All
()
src/shardmaster/config.go:130
↓ 6 callers
Method
ConnectAll
()
src/kvraft/config.go:165
↓ 6 callers
Function
Get
get/put/putappend that keep counts
src/kvraft/test_test.go:21
↓ 6 callers
Method
GetCount
()
src/labrpc/labrpc.go:414
↓ 6 callers
Function
RunWorker
RunWorker sets up a connection with the master, registers its address, and waits for tasks to be scheduled.
src/mapreduce/worker.go:119
↓ 6 callers
Function
check
Checks input file agaist output file: each input number should show up in the output file in string sorted order
src/mapreduce/test_test.go:46
↓ 6 callers
Function
cleanup
(mr *Master)
src/mapreduce/test_test.go:139
↓ 6 callers
Method
cleanup
()
src/kvraft/config.go:69
↓ 6 callers
Function
make_config
(t *testing.T, n int, unreliable bool, maxraftstate int)
src/kvraft/config.go:360
↓ 6 callers
Method
nCommitted
how many servers think a log entry is committed?
src/raft/config.go:359
↓ 5 callers
Method
DeleteServer
(servername interface{})
src/labrpc/labrpc.go:326
↓ 5 callers
Function
checkValue
(value interface{})
src/labgob/labgob.go:68
↓ 5 callers
Function
checkWorker
Workers report back how many RPCs they have processed in the Shutdown reply. Check that they processed at least 1 DoTask RPC.
src/mapreduce/test_test.go:90
↓ 5 callers
Method
crash1
shut down a Raft server but save its persistent state.
src/raft/config.go:98
↓ 5 callers
Method
mastername
master server name for labrpc.
src/shardkv/config.go:105
↓ 5 callers
Method
partition
Sets up 2 partitions with connectivity between servers in each partition.
src/kvraft/config.go:174
↓ 4 callers
Method
RaftStateSize
RaftStateSize is
src/raft/persister.go:51
↓ 4 callers
Function
call
call() sends an RPC to the rpcname handler on server srv with arguments args, waits for the reply, and leaves the reply in reply. the reply argument s
src/mapreduce/common_rpc.go:51
↓ 4 callers
Method
connectUnlocked
attach server i to servers listed in to caller must hold cfg.mu
src/shardmaster/config.go:80
↓ 4 callers
Method
connectUnlocked
attach server i to servers listed in to caller must hold cfg.mu
src/kvraft/config.go:107
↓ 4 callers
Method
disconnectUnlocked
detach server i from the servers listed in from caller must hold cfg.mu
src/shardmaster/config.go:104
↓ 4 callers
Method
disconnectUnlocked
detach server i from the servers listed in from caller must hold cfg.mu
src/kvraft/config.go:131
↓ 4 callers
Method
makeClient
Create a clerk with clerk specific server names. Give it connections to all of the servers, but for now enable only connections to servers in to[].
src/shardmaster/config.go:164
↓ 4 callers
Function
mergeName
mergeName constructs the name of the output file of reduce task <reduceTask>
src/mapreduce/common.go:41
↓ 4 callers
Function
removeFile
removeFile is a simple wrapper around os.Remove that logs errors.
src/mapreduce/master_splitmerge.go:54
↓ 4 callers
Method
servername
shard server name for labrpc. i'th server of group gid.
src/shardkv/config.go:111
↓ 4 callers
Function
setup
()
src/mapreduce/test_test.go:132
↓ 4 callers
Method
wait
wait for at least n servers to commit. but don't wait forever.
src/raft/config.go:385
↓ 3 callers
Function
Append
(cfg *config, ck *Clerk, key string, value string)
src/kvraft/test_test.go:32
↓ 3 callers
Method
Fetch
Fetch returns a slice of URLs found on the page.
Lectures/LEC02/crawler/crawler.go:161
↓ 3 callers
Method
Kill
Kill is the tester calls Kill() when a Raft instance won't be needed again. you are not required to do anything in Kill(), but it might be convenient
src/raft/raft_method.go:167
↓ 3 callers
Function
NewDecoder
(r io.Reader)
src/labgob/labgob.go:46
↓ 3 callers
Function
NewEncoder
(w io.Writer)
src/labgob/labgob.go:26
↓ 3 callers
Method
ReadRaftState
ReadRaftState is
src/raft/persister.go:44
↓ 3 callers
Function
bind
(fn, me)
Lectures/LEC03/6.824 Lab 2: Raft_files/vomnibar_data/vomnibar.js:4
↓ 3 callers
Function
bitsetIndex
(pos uint)
src/linearizability/bitset.go:23
↓ 3 callers
Method
checklogs
check that no server's log is too big.
src/shardkv/config.go:88
↓ 3 callers
Function
insertBefore
(n *node, mark *node)
src/linearizability/linearizability.go:59
↓ 3 callers
Function
key2shard
which shard is a key in? please use this function, and please do not change it.
src/shardkv/client.go:22
↓ 3 callers
Function
makeInputs
Make input file
src/mapreduce/test_test.go:99
next →
1–100 of 473, ranked by callers