Hello everyone,
i have setup an development environment with one physical system which is running on proxmox. On the KVM system there should be running three virtual machines in the future. On each virtual machine (VM) a single node of an OpenSearch cluster should be running. Each VM is running on Debian 10 and installed the docker as well as the docker-compose components. There are multiple reasons for this structure and not building everything on a single host.
I followed the instructions from Docker - OpenSearch documentation
The first VM was installed successfully with Opensearch v1.0.0 and is running fine. So the the first Opensearch (Elasticsearch) and the Opensearch-Dashboard (Kibana) is available. The next thing was, to setup the single VM as an second (elasticsearch) node. My problem is, that even if i have the same cluster.name configured, the secnd node is not joining the master. There are now visible errors in the logfiles or even tries.
Node1: docker-compose.yml
version: '3'
services:
opensearch-node1:
image: opensearchproject/opensearch:1.0.0
container_name: opensearch-node1
environment:
- cluster.name=opensearch-cluster-sul
- node.name=opensearch-node1
- discovery.seed_hosts=opensearch-node1,XX.XX.XX.XX
- cluster.initial_master_nodes=opensearch-node1,XX.XX.XX.XX
- bootstrap.memory_lock=true # along with the memlock settings below, disables swapping
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m" # minimum and maximum Java heap size, recommend setting both to 50% of system RAM
- "JAVA_HOME=/usr/share/opensearch/jdk"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536 # maximum number of open files for the OpenSearch user, set to at least 65536 on modern systems
hard: 65536
volumes:
- opensearch-data1:/usr/share/opensearch/data
ports:
- 9200:9200
- 9600:9600 # required for Performance Analyzer
networks:
- opensearch-net
opensearch-dashboards:
image: opensearchproject/opensearch-dashboards:1.0.0
container_name: opensearch-dashboards
ports:
- 5601:5601
expose:
- "5601"
environment:
OPENSEARCH_HOSTS: '["https://opensearch-node1:9200","https://XX.XX.XX.XX"]' # must be a string with no spaces when specified as an environment variable
networks:
- opensearch-net
volumes:
opensearch-data1:
networks:
opensearch-net:
Node2: docker-compose.yml
version: '3'
services:
opensearch-node2:
image: opensearchproject/opensearch:1.0.0
container_name: opensearch-node2
environment:
- cluster.name=opensearch-cluster-sul
- node.name=opensearch-node2
- discovery.seed_hosts=XX.XX.XX.XX,YY.YY.YY.YY
- cluster.initial_master_nodes=XX.XX.XX.XX,YY.YY.YY.YY
- bootstrap.memory_lock=true # along with the memlock settings below, disables swapping
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m" # minimum and maximum Java heap size, recommend setting both to 50% of system RAM
- "JAVA_HOME=/usr/share/opensearch/jdk"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536 # maximum number of open files for the OpenSearch user, set to at least 65536 on modern systems
hard: 65536
volumes:
- opensearch-data2:/usr/share/opensearch/data
ports:
- 9200:9200
- 9600:9600 # required for Performance Analyzer
networks:
- opensearch-net
volumes:
opensearch-data2:
networks:
opensearch-net:
Output of âGET /_nodesâ within the Dev Tools from Node1:
{
"_nodes" : {
"total" : 1,
"successful" : 1,
"failed" : 0
},
"cluster_name" : "opensearch-cluster-sul",
There should be two nodes running in one cluster. It is possible to access both elasticsearch instances from external via browser and seeing the status after authentication (basic auth).
Node1 Output of elasticsearch (browser):
// 20210816141518
// https://XX.XX.XX.XX:9200/
{
"name": "opensearch-node1",
"cluster_name": "opensearch-cluster-sul",
"cluster_uuid": "vwpAdTh2QZWq_zASDcAQgQ",
"version": {
"distribution": "opensearch",
"number": "1.0.0",
"build_type": "tar",
"build_hash": "34550c5b17124ddc59458ef774f6b43a086522e3",
"build_date": "2021-07-02T23:22:21.383695Z",
"build_snapshot": false,
"lucene_version": "8.8.2",
"minimum_wire_compatibility_version": "6.8.0",
"minimum_index_compatibility_version": "6.0.0-beta1"
},
"tagline": "The OpenSearch Project: https://opensearch.org/"
}
Node2 elasticsearch output (browser):
/ 20210816141642
// https://YY.YY.YY.YY:9200/
{
"name": "opensearch-node2",
"cluster_name": "opensearch-cluster-sul",
"cluster_uuid": "TjAai79fSieTTfXpNh9cqA",
"version": {
"distribution": "opensearch",
"number": "1.0.0",
"build_type": "tar",
"build_hash": "34550c5b17124ddc59458ef774f6b43a086522e3",
"build_date": "2021-07-02T23:22:21.383695Z",
"build_snapshot": false,
"lucene_version": "8.8.2",
"minimum_wire_compatibility_version": "6.8.0",
"minimum_index_compatibility_version": "6.0.0-beta1"
},
"tagline": "The OpenSearch Project: https://opensearch.org/"
}
Log from starting docker-compose on the second node:
docker-compose up
WARNING: Some networks were defined but are not used by any service: opensearch-net
Starting opensearch-node2 ... done
Attaching to opensearch-node2
opensearch-node2 | [2021-08-16T12:20:41,565][INFO ][o.o.n.Node ] [opensearch-node2] version[1.0.0], pid[11], build[tar/34550c5b17124ddc59458ef774f6b43a086522e3/2021-07-02T23:22:21.383695Z], OS[Linux/4.19.0-17-amd64/amd64], JVM[AdoptOpenJDK/OpenJDK 64-Bit Server VM/15.0.1/15.0.1+9]
opensearch-node2 | [2021-08-16T12:20:41,568][INFO ][o.o.n.Node ] [opensearch-node2] JVM home [/usr/share/opensearch/jdk], using bundled JDK [true]
opensearch-node2 | [2021-08-16T12:20:41,568][INFO ][o.o.n.Node ] [opensearch-node2] JVM arguments [-Xshare:auto, -Dopensearch.networkaddress.cache.ttl=60, -Dopensearch.networkaddress.cache.negative.ttl=10, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -XX:+ShowCodeDetailsInExceptionMessages, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dio.netty.allocator.numDirectArenas=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.locale.providers=SPI,COMPAT, -Xms1g, -Xmx1g, -XX:+UseG1GC, -XX:G1ReservePercent=25, -XX:InitiatingHeapOccupancyPercent=30, -Djava.io.tmpdir=/tmp/opensearch-11897297000385487018, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=data, -XX:ErrorFile=logs/hs_err_pid%p.log, -Xlog:gc*,gc+age=trace,safepoint:file=logs/gc.log:utctime,pid,tags:filecount=32,filesize=64m, -Dclk.tck=100, -Djdk.attach.allowAttachSelf=true, -Djava.security.policy=/usr/share/opensearch/plugins/opensearch-performance-analyzer/pa_config/opensearch_security.policy, -Dopensearch.cgroups.hierarchy.override=/, -Xms512m, -Xmx512m, -XX:MaxDirectMemorySize=268435456, -Dopensearch.path.home=/usr/share/opensearch, -Dopensearch.path.conf=/usr/share/opensearch/config, -Dopensearch.distribution.type=tar, -Dopensearch.bundled_jdk=true]
opensearch-node2 | [2021-08-16T12:20:42,674][INFO ][o.o.s.s.t.SSLConfig ] [opensearch-node2] SSL dual mode is disabled
opensearch-node2 | [2021-08-16T12:20:42,675][INFO ][o.o.s.OpenSearchSecurityPlugin] [opensearch-node2] OpenSearch Config path is /usr/share/opensearch/config
opensearch-node2 | [2021-08-16T12:20:42,916][INFO ][o.o.s.s.DefaultSecurityKeyStore] [opensearch-node2] JVM supports TLSv1.3
opensearch-node2 | [2021-08-16T12:20:42,918][INFO ][o.o.s.s.DefaultSecurityKeyStore] [opensearch-node2] Config directory is /usr/share/opensearch/config/, from there the key- and truststore files are resolved relatively
opensearch-node2 | [2021-08-16T12:20:43,481][INFO ][o.o.s.s.DefaultSecurityKeyStore] [opensearch-node2] TLS Transport Client Provider : JDK
opensearch-node2 | [2021-08-16T12:20:43,481][INFO ][o.o.s.s.DefaultSecurityKeyStore] [opensearch-node2] TLS Transport Server Provider : JDK
opensearch-node2 | [2021-08-16T12:20:43,481][INFO ][o.o.s.s.DefaultSecurityKeyStore] [opensearch-node2] TLS HTTP Provider : JDK
opensearch-node2 | [2021-08-16T12:20:43,481][INFO ][o.o.s.s.DefaultSecurityKeyStore] [opensearch-node2] Enabled TLS protocols for transport layer : [TLSv1.3, TLSv1.2, TLSv1.1]
opensearch-node2 | [2021-08-16T12:20:43,481][INFO ][o.o.s.s.DefaultSecurityKeyStore] [opensearch-node2] Enabled TLS protocols for HTTP layer : [TLSv1.3, TLSv1.2, TLSv1.1]
opensearch-node2 | [2021-08-16T12:20:43,708][INFO ][o.o.s.OpenSearchSecurityPlugin] [opensearch-node2] Clustername: opensearch-cluster-sul
opensearch-node2 | [2021-08-16T12:20:43,715][WARN ][o.o.s.OpenSearchSecurityPlugin] [opensearch-node2] Directory /usr/share/opensearch/config has insecure file permissions (should be 0700)
opensearch-node2 | [2021-08-16T12:20:43,716][WARN ][o.o.s.OpenSearchSecurityPlugin] [opensearch-node2] File /usr/share/opensearch/config/opensearch.yml has insecure file permissions (should be 0600)
opensearch-node2 | [2021-08-16T12:20:43,716][WARN ][o.o.s.OpenSearchSecurityPlugin] [opensearch-node2] File /usr/share/opensearch/config/log4j2.properties has insecure file permissions (should be 0600)
opensearch-node2 | [2021-08-16T12:20:43,717][WARN ][o.o.s.OpenSearchSecurityPlugin] [opensearch-node2] File /usr/share/opensearch/config/esnode.pem has insecure file permissions (should be 0600)
opensearch-node2 | [2021-08-16T12:20:43,717][WARN ][o.o.s.OpenSearchSecurityPlugin] [opensearch-node2] File /usr/share/opensearch/config/esnode-key.pem has insecure file permissions (should be 0600)
opensearch-node2 | [2021-08-16T12:20:43,717][WARN ][o.o.s.OpenSearchSecurityPlugin] [opensearch-node2] File /usr/share/opensearch/config/kirk.pem has insecure file permissions (should be 0600)
opensearch-node2 | [2021-08-16T12:20:43,717][WARN ][o.o.s.OpenSearchSecurityPlugin] [opensearch-node2] File /usr/share/opensearch/config/kirk-key.pem has insecure file permissions (should be 0600)
opensearch-node2 | [2021-08-16T12:20:43,717][WARN ][o.o.s.OpenSearchSecurityPlugin] [opensearch-node2] File /usr/share/opensearch/config/root-ca.pem has insecure file permissions (should be 0600)
opensearch-node2 | [2021-08-16T12:20:43,820][INFO ][o.o.p.c.PluginSettings ] [opensearch-node2] Config: metricsLocation: /dev/shm/performanceanalyzer/, metricsDeletionInterval: 1, httpsEnabled: false, cleanup-metrics-db-files: true, batch-metrics-retention-period-minutes: 7, rpc-port: 9650, webservice-port 9600
opensearch-node2 | [2021-08-16T12:20:43,951][INFO ][o.o.p.PerformanceAnalyzerPlugin] [opensearch-node2] Shard IndexingPressure not present in this OpenSearch version. Skipping ShardIndexingPressureMetricsCollector
opensearch-node2 | [2021-08-16T12:20:44,337][INFO ][o.o.i.r.ReindexPlugin ] [opensearch-node2] ReindexPlugin reloadSPI called
opensearch-node2 | [2021-08-16T12:20:44,338][INFO ][o.o.i.r.ReindexPlugin ] [opensearch-node2] Unable to find any implementation for RemoteReindexExtension
opensearch-node2 | [2021-08-16T12:20:44,351][INFO ][o.o.j.JobSchedulerPlugin ] [opensearch-node2] Loaded scheduler extension: opendistro-index-management, index: .opendistro-ism-config
opensearch-node2 | [2021-08-16T12:20:44,359][INFO ][o.o.j.JobSchedulerPlugin ] [opensearch-node2] Loaded scheduler extension: opendistro_anomaly_detector, index: .opendistro-anomaly-detector-jobs
opensearch-node2 | [2021-08-16T12:20:44,387][INFO ][o.o.j.JobSchedulerPlugin ] [opensearch-node2] Loaded scheduler extension: reports-scheduler, index: .opendistro-reports-definitions
opensearch-node2 | [2021-08-16T12:20:44,390][INFO ][o.o.p.PluginsService ] [opensearch-node2] loaded module [aggs-matrix-stats]
opensearch-node2 | [2021-08-16T12:20:44,390][INFO ][o.o.p.PluginsService ] [opensearch-node2] loaded module [analysis-common]
opensearch-node2 | [2021-08-16T12:20:44,390][INFO ][o.o.p.PluginsService ] [opensearch-node2] loaded module [geo]
opensearch-node2 | [2021-08-16T12:20:44,391][INFO ][o.o.p.PluginsService ] [opensearch-node2] loaded module [ingest-common]
opensearch-node2 | [2021-08-16T12:20:44,391][INFO ][o.o.p.PluginsService ] [opensearch-node2] loaded module [ingest-geoip]
opensearch-node2 | [2021-08-16T12:20:44,391][INFO ][o.o.p.PluginsService ] [opensearch-node2] loaded module [ingest-user-agent]
opensearch-node2 | [2021-08-16T12:20:44,391][INFO ][o.o.p.PluginsService ] [opensearch-node2] loaded module [lang-expression]
opensearch-node2 | [2021-08-16T12:20:44,391][INFO ][o.o.p.PluginsService ] [opensearch-node2] loaded module [lang-mustache]
opensearch-node2 | [2021-08-16T12:20:44,391][INFO ][o.o.p.PluginsService ] [opensearch-node2] loaded module [lang-painless]
opensearch-node2 | [2021-08-16T12:20:44,391][INFO ][o.o.p.PluginsService ] [opensearch-node2] loaded module [mapper-extras]
opensearch-node2 | [2021-08-16T12:20:44,391][INFO ][o.o.p.PluginsService ] [opensearch-node2] loaded module [opensearch-dashboards]
opensearch-node2 | [2021-08-16T12:20:44,391][INFO ][o.o.p.PluginsService ] [opensearch-node2] loaded module [parent-join]
opensearch-node2 | [2021-08-16T12:20:44,391][INFO ][o.o.p.PluginsService ] [opensearch-node2] loaded module [percolator]
opensearch-node2 | [2021-08-16T12:20:44,391][INFO ][o.o.p.PluginsService ] [opensearch-node2] loaded module [rank-eval]
opensearch-node2 | [2021-08-16T12:20:44,391][INFO ][o.o.p.PluginsService ] [opensearch-node2] loaded module [reindex]
opensearch-node2 | [2021-08-16T12:20:44,391][INFO ][o.o.p.PluginsService ] [opensearch-node2] loaded module [repository-url]
opensearch-node2 | [2021-08-16T12:20:44,391][INFO ][o.o.p.PluginsService ] [opensearch-node2] loaded module [transport-netty4]
opensearch-node2 | [2021-08-16T12:20:44,392][INFO ][o.o.p.PluginsService ] [opensearch-node2] loaded plugin [opensearch-alerting]
opensearch-node2 | [2021-08-16T12:20:44,392][INFO ][o.o.p.PluginsService ] [opensearch-node2] loaded plugin [opensearch-anomaly-detection]
opensearch-node2 | [2021-08-16T12:20:44,392][INFO ][o.o.p.PluginsService ] [opensearch-node2] loaded plugin [opensearch-asynchronous-search]
opensearch-node2 | [2021-08-16T12:20:44,392][INFO ][o.o.p.PluginsService ] [opensearch-node2] loaded plugin [opensearch-index-management]
opensearch-node2 | [2021-08-16T12:20:44,392][INFO ][o.o.p.PluginsService ] [opensearch-node2] loaded plugin [opensearch-job-scheduler]
opensearch-node2 | [2021-08-16T12:20:44,392][INFO ][o.o.p.PluginsService ] [opensearch-node2] loaded plugin [opensearch-knn]
opensearch-node2 | [2021-08-16T12:20:44,392][INFO ][o.o.p.PluginsService ] [opensearch-node2] loaded plugin [opensearch-notebooks]
opensearch-node2 | [2021-08-16T12:20:44,392][INFO ][o.o.p.PluginsService ] [opensearch-node2] loaded plugin [opensearch-performance-analyzer]
opensearch-node2 | [2021-08-16T12:20:44,392][INFO ][o.o.p.PluginsService ] [opensearch-node2] loaded plugin [opensearch-reports-scheduler]
opensearch-node2 | [2021-08-16T12:20:44,393][INFO ][o.o.p.PluginsService ] [opensearch-node2] loaded plugin [opensearch-security]
opensearch-node2 | [2021-08-16T12:20:44,393][INFO ][o.o.p.PluginsService ] [opensearch-node2] loaded plugin [opensearch-sql]
opensearch-node2 | [2021-08-16T12:20:44,410][INFO ][o.o.s.OpenSearchSecurityPlugin] [opensearch-node2] Disabled https compression by default to mitigate BREACH attacks. You can enable it by setting 'http.compression: true' in opensearch.yml
opensearch-node2 | [2021-08-16T12:20:44,421][DEPRECATION][o.o.d.c.s.Settings ] [opensearch-node2] [node.max_local_storage_nodes] setting was deprecated in OpenSearch and will be removed in a future release! See the breaking changes documentation for the next major version.
opensearch-node2 | [2021-08-16T12:20:44,429][INFO ][o.o.e.NodeEnvironment ] [opensearch-node2] using [1] data paths, mounts [[/usr/share/opensearch/data (/dev/sda4)]], net usable_space [214.5gb], net total_space [230.1gb], types [ext4]
opensearch-node2 | [2021-08-16T12:20:44,429][INFO ][o.o.e.NodeEnvironment ] [opensearch-node2] heap size [512mb], compressed ordinary object pointers [true]
opensearch-node2 | [2021-08-16T12:20:44,522][INFO ][o.o.n.Node ] [opensearch-node2] node name [opensearch-node2], node ID [S5foaUI5QoSdAsTPCgB1yw], cluster name [opensearch-cluster-sul], roles [master, remote_cluster_client, data, ingest]
opensearch-node2 | [2021-08-16T12:20:46,275][DEPRECATION][o.o.d.c.s.Settings ] [opensearch-node2] [node.max_local_storage_nodes] setting was deprecated in OpenSearch and will be removed in a future release! See the breaking changes documentation for the next major version.
opensearch-node2 | [2021-08-16T12:20:47,269][WARN ][o.o.s.c.Salt ] [opensearch-node2] If you plan to use field masking pls configure compliance salt e1ukloTsQlOgPquJ to be a random string of 16 chars length identical on all nodes
opensearch-node2 | [2021-08-16T12:20:47,289][INFO ][o.o.s.a.i.AuditLogImpl ] [opensearch-node2] Message routing enabled: true
opensearch-node2 | [2021-08-16T12:20:47,331][INFO ][o.o.s.f.SecurityFilter ] [opensearch-node2] <NONE> indices are made immutable.
opensearch-node2 | [2021-08-16T12:20:47,526][INFO ][o.o.a.b.ADCircuitBreakerService] [opensearch-node2] Registered memory breaker.
opensearch-node2 | [2021-08-16T12:20:47,851][INFO ][o.o.t.NettyAllocator ] [opensearch-node2] creating NettyAllocator with the following configs: [name=unpooled, suggested_max_allocation_size=256kb, factors={opensearch.unsafe.use_unpooled_allocator=null, g1gc_enabled=true, g1gc_region_size=1mb, heap_size=512mb}]
opensearch-node2 | [2021-08-16T12:20:47,930][INFO ][o.o.d.DiscoveryModule ] [opensearch-node2] using discovery type [zen] and seed hosts providers [settings]
opensearch-node2 | [2021-08-16T12:20:48,267][WARN ][o.o.g.DanglingIndicesState] [opensearch-node2] gateway.auto_import_dangling_indices is disabled, dangling indices will not be automatically detected or imported and must be managed manually
opensearch-node2 | [2021-08-16T12:20:48,553][INFO ][o.o.p.h.c.PerformanceAnalyzerConfigAction] [opensearch-node2] PerformanceAnalyzer Enabled: false
opensearch-node2 | [2021-08-16T12:20:48,603][INFO ][o.o.n.Node ] [opensearch-node2] initialized
opensearch-node2 | [2021-08-16T12:20:48,603][INFO ][o.o.n.Node ] [opensearch-node2] starting ...
opensearch-node2 | [2021-08-16T12:20:48,708][INFO ][o.o.t.TransportService ] [opensearch-node2] publish_address {172.21.0.2:9300}, bound_addresses {0.0.0.0:9300}
opensearch-node2 | [2021-08-16T12:20:48,890][INFO ][o.o.b.BootstrapChecks ] [opensearch-node2] bound or publishing to a non-loopback address, enforcing bootstrap checks
opensearch-node2 | [2021-08-16T12:20:48,892][INFO ][o.o.c.c.Coordinator ] [opensearch-node2] cluster UUID [TjAai79fSieTTfXpNh9cqA]
opensearch-node2 | [2021-08-16T12:20:49,078][INFO ][o.o.c.s.MasterService ] [opensearch-node2] elected-as-master ([1] nodes joined)[{opensearch-node2}{S5foaUI5QoSdAsTPCgB1yw}{u9nsB6HmSA61eaH1GHst-Q}{172.21.0.2}{172.21.0.2:9300}{dimr} elect leader, _BECOME_MASTER_TASK_, _FINISH_ELECTION_], term: 38, version: 314, delta: master node changed {previous [], current [{opensearch-node2}{S5foaUI5QoSdAsTPCgB1yw}{u9nsB6HmSA61eaH1GHst-Q}{172.21.0.2}{172.21.0.2:9300}{dimr}]}
opensearch-node2 | [2021-08-16T12:20:49,125][INFO ][o.o.c.s.ClusterApplierService] [opensearch-node2] master node changed {previous [], current [{opensearch-node2}{S5foaUI5QoSdAsTPCgB1yw}{u9nsB6HmSA61eaH1GHst-Q}{172.21.0.2}{172.21.0.2:9300}{dimr}]}, term: 38, version: 314, reason: Publication{term=38, version=314}
opensearch-node2 | [2021-08-16T12:20:49,144][WARN ][o.o.p.c.s.h.ConfigOverridesClusterSettingHandler] [opensearch-node2] Config override setting update called with empty string. Ignoring.
opensearch-node2 | [2021-08-16T12:20:49,145][INFO ][o.o.a.c.ADClusterEventListener] [opensearch-node2] CLuster is not recovered yet.
opensearch-node2 | [2021-08-16T12:20:49,160][INFO ][o.o.h.AbstractHttpServerTransport] [opensearch-node2] publish_address {172.21.0.2:9200}, bound_addresses {0.0.0.0:9200}
opensearch-node2 | [2021-08-16T12:20:49,160][INFO ][o.o.n.Node ] [opensearch-node2] started
opensearch-node2 | [2021-08-16T12:20:49,160][INFO ][o.o.s.OpenSearchSecurityPlugin] [opensearch-node2] Node started
opensearch-node2 | [2021-08-16T12:20:49,161][INFO ][o.o.s.c.ConfigurationRepository] [opensearch-node2] Will attempt to create index .opendistro_security and default configs if they are absent
opensearch-node2 | [2021-08-16T12:20:49,162][INFO ][o.o.s.OpenSearchSecurityPlugin] [opensearch-node2] 0 OpenSearch Security modules loaded so far: []
opensearch-node2 | [2021-08-16T12:20:49,162][INFO ][o.o.s.c.ConfigurationRepository] [opensearch-node2] Background init thread started. Install default config?: true
opensearch-node2 | [2021-08-16T12:20:49,264][INFO ][o.o.g.GatewayService ] [opensearch-node2] recovered [8] indices into cluster_state
opensearch-node2 | [2021-08-16T12:20:49,268][INFO ][o.o.s.c.ConfigurationRepository] [opensearch-node2] Index .opendistro_security already exists
opensearch-node2 | [2021-08-16T12:20:49,268][INFO ][o.o.s.c.ConfigurationRepository] [opensearch-node2] Node started, try to initialize it. Wait for at least yellow cluster state....
opensearch-node2 | [2021-08-16T12:20:49,293][INFO ][o.o.c.r.a.a.BalancedShardsAllocator] [opensearch-node2] Cannot move any shard in the cluster as there is no node on which shards can be allocated. Skipping shard iteration
opensearch-node2 | [2021-08-16T12:20:49,755][INFO ][o.o.s.s.ConfigHelper ] [opensearch-node2] Will update 'config' with /usr/share/opensearch/plugins/opensearch-security/securityconfig/config.yml and populate it with empty doc if file missing and populateEmptyIfFileMissing=false
opensearch-node2 | [2021-08-16T12:20:49,786][INFO ][o.o.c.r.a.a.BalancedShardsAllocator] [opensearch-node2] Cannot move any shard in the cluster as there is no node on which shards can be allocated. Skipping shard iteration
opensearch-node2 | [2021-08-16T12:20:49,834][INFO ][o.o.s.s.ConfigHelper ] [opensearch-node2] Index .opendistro_security already contains doc with id config, skipping update.
opensearch-node2 | [2021-08-16T12:20:49,834][INFO ][o.o.s.s.ConfigHelper ] [opensearch-node2] Will update 'roles' with /usr/share/opensearch/plugins/opensearch-security/securityconfig/roles.yml and populate it with empty doc if file missing and populateEmptyIfFileMissing=false
opensearch-node2 | [2021-08-16T12:20:49,839][INFO ][o.o.s.s.ConfigHelper ] [opensearch-node2] Index .opendistro_security already contains doc with id roles, skipping update.
opensearch-node2 | [2021-08-16T12:20:49,840][INFO ][o.o.s.s.ConfigHelper ] [opensearch-node2] Will update 'rolesmapping' with /usr/share/opensearch/plugins/opensearch-security/securityconfig/roles_mapping.yml and populate it with empty doc if file missing and populateEmptyIfFileMissing=false
opensearch-node2 | [2021-08-16T12:20:49,845][INFO ][o.o.s.s.ConfigHelper ] [opensearch-node2] Index .opendistro_security already contains doc with id rolesmapping, skipping update.
opensearch-node2 | [2021-08-16T12:20:49,845][INFO ][o.o.s.s.ConfigHelper ] [opensearch-node2] Will update 'internalusers' with /usr/share/opensearch/plugins/opensearch-security/securityconfig/internal_users.yml and populate it with empty doc if file missing and populateEmptyIfFileMissing=false
opensearch-node2 | [2021-08-16T12:20:49,852][INFO ][o.o.s.s.ConfigHelper ] [opensearch-node2] Index .opendistro_security already contains doc with id internalusers, skipping update.
opensearch-node2 | [2021-08-16T12:20:49,852][INFO ][o.o.s.s.ConfigHelper ] [opensearch-node2] Will update 'actiongroups' with /usr/share/opensearch/plugins/opensearch-security/securityconfig/action_groups.yml and populate it with empty doc if file missing and populateEmptyIfFileMissing=false
opensearch-node2 | [2021-08-16T12:20:49,856][INFO ][o.o.s.s.ConfigHelper ] [opensearch-node2] Index .opendistro_security already contains doc with id actiongroups, skipping update.
opensearch-node2 | [2021-08-16T12:20:49,856][INFO ][o.o.s.s.ConfigHelper ] [opensearch-node2] Will update 'tenants' with /usr/share/opensearch/plugins/opensearch-security/securityconfig/tenants.yml and populate it with empty doc if file missing and populateEmptyIfFileMissing=false
opensearch-node2 | [2021-08-16T12:20:49,859][INFO ][o.o.s.s.ConfigHelper ] [opensearch-node2] Index .opendistro_security already contains doc with id tenants, skipping update.
opensearch-node2 | [2021-08-16T12:20:49,859][INFO ][o.o.s.s.ConfigHelper ] [opensearch-node2] Will update 'nodesdn' with /usr/share/opensearch/plugins/opensearch-security/securityconfig/nodes_dn.yml and populate it with empty doc if file missing and populateEmptyIfFileMissing=true
opensearch-node2 | [2021-08-16T12:20:49,860][INFO ][o.o.s.s.ConfigHelper ] [opensearch-node2] Index .opendistro_security already contains doc with id nodesdn, skipping update.
opensearch-node2 | [2021-08-16T12:20:49,861][INFO ][o.o.s.s.ConfigHelper ] [opensearch-node2] Will update 'whitelist' with /usr/share/opensearch/plugins/opensearch-security/securityconfig/whitelist.yml and populate it with empty doc if file missing and populateEmptyIfFileMissing=true
opensearch-node2 | [2021-08-16T12:20:49,862][INFO ][o.o.s.s.ConfigHelper ] [opensearch-node2] Index .opendistro_security already contains doc with id whitelist, skipping update.
opensearch-node2 | [2021-08-16T12:20:49,863][INFO ][o.o.s.s.ConfigHelper ] [opensearch-node2] Will update 'audit' with /usr/share/opensearch/plugins/opensearch-security/securityconfig/audit.yml and populate it with empty doc if file missing and populateEmptyIfFileMissing=false
opensearch-node2 | [2021-08-16T12:20:49,893][INFO ][o.o.s.s.ConfigHelper ] [opensearch-node2] Index .opendistro_security already contains doc with id audit, skipping update.
opensearch-node2 | [2021-08-16T12:20:49,994][INFO ][o.o.c.r.a.AllocationService] [opensearch-node2] Cluster health status changed from [RED] to [YELLOW] (reason: [shards started [[security-auditlog-2021.07.30][0]]]).
opensearch-node2 | [2021-08-16T12:20:50,059][INFO ][stdout ] [opensearch-node2] [FINE] No subscribers registered for event class org.opensearch.security.securityconf.DynamicConfigFactory$NodesDnModelImpl
opensearch-node2 | [2021-08-16T12:20:50,059][INFO ][stdout ] [opensearch-node2] [FINE] No subscribers registered for event class org.greenrobot.eventbus.NoSubscriberEvent
opensearch-node2 | [2021-08-16T12:20:50,060][INFO ][o.o.s.a.i.AuditLogImpl ] [opensearch-node2] Auditing on REST API is enabled.
opensearch-node2 | [2021-08-16T12:20:50,060][INFO ][o.o.s.a.i.AuditLogImpl ] [opensearch-node2] [AUTHENTICATED, GRANTED_PRIVILEGES] are excluded from REST API auditing.
opensearch-node2 | [2021-08-16T12:20:50,060][INFO ][o.o.s.a.i.AuditLogImpl ] [opensearch-node2] Auditing on Transport API is enabled.
opensearch-node2 | [2021-08-16T12:20:50,060][INFO ][o.o.s.a.i.AuditLogImpl ] [opensearch-node2] [AUTHENTICATED, GRANTED_PRIVILEGES] are excluded from Transport API auditing.
opensearch-node2 | [2021-08-16T12:20:50,060][INFO ][o.o.s.a.i.AuditLogImpl ] [opensearch-node2] Auditing of request body is enabled.
opensearch-node2 | [2021-08-16T12:20:50,060][INFO ][o.o.s.a.i.AuditLogImpl ] [opensearch-node2] Bulk requests resolution is disabled during request auditing.
opensearch-node2 | [2021-08-16T12:20:50,060][INFO ][o.o.s.a.i.AuditLogImpl ] [opensearch-node2] Index resolution is enabled during request auditing.
opensearch-node2 | [2021-08-16T12:20:50,060][INFO ][o.o.s.a.i.AuditLogImpl ] [opensearch-node2] Sensitive headers auditing is enabled.
opensearch-node2 | [2021-08-16T12:20:50,060][INFO ][o.o.s.a.i.AuditLogImpl ] [opensearch-node2] Auditing requests from kibanaserver users is disabled.
opensearch-node2 | [2021-08-16T12:20:50,063][WARN ][o.o.s.a.r.AuditMessageRouter] [opensearch-node2] No endpoint configured for categories [BAD_HEADERS, FAILED_LOGIN, MISSING_PRIVILEGES, GRANTED_PRIVILEGES, OPENDISTRO_SECURITY_INDEX_ATTEMPT, SSL_EXCEPTION, AUTHENTICATED, INDEX_EVENT, COMPLIANCE_DOC_READ, COMPLIANCE_DOC_WRITE, COMPLIANCE_EXTERNAL_CONFIG, COMPLIANCE_INTERNAL_CONFIG_READ, COMPLIANCE_INTERNAL_CONFIG_WRITE], using default endpoint
opensearch-node2 | [2021-08-16T12:20:50,063][INFO ][o.o.s.a.i.AuditLogImpl ] [opensearch-node2] Auditing of external configuration is disabled.
opensearch-node2 | [2021-08-16T12:20:50,063][INFO ][o.o.s.a.i.AuditLogImpl ] [opensearch-node2] Auditing of internal configuration is enabled.
opensearch-node2 | [2021-08-16T12:20:50,063][INFO ][o.o.s.a.i.AuditLogImpl ] [opensearch-node2] Auditing only metadata information for read request is enabled.
opensearch-node2 | [2021-08-16T12:20:50,063][INFO ][o.o.s.a.i.AuditLogImpl ] [opensearch-node2] Auditing will watch {} for read requests.
opensearch-node2 | [2021-08-16T12:20:50,063][INFO ][o.o.s.a.i.AuditLogImpl ] [opensearch-node2] Auditing read operation requests from kibanaserver users is disabled.
opensearch-node2 | [2021-08-16T12:20:50,063][INFO ][o.o.s.a.i.AuditLogImpl ] [opensearch-node2] Auditing only metadata information for write request is enabled.
opensearch-node2 | [2021-08-16T12:20:50,063][INFO ][o.o.s.a.i.AuditLogImpl ] [opensearch-node2] Auditing diffs for write requests is disabled.
opensearch-node2 | [2021-08-16T12:20:50,063][INFO ][o.o.s.a.i.AuditLogImpl ] [opensearch-node2] Auditing write operation requests from kibanaserver users is disabled.
opensearch-node2 | [2021-08-16T12:20:50,063][INFO ][o.o.s.a.i.AuditLogImpl ] [opensearch-node2] Auditing will watch <NONE> for write requests.
opensearch-node2 | [2021-08-16T12:20:50,063][INFO ][o.o.s.a.i.AuditLogImpl ] [opensearch-node2] .opendistro_security is used as internal security index.
opensearch-node2 | [2021-08-16T12:20:50,063][INFO ][o.o.s.a.i.AuditLogImpl ] [opensearch-node2] Internal index used for posting audit logs is null
opensearch-node2 | [2021-08-16T12:20:50,064][INFO ][o.o.s.c.ConfigurationRepository] [opensearch-node2] Hot-reloading of audit configuration is enabled
opensearch-node2 | [2021-08-16T12:20:50,064][INFO ][o.o.s.c.ConfigurationRepository] [opensearch-node2] Node 'opensearch-node2' initialized
Normally i would expect an error which states, that node2 could not reach node1. But as far as i can see the logs, there is no such entry.
So in general the connection is available and could be reached from both sides.
If you need any other information, just ask. I will provide them.
Regards