Cluster ejabberd

2007-12-4

 

Cluster ejabberd

for example, we want to do a cluster for two machines.

1. Ejabberd server name
we must have one name of ejabberd server, Fox example “cluster.com”

diagram1


2. Node name
we need to know what is the node name.
For example, this node name is
ejabberd@li_chao_PC
remark : node name can't be changed after installation. In general, node name is same as machine name.

diagram2
3. Erlang cookie
Shutdown the two machines, and  make sure the content of file /root/.erlang.cookie are same between two machines. Of cause, you can modify it, for example, change the content to “BYJY”
vim /root/.erlang.cookie
BYJY
so, the first machine's erlang cookie is “BYJY” and the second machines's erlang cookie is “BYJY” too.

 

4. Connect nodes
Start ejabberd at one machine. For example :
one node name is
“ejabberd@li_chao_PC
another node name is
“ejabberd@wei-jun

we assume you start node “ejabberd@li_chao_PC”, start node mean start ejabberd.
You want to connect node
“ejabberd@wei-jun”, then enter below command :
erl -sname ejabberd -mnesia extra_db_nodes “['ejabberd@wei-jun']” -s mnesia

you will see the below information
running db nodes = [ejabberd@wei-jun,
ejabberd@li_chao_PC ]
if you don't see the information above then mean failure.
Now run the following command in the same 'erl' session:
mnesia:change_table_copy_type(schema, node(), disc_copies).

Run below command to exit from the Erlang shell.
Init:stop().

Restart node ejabberd@li_chao_PC, finished.

diagram3
5. Test cluster
open the administarte webiste

diagram4
if the two machine's ip is
10.135.192.7
10.135.192.37

you can modify file /etc/hosts in the others machine.
10.135.192.7 cluster.com
or
10.135.192.37 cluster.com

that's ok!
There are two machine named “cluster.com” , you can use XMPP client to connect any one which you like to.

Of cause, you'd better configure DNS to accomplish load balance.

内容概要:本文详细介绍了Scrum.org专业敏捷领导力认证(PAL I)的相关信息,包括考试概述、考试详情、考试大纲、样题和备考建议。PAL I考试包含36道选择题,考试时长为60分钟,通过分数为85%,考试费用为200美元。考试内容涵盖Scrum框架的理解与应用、Scrum团队、事件、工件、完成定义、扩展、人员与团队的发展、领导风格、教练与指导、产品管理、持续质量、优化流程以及敏捷组织的演变等多个方面。通过认证有助于职业发展,提供新的就业机会、更高的薪酬或内部认可。 适合人群:希望获得Scrum.org专业敏捷领导力认证的个人,特别是那些希望提升敏捷管理技能并在组织中推动敏捷转型的领导者和管理者。 使用场景及目标:①帮助考生深入了解Scrum框架及其核心概念;②掌握Scrum团队运作、事件、工件和扩展的实际应用;③理解并应用敏捷领导风格、教练与指导技巧;④学习如何在复杂环境中管理和交付产品;⑤掌握持续质量管理和优化流程的方法;⑥了解如何在传统组织中实施敏捷变革。 阅读建议:备考过程中应先熟悉PAL I考试大纲,制定合理的复习计划。建议参加Scrum.org提供的官方培训课程,多做样题和模拟考试,通过实践不断巩固所学知识。此外,利用ProcessExam.com提供的在线练习测试,评估自己的强项和弱项,有针对性地进行准备,直到能够在模拟考试中取得高分。
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值