Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redis startup #2

Open
ping-chang-xin opened this issue Dec 7, 2021 · 0 comments
Open

redis startup #2

ping-chang-xin opened this issue Dec 7, 2021 · 0 comments

Comments

@ping-chang-xin
Copy link
Owner

redis startup

redis的启动流程图

redis-flow

  • redis的4种模式(单机模式、主备模式、哨兵模式、集群模式)都是同样的入口函数,针对不同的模式,代码内部有一些if条件判断做不同的动作
  • 单机模式、主备模式 主要关注图中标颜色的2中方法
  • initServer是做redisServer结构的初始化
  • aeMain方法内部是一个死循环,不断的处理io事件和timer事件
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant