惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

I
InfoQ
C
CERT Recently Published Vulnerability Notes
The Last Watchdog
The Last Watchdog
P
Proofpoint News Feed
D
Darknet – Hacking Tools, Hacker News & Cyber Security
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
GbyAI
GbyAI
T
Tenable Blog
博客园 - 三生石上(FineUI控件)
P
Privacy & Cybersecurity Law Blog
Simon Willison's Weblog
Simon Willison's Weblog
Jina AI
Jina AI
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
T
Tor Project blog
博客园_首页
F
Fortinet All Blogs
博客园 - Franky
Latest news
Latest news
Last Week in AI
Last Week in AI
T
Threat Research - Cisco Blogs
Scott Helme
Scott Helme
L
LINUX DO - 热门话题
U
Unit 42
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Hugging Face - Blog
Hugging Face - Blog
D
Docker
Project Zero
Project Zero
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
MongoDB | Blog
MongoDB | Blog
F
Full Disclosure
D
DataBreaches.Net
Google DeepMind News
Google DeepMind News
Cisco Talos Blog
Cisco Talos Blog
Y
Y Combinator Blog
WordPress大学
WordPress大学
C
Cyber Attacks, Cyber Crime and Cyber Security
H
Help Net Security
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
月光博客
月光博客
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Blog — PlanetScale
Blog — PlanetScale
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
S
Schneier on Security
C
Cybersecurity and Infrastructure Security Agency CISA
P
Proofpoint News Feed
PCI Perspectives
PCI Perspectives
Cloudbric
Cloudbric
V
Visual Studio Blog
Recorded Future
Recorded Future
人人都是产品经理
人人都是产品经理

博客园 - 李占卫

设计 mycat服务启动{管理模块启动过程} mycat初探 rocketmq总结 分布式事务 MySQL vs. MongoDB: Choosing a Data Management Solution 基于 Jenkins 快速搭建持续集成环境 持续集成及部署利器:Go IOC性能对比 云主机性能测试结论 SSD性能对比 各压缩算法对比 使用tcpcopy拷贝线上流量压测测试环境 C# 获取进程或线程的相关信息 用eclipse建立servlet工程 消息推送技术 检查表及总结 - 《代码大全》 服务治理过程演进 三大WEB服务器对比分析(apache ,lighttpd,nginx)
zookeeper总结
李占卫 · 2016-01-05 · via 博客园 - 李占卫
barrier:栅栏,对齐不同资源的准备状态
Barrier:等待所有资源enter后统一leave
DoubleBarrier:所有资源waitOnBarrier,等待代码removeBarrier后统一执行。

cache:缓存
nodecache:监控ZNode的一个子节点,设置一个数值
pathcache:监控ZNode,设置多个数值
treecache:nodecache+pathcache

counter:计数器
int计数器
long计数器

discovery 框架扩展功能以rpc服务注册为例

framework 框架代码build模式写法

leaderelection:节点选举
LeaderSelector:当takeLeadership执行完后释放领导权。(这里可以是业务逻辑)

lock:锁
ReadWrite:读写锁,写锁中可以用到读锁反之不能
InterProcessMutex:共享锁,在一个线程中可重入
InterProcessSemaphoreMutex:互斥锁,同一线程不可冲入(第二个申请锁操作会阻塞)
MultiLock:组合锁,可以组合多种锁类型比如组合共享锁和互斥锁
InterProcessSemaphoreV2:信号量,超所信号量则阻塞

node:节点
临时节点:创建服务的时候以临时节点创建名字服务,当服务关闭的时候临时节点消失

queue:队列(数据量不大,不要求高性能的时候可以用)
buildDelayQueue:延时队列
buildIdQueue:唯一ID队列
buildPriorityQueue:优先级队列