Operational Insights Ports
- concept
Operational Insights uses multiple TCP ports for communication between components and with Couchbase clients. You must leave these ports open to use Operational Insights.
Ports Listed by Communication Path
The following table lists all port numbers, grouped by category of communication path.
| Communication Path | Default Ports |
|---|---|
Node-local only |
Unencrypted: 9119, 21200, 21300 |
Node-to-node |
Unencrypted: 4369, 8091, 9110-9118, 9120, 11209-11210, 21100 Encrypted: 11206, 11207, 18091, 21150 |
Client-to-node |
Unencrypted: 8091, 8095, 9123, 11210, 11280 Encrypted: 18091, 18095, 11207 |
| Certain support and diagnostic requests might run against ports other than the administration port (8091). These requests execute locally on a node and do not require external access. |
Detailed Port Description
The following table contains a detailed description of each port used by Operational Insights.
| Port name | Default port number (unencrypted / encrypted) |
Description | Node-to-node | Client-to-node |
|---|---|---|---|---|
|
4369 |
Erlang Port Mapper Daemon |
Yes |
No |
|
8091 / 18091 |
Cluster administration REST/HTTP traffic, including Operational Insights Web Console |
Yes |
Yes |
|
8095 / 18095 |
Analytics Service REST/HTTP traffic |
No |
Yes |
|
9110 |
Analytics Service |
Yes |
No |
|
9111 |
Analytics Service |
Yes |
No |
|
9112 |
Analytics Service |
Yes |
No |
|
9113 |
Analytics Service |
Yes |
No |
|
9115 |
Analytics Service |
Yes |
No |
|
9116 |
Analytics Service |
Yes |
No |
|
9117 |
Analytics Service |
Yes |
No |
|
9118 |
Analytics Service |
Yes |
No |
|
9119 |
Analytics Service (node-local only) |
No |
No |
|
9120 |
Analytics Service |
Yes |
No |
|
9123 |
Cluster management traffic and communication |
No |
Yes |
|
11209 / 11206 |
Memcached and ns_server. Used for important control-commands |
Yes |
No |
|
11210 / 11207 |
Memcached (SDK Cluster Topology & Auditing) |
Yes |
Yes |
|
11280 |
Memcached |
No |
Yes |
Cluster Management Exchange |
21100 / 21150 |
Cluster management traffic and communication |
Yes |
No |
Cluster Management Exchange [1] |
21200 / 21250 |
Cluster management traffic and communication (node-local only) |
No |
No |
Cluster Management Exchange [2] |
21300 / 21350 |
Cluster management traffic and communication (node-local only) |
No |
No |
Custom Port Mapping
Most, but not all, port numbers used by Operational Insights can be remapped from their defaults to fit the requirements of your network environment. See Table 2 for details about default ports and whether or not they can be remapped.
Changing the port mappings requires a reset and reconfiguration of any Operational Insights node.
| You should change port mappings at the time of initial node and cluster setup. The required reset and reconfiguration also deletes all data on the node. |
Change a Port Mapping
-
For most ports, you’ll need to edit the Operational Insights
static_configfile. This file will be wherever you put the path to/opt/couchbase/etc/couchbase/static_configin a multi-node installation.vi /opt/couchbase/etc/couchbase/static_configIf you’re remapping the CAPI port (8092 / 18092) you’ll need to edit the
/opt/couchbase/etc/couchdb/default.d/capi.inifile and replace 8092 with the new port number. -
Add each custom port map entry on its own line, using the following format. Enclose the port name and number in braces (
{}) and end each entry with a period (.):{port-name,port-number}.For example, to change the REST API port from 8091 to 9000, you would add the following line:
{rest_port, 9000}.After you have added all of your custom port mappings, save the file and close your text editor.
-
If you already configured Operational Insights, you’ll need to delete the
/opt/couchbase/var/lib/couchbase/config/config.datfile and files in the/opt/couchbase/var/lib/couchbase/config/chronicle/directory to remove the old configuration.rm -rf /opt/couchbase/var/lib/couchbase/config/config.dat rm -rf /opt/couchbase/var/lib/couchbase/config/chronicle/*
If you do not give a custom mapping to ports in the static_config file, Operational Insights automatically assigns defaults.
See the default port mappings in Table 2.