12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- .. _identify:
- Make cluster nodes identifiable from the GUI
- ============================================
- When running one or more clusters of GeoServer installations it is useful to identify which
- cluster (and eventually which node of the cluster) one is working against by just glancing at
- the web administration UI.
- This is possible by setting one variable, ``GEOSERVER_NODE_OPTS``, with one of the supported
- mechanisms:
- * as a system variable
- * as an environment variable
- * as a servlet context parameter
- ``GEOSERVER_NODE_OPTS`` is a semicolon separated list of key/value pairs and it can contain the following keys:
- * ``id``: the string identifying the node, which in turn can be a static string, or include the following substitution tokens
- * ``$host_ip``: the IP address of the node
- * ``$host_name``: the hostname of the node
- * ``$host_short_name``: the hostname truncated to not include the domain (``foo.local`` becomes ``foo``)
- * ``$host_compact_name``: the hostname with all domain parts shortened to their first character (``foo.local`` becomes ``foo.l``)
- * ``color``: the label color, as a CSS color
- * ``background``: the background color, as a CSS color
- Here are some examples:
- .. figure:: images/custom_id.png
- :align: center
- *GEOSERVER_NODE_OPTS="id:test1;background:black;color:white"*
-
- .. figure:: images/host_ip.png
- :align: center
- *GEOSERVER_NODE_OPTS="id:$host_ip"*
- .. figure:: images/host_name.png
- :align: center
- *GEOSERVER_NODE_OPTS="id:$host_name"*
|