Revision history [back]

How to Connect OVS to Opendaylight Clustering

Hello, I have configure 3 opendaylight to be a clustring. this is my configuration of opendaylight.

Topology:

Configuration :

OpenDayLight1

akka.conf

odl-cluster-data {
akka {
remote {
netty.tcp {
hostname = "192.168.122.36"
port = 2550
}
}

cluster {
seed-nodes = ["akka.tcp://opendaylight-cluster-data@192.168.122.36:2550"]
seed-nodes = ["akka.tcp://opendaylight-cluster-data@192.168.122.37:2550"]
seed-nodes = ["akka.tcp://opendaylight-cluster-data@192.168.122.29:2550"]

roles = [
"member-1"
]

}

persistence {
# By default the snapshots/journal directories live in KARAF_HOME. You can choose to put it somewhere else by
# modifying the following two properties. The directory location specified may be a relative or absolute path.
# The relative path is always relative to KARAF_HOME.

# snapshot-store.local.dir = "target/snapshots"
# journal.leveldb.dir = "target/journal"

journal {
leveldb {
# Set native = off to use a Java-only implementation of leveldb.
# Note that the Java-only version is not currently considered by Akka to be production quality.

# native = off
}
}
}
}
}


OpenDayLight2

akka.conf

odl-cluster-data {
akka {
remote {
netty.tcp {
hostname = "192.168.122.37"
port = 2550
}
}

cluster {
seed-nodes = ["akka.tcp://opendaylight-cluster-data@192.168.122.36:2550"]
seed-nodes = ["akka.tcp://opendaylight-cluster-data@192.168.122.37:2550"]
seed-nodes = ["akka.tcp://opendaylight-cluster-data@192.168.122.29:2550"]

roles = [
"member-2"
]

}

persistence {
# By default the snapshots/journal directories live in KARAF_HOME. You can choose to put it somewhere else by
# modifying the following two properties. The directory location specified may be a relative or absolute path.
# The relative path is always relative to KARAF_HOME.

# snapshot-store.local.dir = "target/snapshots"
# journal.leveldb.dir = "target/journal"

journal {
leveldb {
# Set native = off to use a Java-only implementation of leveldb.
# Note that the Java-only version is not currently considered by Akka to be production quality.

# native = off
}
}
}
}
}


OpenDayLight2

akka.conf

odl-cluster-data {
akka {
remote {
netty.tcp {
hostname = "192.168.122.29"
port = 2550
}
}

cluster {
seed-nodes = ["akka.tcp://opendaylight-cluster-data@192.168.122.36:2550"]
seed-nodes = ["akka.tcp://opendaylight-cluster-data@192.168.122.37:2550"]
seed-nodes = ["akka.tcp://opendaylight-cluster-data@192.168.122.29:2550"]

roles = [
"member-3"
]

}

persistence {
# By default the snapshots/journal directories live in KARAF_HOME. You can choose to put it somewhere else by
# modifying the following two properties. The directory location specified may be a relative or absolute path.
# The relative path is always relative to KARAF_HOME.

# snapshot-store.local.dir = "target/snapshots"
# journal.leveldb.dir = "target/journal"

journal {
leveldb {
# Set native = off to use a Java-only implementation of leveldb.
# Note that the Java-only version is not currently considered by Akka to be production quality.

# native = off
}
}
}
}
}


module-shards.conf (all same in 3 opendaylight)

# This file describes which shards live on which members
# The format for a module-shards is as follows,
# {
#    name = "<friendly_name_of_the_module>"
#    shards = [
#        {
#            name="<any_name_that_is_unique_for_the_module>"
#            replicas = [
#                "<name_of_member_on_which_to_run>"
#            ]
#     ]
# }
#
# For Helium we support only one shard per module. Beyond Helium
# we will support more than 1
# The replicas section is a collection of member names. This information
# will be used to decide on which members replicas of a particular shard will be
# located. Once replication is integrated with the distributed data store then
# this section can have multiple entries.
#
#

module-shards = [
{
name = "topology"
shards = [
{
name="topology"
replicas = [
"member-1"
]
}
]
},
{
name = "inventory"
shards = [
{
name="inventory"
replicas = [
"member-2"
]
}
]
},
{
name = "toaster"
shards = [
{
name="toaster"
replicas = [
"member-3"
]
}
]
}

]


is this configuration is right to run opendaylight in cluster mode? if the configuration is right, how to connect the ovs? thanks before :)

How to Connect OVS to Opendaylight Clustering

Hello, I have configure 3 opendaylight to be a clustring. this is my configuration of opendaylight.

Topology:

Configuration :

OpenDayLight1

akka.conf

odl-cluster-data {
akka {
remote {
netty.tcp {
hostname = "192.168.122.36"
port = 2550
}
}

cluster {
seed-nodes = ["akka.tcp://opendaylight-cluster-data@192.168.122.36:2550"]
seed-nodes = ["akka.tcp://opendaylight-cluster-data@192.168.122.37:2550"]
seed-nodes = ["akka.tcp://opendaylight-cluster-data@192.168.122.29:2550"]

roles = [
"member-1"
]

}

persistence {
# By default the snapshots/journal directories live in KARAF_HOME. You can choose to put it somewhere else by
# modifying the following two properties. The directory location specified may be a relative or absolute path.
# The relative path is always relative to KARAF_HOME.

# snapshot-store.local.dir = "target/snapshots"
# journal.leveldb.dir = "target/journal"

journal {
leveldb {
# Set native = off to use a Java-only implementation of leveldb.
# Note that the Java-only version is not currently considered by Akka to be production quality.

# native = off
}
}
}
}
}


OpenDayLight2

akka.conf

odl-cluster-data {
akka {
remote {
netty.tcp {
hostname = "192.168.122.37"
port = 2550
}
}

cluster {
seed-nodes = ["akka.tcp://opendaylight-cluster-data@192.168.122.36:2550"]
seed-nodes = ["akka.tcp://opendaylight-cluster-data@192.168.122.37:2550"]
seed-nodes = ["akka.tcp://opendaylight-cluster-data@192.168.122.29:2550"]

roles = [
"member-2"
]

}

persistence {
# By default the snapshots/journal directories live in KARAF_HOME. You can choose to put it somewhere else by
# modifying the following two properties. The directory location specified may be a relative or absolute path.
# The relative path is always relative to KARAF_HOME.

# snapshot-store.local.dir = "target/snapshots"
# journal.leveldb.dir = "target/journal"

journal {
leveldb {
# Set native = off to use a Java-only implementation of leveldb.
# Note that the Java-only version is not currently considered by Akka to be production quality.

# native = off
}
}
}
}
}


OpenDayLight2

akka.conf

odl-cluster-data {
akka {
remote {
netty.tcp {
hostname = "192.168.122.29"
port = 2550
}
}

cluster {
seed-nodes = ["akka.tcp://opendaylight-cluster-data@192.168.122.36:2550"]
seed-nodes = ["akka.tcp://opendaylight-cluster-data@192.168.122.37:2550"]
seed-nodes = ["akka.tcp://opendaylight-cluster-data@192.168.122.29:2550"]

roles = [
"member-3"
]

}

persistence {
# By default the snapshots/journal directories live in KARAF_HOME. You can choose to put it somewhere else by
# modifying the following two properties. The directory location specified may be a relative or absolute path.
# The relative path is always relative to KARAF_HOME.

# snapshot-store.local.dir = "target/snapshots"
# journal.leveldb.dir = "target/journal"

journal {
leveldb {
# Set native = off to use a Java-only implementation of leveldb.
# Note that the Java-only version is not currently considered by Akka to be production quality.

# native = off
}
}
}
}
}


module-shards.conf (all same in 3 opendaylight)

# This file describes which shards live on which members
# The format for a module-shards is as follows,
# {
#    name = "<friendly_name_of_the_module>"
#    shards = [
#        {
#            name="<any_name_that_is_unique_for_the_module>"
#            replicas = [
#                "<name_of_member_on_which_to_run>"
#            ]
#     ]
# }
#
# For Helium we support only one shard per module. Beyond Helium
# we will support more than 1
# The replicas section is a collection of member names. This information
# will be used to decide on which members replicas of a particular shard will be
# located. Once replication is integrated with the distributed data store then
# this section can have multiple entries.
#
#

module-shards = [
{
name = "topology"
shards = [
{
name="topology"
replicas = [
"member-1"
]
}
]
},
{
name = "inventory"
shards = [
{
name="inventory"
replicas = [
"member-2"
]
}
]
},
{
name = "toaster"
shards = [
{
name="toaster"
replicas = [
"member-3"
]
}
]
}

]


is this configuration is right to run opendaylight in cluster mode? if the configuration is right, how to connect the ovs? thanks before :)