Issues.00450 - lordmundi/wikidoctest GitHub Wiki

00450: add an easy method to switch between multicast discovery and direct comm

« 00449 | Issues | 00451 »

Summary: add an easy method to switch between multicast discovery and direct comm

Created: 2012–10–23 13:20

Status: Released

Category: Request

From: frankie

Version: 2.2

Released_In: 2.3

Description:

DCOMM can either detect the manager it wants to connect to on the network using multicast, or, the user can manually specify which IP address and port to connect to for the DCOMM manager / server.

Switching these methods can sometimes be annoying. This is a request for an easier more straightforward way to select which method to find the dcomm server on the network.


Comments

frankie October 23, 2012, at 01:27 PM: This has been added. Two config files now exists in $DOUG_HOME/configs: direct_comm.cfg and multicast_discovery.cfg. By default, EDGE will source the multicast_discovery.cfg in a POSTLOAD block. The user can switch this to direct comm by changing the define in their DEFINES block to point to the other file. For example, the following defines at the top of the user.cfg will cause EDGE to not multicast from the server and will cause clients to attempt to directly connect to a manager on address 127.0.0.1 on port 8200:

DCOMM_CONNECTION_CONFIG "${DOUG_HOME}/configs/direct_comm.cfg"
       SERVER_ADDRESS          "127.0.0.1"
       TCP_PORT                8200

The default behavior is still to use multicast discovery. You can see all of the default settings in the edge_settings.cfg file.

This features is documented in the article "Connecting Clients to Manager Without Multicast".


« 00449 | Issues | 00451 »

Associated Commits

| commit | f003cc149043143004c3257728b873023206f083 link6 | || | Author: | Frank Graffagnino | | Date: | Tue Oct 23 13:27:16 2012 -0500 | | Message: | [@Issue 00450: Added mechanism to switch between direct comm and multicast manager discovery @] |

Affected Files:

blank.cfg                       |  3 +±
 cev.cfg                         |  1 +
 configs/direct_comm.cfg         | 15 +++++++++++++++
 configs/multicast_discovery.cfg | 17 +++++++++++++++++
 edge_settings.cfg               |  3 +±
 5 files changed, 37 insertions(+), 2 deletions(-)