44.1. Разрешение сетевых адресов узлов кластера #
PPEM строит топологию кластера путём сопоставления узлов кластера и их IP-адресов. Для каждого экземпляра менеджер читает параметр конфигурации primary_conninfo, извлекает из него сетевые адреса и порты вышестоящих узлов и сравнивает их с IP-адресами серверов, которые сообщают агенты.
Если в primary_conninfo указано сетевое имя, а не IP-адрес, PPEM разрешает это имя средствами операционной системы сервера, на котором работает менеджер.
Сервер менеджера должен уметь разрешать сетевые имена всех узлов, которые представлены в primary_conninfo экземпляров. Полученные IP-адреса должны совпадать с адресами сетевых интерфейсов серверов, на которых работают агенты.
Обеспечьте разрешение сетевых имён одним из следующих методов:
Настройте службу DNS таким образом, чтобы сервер менеджера умел разрешать имена всех серверов, на которых работают агенты.
На сервере менеджера в файле
/etc/hostsпропишите все серверы, на которых работают агенты. Например:192.168.55.11 node-1-server 192.168.55.12 node-2-server 192.168.55.13 node-3-server 192.168.55.14 node-4-server
В
primary_conninfoвместо сетевых имён указывайте IP-адреса. В этом случае разрешение имён не потребуется.
44.1. Resolving Network Names of Cluster Nodes #
PPEM builds the cluster topology by matching cluster nodes against IP addresses. For each instance, the manager reads the primary_conninfo configuration parameter, extracts the network addresses and ports of upstream nodes from it, and compares them with IP addresses of servers reported by the agents.
If primary_conninfo specifies a network name rather than an IP address, PPEM resolves that name by means of the operating system on the server where the manager is running.
The manager's server must be able to resolve network names of all nodes that appear in primary_conninfo of instances. The received IP addresses must match the addresses of network interfaces on the servers where the agents are running.
Provide resolving of network names using one of the following methods:
Configure a DNS service in such a way that the manager's server resolves names of all servers where the agents are running.
On the manager's server, in the
/etc/hostsfile, add records about all servers where the agents are running. For example:192.168.55.11 node-1-server 192.168.55.12 node-2-server 192.168.55.13 node-3-server 192.168.55.14 node-4-server
In
primary_conninfo, specify IP addresses instead of network names. In this case, resolving names is not required.