10 2016 档案

《MapReduce: Simplified Data Processing on Large Cluster 》翻译
摘要:Abstract MapReduce是一种编程模型和一种用来处理和产生大数据集的相关实现。用户定义map函数来处理key/value键值对来产生一系列的中间的key/value键值对。还要定义一个reduce函数用来合并有着相同中间key值的中间value。许多现实世界中的任务都可以用这种模型来表达 阅读全文

posted @ 2016-10-31 21:22 姚灯灯! 阅读(9720) 评论(0) 推荐(1)

OpenStack overview 笔记
摘要:Example architecture example architecture 至少需要两个节点启动一个虚拟机或者实例。可选的服务,例如Block storage和Object storage需要额外的节点。example architecture和minimal production arch 阅读全文

posted @ 2016-10-28 16:25 姚灯灯! 阅读(532) 评论(0) 推荐(0)

docker containerd shim分析
摘要:// containerd-shim is a small shim that sits in front of a runtime implementation that allows it to be reparented to init and handle reattach from the 阅读全文

posted @ 2016-10-27 16:46 姚灯灯! 阅读(8527) 评论(1) 推荐(1)

docker containerd 中的create 容器操作
摘要:containerd的create container的API如下所示: StartTask结构如下所示: 1、containerd/api/grpc/server/server.go func (s *apiServer) CreateContainer(ctx context.Context, 阅读全文

posted @ 2016-10-27 14:16 姚灯灯! 阅读(2983) 评论(0) 推荐(0)

MIT jos 6.828 Fall 2014 训练记录(lab 6)
摘要:源代码参见我的github: https://github.com/YaoZengzeng/jos 在这个实验中将实现一个基于Intel 82540M(又称E1000)的网卡驱动。不过,一个网卡驱动还不足以让我们的操作系统连上互联网。在lab6新增加的代码中,已经包含了一个network stack 阅读全文

posted @ 2016-10-25 21:43 姚灯灯! 阅读(1413) 评论(0) 推荐(0)

docker containerd中的容器操作
摘要:containerd的中的各种操作都是通过Task来进行的,因此对于容器的create, start, delete等等操作其实都是一个个的Task而已。 Task的数据结构如下所示: container的数据结构如下所示,而container对外暴露的interface是Container,其中包 阅读全文

posted @ 2016-10-25 15:17 姚灯灯! 阅读(3032) 评论(0) 推荐(0)

docker-containerd 启动流程分析
摘要:一般在docker启动时,containerd的启动命令如下所示: 1、containerd/containerd/main.go func daemon(context *cli.Context) error (1)、首先调用: (2)、for循环10次,调用w := supervisor.New 阅读全文

posted @ 2016-10-25 14:16 姚灯灯! 阅读(3193) 评论(0) 推荐(0)

runv kill 流程分析
摘要:1、runv/kill.go Action: func(context *cli.Context) 该函数做的工作很简单,就是通过grpc客户端,发送一个grpc请求而已,如下: 2、runv/containerd/api/grpc/server/server.go func (s *apiServ 阅读全文

posted @ 2016-10-24 14:09 姚灯灯! 阅读(359) 评论(0) 推荐(0)

runv start container 流程分析
摘要:1、runv/start.go func startContainer(context *cli.Context, container, address string, config *spec.Spec) 该函数所做的工作很简单,首先构建CreateContainerRequest的grpc请求, 阅读全文

posted @ 2016-10-21 17:08 姚灯灯! 阅读(945) 评论(0) 推荐(1)

runv containerd 流程分析
摘要:当runv需要启动一个容器的时候,首先需要启动containrd,作为该容器的daemon。因此,启动containerd的相关代码也是从runv/start.go开始。最终,启动containerd的命令行参数如下所示: 1、runv/containerd/containerd.go Action 阅读全文

posted @ 2016-10-21 14:30 姚灯灯! 阅读(1007) 评论(0) 推荐(0)

runc kill 和 delete流程分析
摘要:runc kill // kill sends the specified signal (default: SIGTERM) to the container's init process 1、runc/kill.go Action: func(context *cli.Context) erro 阅读全文

posted @ 2016-10-20 16:30 姚灯灯! 阅读(1059) 评论(1) 推荐(0)

MIT jos 6.828 Fall 2014 训练记录(lab 5)
摘要:源代码参见我的github: https://github.com/YaoZengzeng/jos File system perliminaries 我们开发的是一个单用户的操作系统,只提供了足够的保护用于发现bug,但是并没有对恶意的用户之间进行隔离。因此我们的文件系统不支持UNIX中文件所有者 阅读全文

posted @ 2016-10-19 19:59 姚灯灯! 阅读(1660) 评论(0) 推荐(1)

runc的detach, console, tty等相关问题
摘要:runc 端解析: 1、 runc/utils_linux.go func (r *runner) run(config *specs.Process) (int , error) 在该函数中第一次对容器的IO进行了处理,首先调用tty, err := setupIO(process, rootui 阅读全文

posted @ 2016-10-18 17:07 姚灯灯! 阅读(925) 评论(0) 推荐(0)

runc start container流程分析
摘要:1、runc/start.go Action: func(context *cli.Context) error 该函数首先调用container, err := getContainer(context)获取container信息,接着调用status, err := container.Stat 阅读全文

posted @ 2016-10-17 12:56 姚灯灯! 阅读(1246) 评论(0) 推荐(0)

runc create container 流程分析
摘要:1、// runc/create.go Action: func(context *cli.Context) error 首先调用spec, err := setupSpec(context)加载配置文件config.json的内容。之后调用status, err := startcontainer 阅读全文

posted @ 2016-10-16 16:33 姚灯灯! 阅读(1447) 评论(0) 推荐(0)

cri-o pod 创建源码分析
摘要:1、 server/sandbox.go // RunPodSandbox creates and runs a pod-level sandbox func (s *Server) RunPodSandbox(ctx context.Context, req *pb.RunPodSandboxRe 阅读全文

posted @ 2016-10-14 14:47 姚灯灯! 阅读(821) 评论(0) 推荐(0)

hyperstart 容器创建流程分析
摘要:hyperstart中运行的pod的核心数据结构如下所示: 1、static int hyper_start_pod(char *json, int length): 该函数首先调用hyper_parse_pod(pod, json, length),将从runv传入的json数据解析用来填充pod 阅读全文

posted @ 2016-10-11 16:43 姚灯灯! 阅读(577) 评论(0) 推荐(0)

MIT jos 6.828 Fall 2014 训练记录(lab 4)
摘要:源代码参见我的github: https://github.com/YaoZengzeng/jos Part A: Multiprocessor Support and Cooperative Multitasking Multiprocessor Support: 1、SMP(symmetric 阅读全文

posted @ 2016-10-10 10:56 姚灯灯! 阅读(909) 评论(0) 推荐(0)

python 邮件发送 脚本
摘要:import smtplib from email.header import Header from email.mime.text import MIMEText from_addr = 'XXX@163.com' #发送邮箱的地址 password = 'XXXXXX' #发送邮箱的客户端登陆密码,可能和网页登陆密码不同,需要单独设置 smtp_ser... 阅读全文

posted @ 2016-10-02 19:12 姚灯灯! 阅读(565) 评论(0) 推荐(0)

导航