MIT 6.824 Lab1
 
 
Go to file
fan4w 39d57ac19d first commit 2024-06-03 15:07:05 +08:00
kvraft first commit 2024-06-03 14:51:43 +08:00
kvsrv first commit 2024-06-03 14:51:43 +08:00
labgob first commit 2024-06-03 14:51:43 +08:00
labrpc first commit 2024-06-03 14:51:43 +08:00
main first commit 2024-06-03 14:51:43 +08:00
models first commit 2024-06-03 14:51:43 +08:00
mr first commit 2024-06-03 14:51:43 +08:00
mrapps first commit 2024-06-03 14:51:43 +08:00
porcupine first commit 2024-06-03 14:51:43 +08:00
raft first commit 2024-06-03 14:51:43 +08:00
shardctrler first commit 2024-06-03 14:51:43 +08:00
shardkv first commit 2024-06-03 14:51:43 +08:00
.gitignore first commit 2024-06-03 14:51:43 +08:00
README.md first commit 2024-06-03 15:07:05 +08:00
go.mod first commit 2024-06-03 14:51:43 +08:00
go.sum first commit 2024-06-03 14:51:43 +08:00

README.md

修改的文件包括/mr下的三个文件

  • coordinator.go 用于协调worker的工作
  • worker.go 通过RPC向coordinator请求任务执行Map或者Reduce任务
  • rpc.go 定义了RPC的接口

使用方法:

运行

cd main
go run mrcoordinator.go pg-*.txt

然后再另一个窗口运行

cd main
go run mrworker.go wc.so

wc.so是用户编写生成的动态库用于执行Map和Reduce任务

测试程序

cd main
sh test-mr.sh