User Guide
18
netty.tcp {
hostname = "127.0.0.1"
Note
The value you need to specify will be different for each node in the cluster.
a. Find the following lines and replace
127.0.0.1
with the hostname or IP address of any of
the machines that will be part of the cluster:
cluster {
seed-nodes = ["akka.tcp://[email protected]:2550"]
b. Find the following section and specify the role for each member node. For example, you
could assign the first node with the
member-1
role, the second node with the
member-2
role, and the third node with the
member-3
role.
roles = [
"member-1"
]
c. Open the configuration/initial/module-shards.conf file and update the items listed in the
following section so that the replicas match roles defined in this host’s akka.conf file.
replicas = [
"member-1"
]
For reference, view a sample akka.conf file here:
a. Run the following commands on each of your cluster’s nodes:
•
JAVA_MAX_MEM=4G JAVA_MAX_PERM_MEM=512m ./karaf
•
JAVA_MAX_MEM=4G JAVA_MAX_PERM_MEM=512m ./karaf
•
JAVA_MAX_MEM=4G JAVA_MAX_PERM_MEM=512m ./karaf
The OpenDaylight controller can now run in a three node cluster. Use any of the three
member nodes to access the data residing in the datastore.
Say you want to view information about shard designated as
member-1
on a node. To do
so, query the shard’s data by making the following HTTP request:
GET http://<host>:8181/jolokia/read/
org.opendaylight.controller:Category=Shards,name=member-1-shard-inventory-
config,type=DistributedConfigDatastore
Note
If prompted, enter
admin
as both the username and password.
Содержание Opendaylight
Страница 1: ...User Guide ...
Страница 2: ...User Guide ii User Guide ...
Страница 27: ...Part II Addons This second part of the user guide covers project specific usage instructions ...