Configuring the Service Graph
This section describes how to operate on the service graph using the CORD GUI.
Adding Information to the Graph
By default, the GUI renders only the Services
in the service graph, but you can
augment the available information by pressing:
Shift + f
toggle fullscreen modeShift + s
to addServiceInstances
to the graphShift + i
to addInstances
to the graph (this requiresServiceInstances
to be shown)Shift + n
to addNetworks
to the graph (this requireInstances
to be shown)
Defining the Position of Services in the Graph
XOS defines a model called ServiceGraphConstraint
that lets you enforce
constraints on the nodes position in the display. The following
describes the basics of how this works.
Setting the Services on a Line
["a", "b", "c"]
will position the nodes as:
a -> b -> c
Services as a Tree
["a", ["b", "c"]]
will position the nodes as:
b
/
a
\
c
Empty Spots in the Graph
[[null, "a"], ["b", "c"]]
will position the nodes as:
b
|
a -> c
Note: All the nodes not defined in the
ServiceGraphConstraint
model will float around.
Events Monitored by the Service Graph
xos.sg.update
will render the graph againxos.sg.stateChange
will listen for changes in the state machine