免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3192 | 回复: 0
打印 上一主题 下一主题

请教一个分布式锁的问题(DLM) [复制链接]

论坛徽章:
7
数据库技术版块每日发帖之星
日期:2015-08-08 06:20:00数据库技术版块每日发帖之星
日期:2015-08-29 06:20:00数据库技术版块每日发帖之星
日期:2015-08-29 06:20:00数据库技术版块每日发帖之星
日期:2015-09-18 06:20:00数据库技术版块每周发帖之星
日期:2015-11-06 19:56:51数据库技术版块每日发帖之星
日期:2016-01-22 06:20:00数据库技术版块每日发帖之星
日期:2016-02-05 06:20:00
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-09-26 15:33 |只看该作者 |倒序浏览
我要单独测试一下这个分布式锁(DLM),但是按照dlm源码中的说明搭建不起来这个环境。
有谁搞过这个,帮偶解释一下,不胜感激~

附上一段测试说明:

The dlm is configured and controlled from user space through sysfs and a
couple of ioctl's.  A command line program, dlm_tool, can be used to do
everything manually.

Here are the dlm_tool config/control actions that will be used:

set_local  <nodeid> <ipaddr> [<weight>]
set_node   <nodeid> <ipaddr> [<weight>]
stop       <ls_name>
terminate  <ls_name>
start      <ls_name> <event_nr> <type> <nodeid>...
get_done   <ls_name>
finish     <ls_name> <event_nr>
set_id     <ls_name> <id>

For testing and illustration, some actions have been added to dlm_tool to use
the libdlm API.

create     <ls_name>
release    <ls_name>
lock       <ls_name> <res_name> <mode> [<flag>,...]
unlock     <ls_name> <lkid>            [<flag>,...]
convert    <ls_name> <lkid> <mode>     [<flag>,...]

So, dlm_tool is standing in for what would usually be two different entities.
The first set of config/control actions would usually be performed by a system
daemon associated with a cluster membership manager.  The second set of libdlm
actions would usually be performed by an application that wants to use the dlm
for synchronization.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP