mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

mrossign
19.53.2010 874f6e3a092bdaa5f151c512c9284b15f5886e82
refs
author mrossign <mrossign@localhost>
Tuesday, January 19, 2010 10:53 +0100
committer mrossign <mrossign@localhost>
Tuesday, January 19, 2010 10:53 +0100
commit874f6e3a092bdaa5f151c512c9284b15f5886e82
tree 2862884de8c70cfe76ca143c444ad1585ba3ccb2 tree | zip | gz
parent 52e042e88479e8a1a15aeef7a9654950eeae783e view | diff
This is about refactoring the way the directory server chooses the 
replication server it will connect to. This also introduces a new
(weighed) load balancing feature that spreads DS connections across the
RSs, according to the RS weights defined by the administrator,

Issue 4343: https://opends.dev.java.net/issues/show_bug.cgi?id=4343

The commit includes necessary modifications for implementing what is
described in this document:

https://www.opends.org/wiki/page/ReplicationServerSelection

There is a little "implementation" section in this document that
explains some important stuff.

Also good to know for these code modifications:

- The topology info related to RSs and kept by the ReplicationBroker is
now fully kept in a new map of a new ReplicationServerInfo bag class.
This map is updated upon reception of a TopologyMsg.
- Protocol change: the TopologyMsg now includes the RS url in the RSInfo
list
- The dynamic change of the weight of a RS triggers a new TopologyMsg
being fired, to support dynamic change of weights and automatic topology
re-connections
- SameGroupIdPoller thread has disappeared and its functionality is
replaced by the mechanism that re-evaluates the more suitable RS (see
section 5, in the document for more details)
1 files added
20 files modified
4642 ■■■■ changed files
opends/src/admin/defn/org/opends/server/admin/std/ReplicationServerConfiguration.xml 14 ●●●● diff | view | raw | blame | history
opends/src/messages/messages/replication.properties 5 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/common/DSInfo.java 4 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/common/RSInfo.java 40 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/common/ServerState.java 31 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/protocol/ProtocolVersion.java 3 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/protocol/StartECLSessionMsg.java 4 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/protocol/TopologyMsg.java 29 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/ReplicationServer.java 3 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/ReplicationServerDomain.java 22 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/ServerHandler.java 5 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/service/ReplicationBroker.java 1620 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/service/ReplicationDomain.java 2 ●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/common/ServerStateTest.java 4 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/AssuredReplicationPluginTest.java 2 ●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/ComputeBestServerTest.java 1494 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/ReplicationServerLoadBalancingTest.java 1318 ●●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/TopologyViewTest.java 20 ●●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/protocol/ProtocolCompatibilityTest.java 8 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/protocol/SynchronizationMsgTest.java 10 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/server/AssuredReplicationServerTest.java 4 ●●●● diff | view | raw | blame | history