公司集群框架环境搭建及示例研究

场景1:集群中多个node提供service方法(如sayHello),客户端向集群发送请求,集群中只要有node提供服务即可。

请求由集群中哪个node响应由负载均衡策略决定。

 

时序图

对象图

 

 

 

 

 

 

附录:

1。SiteAdminServiceImpl类里HAServiceRegistry实例信息

{HAJNDI=HA Service :[
Service Id: HAJNDI, allowInvocationsStatus :2
Replicants :[
1::Service : HAJNDI , Restrict Provider : [ JBOSS Identity
address:dbp/192.168.123.154
instanceid:IDXSERVER1
JMX id:dbp_1338539640894
domain:WXXR
, site name: LUCENEserving partition :LUCENE ] , Route Table :[
Service Route Table:[
1:LOCAL ENTRY, Provider :HARMIServerImpl_Stub[UnicastRef2 [liveRef: [endpoint:[192.168.123.154:1201,org.jboss.net.sockets.DefaultSocketFactory@24af8c1c[bindAddress=/192.168.123.154]](local),objID:[-298b356e:137a72e08c0:-7ffb, -4835884582682409480]]]]
]]
], com.wxxr.security.ISiteKeyDistributor=HA Service :[
Service Id: com.wxxr.security.ISiteKeyDistributor, allowInvocationsStatus :2
Replicants :[
1::Service : com.wxxr.security.ISiteKeyDistributor , Provider : [ JBOSS Identity
address:dbp/192.168.123.154
instanceid:IDXSERVER1
JMX id:dbp_1338539640894
domain:WXXR
, site name: LUCENE ] , Route Table :[
Service Route Table:[
1:LOCAL ENTRY, Provider :wxxr:service=SiteSecurityService
]]
2::Service : com.wxxr.security.ISiteKeyDistributor , Provider : [ JBOSS Identity
address:dbp/192.168.123.154
instanceid:IDXSERVER0
JMX id:dbp_1338539640852
domain:WXXR
, site name: LUCENE ] , Route Table :[
Service Route Table:[
1:Service Route Entry : [Next Hop Partition:LUCENE , Next Hop Node:Node[lucene-server-00], distance :1]
]]
], com.wxxr.common.management.LoggingManagement=HA Service :[
Service Id: com.wxxr.common.management.LoggingManagement, allowInvocationsStatus :2
Replicants :[
1::Service : com.wxxr.common.management.LoggingManagement , Provider : [ JBOSS Identity
address:dbp/192.168.123.154
instanceid:IDXSERVER1
JMX id:dbp_1338539640894
domain:WXXR
, site name: LUCENE ] , Route Table :[
Service Route Table:[
1:LOCAL ENTRY, Provider :wxxr:service=LoggingManagement
]]
2::Service : com.wxxr.common.management.LoggingManagement , Provider : [ JBOSS Identity
address:dbp/192.168.123.154
instanceid:IDXSERVER0
JMX id:dbp_1338539640852
domain:WXXR
, site name: LUCENE ] , Route Table :[
Service Route Table:[
1:Service Route Entry : [Next Hop Partition:LUCENE , Next Hop Node:Node[lucene-server-00], distance :1]
]]
], com.wxxr.tutorial.cluster.IHelloWorld=HA Service :[
Service Id: com.wxxr.tutorial.cluster.IHelloWorld, allowInvocationsStatus :2
Replicants :[
1::Service : com.wxxr.tutorial.cluster.IHelloWorld , Provider : [ JBOSS Identity
address:dbp/192.168.123.154
instanceid:IDXSERVER1
JMX id:dbp_1338539640894
domain:WXXR
, site name: LUCENE ] , Route Table :[
Service Route Table:[
1:LOCAL ENTRY, Provider :com.wxxr.common.jboss.ServiceMBeanAOPInvocationHandler@1b0ba02
]]
2::Service : com.wxxr.tutorial.cluster.IHelloWorld , Provider : [ JBOSS Identity
address:dbp/192.168.123.154
instanceid:IDXSERVER0
JMX id:dbp_1338539640852
domain:WXXR
, site name: LUCENE ] , Route Table :[
Service Route Table:[
1:Service Route Entry : [Next Hop Partition:LUCENE , Next Hop Node:Node[lucene-server-00], distance :1]
]]
], com.wxxr.monitor.smslog.ISMSLogStatusMonitorService=HA Service :[
Service Id: com.wxxr.monitor.smslog.ISMSLogStatusMonitorService, allowInvocationsStatus :2
Replicants :[
1::Service : com.wxxr.monitor.smslog.ISMSLogStatusMonitorService , Provider : [ JBOSS Identity
address:dbp/192.168.123.154
instanceid:IDXSERVER0
JMX id:dbp_1338539640852
domain:WXXR
, site name: LUCENE ] , Route Table :[
Service Route Table:[
1:Service Route Entry : [Next Hop Partition:LUCENE , Next Hop Node:Node[lucene-server-00], distance :1]
]]
], state@com.wxxr.tutorial.cluster.service.HelloWorldService=HA Service :[
Service Id: state@com.wxxr.tutorial.cluster.service.HelloWorldService, allowInvocationsStatus :2
Replicants :[
1::Service : state@com.wxxr.tutorial.cluster.service.HelloWorldService , Restrict Provider : [ JBOSS Identity
address:dbp/192.168.123.154
instanceid:IDXSERVER0
JMX id:dbp_1338539640852
domain:WXXR
, site name: LUCENEserving partition :LUCENE ] , Route Table :[
Service Route Table:[
1:Service Route Entry : [Next Hop Partition:LUCENE , Next Hop Node:Node[lucene-server-00], distance :1]
]]
2::Service : state@com.wxxr.tutorial.cluster.service.HelloWorldService , Restrict Provider : [ JBOSS Identity
address:dbp/192.168.123.154
instanceid:IDXSERVER1
JMX id:dbp_1338539640894
domain:WXXR
, site name: LUCENEserving partition :LUCENE ] , Route Table :[
Service Route Table:[
1:LOCAL ENTRY, Provider :[I@12c92f2
]]
]
, loadBalancePolicies@SiteAdminService=HA Service :[
Service Id: loadBalancePolicies@SiteAdminService, allowInvocationsStatus :2
Replicants :[
1::Service : loadBalancePolicies@SiteAdminService , Restrict Provider : [ JBOSS Identity
address:dbp/192.168.123.154
instanceid:IDXSERVER1
JMX id:dbp_1338539640894
domain:WXXR
, site name: LUCENEserving partition :LUCENE ] , Route Table :[
Service Route Table:[
1:LOCAL ENTRY, Provider :[I@10f94a0
]]
2::Service : loadBalancePolicies@SiteAdminService , Restrict Provider : [ JBOSS Identity
address:dbp/192.168.123.154
instanceid:IDXSERVER0
JMX id:dbp_1338539640852
domain:WXXR
, site name: LUCENEserving partition :LUCENE ] , Route Table :[
Service Route Table:[
1:Service Route Entry : [Next Hop Partition:LUCENE , Next Hop Node:Node[lucene-server-00], distance :1]
]]
]}

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值