Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-67744

Elasticsearch doesn't add more replicas as more nodes are added to portal cluster

    Details

      Description

      Steps to reproduce:

      1. Setup two clustered nodes
        • Node 1
          dl.store.impl=com.liferay.portal.store.db.DBStore
          cluster.link.enabled=true
          web.server.display.node=true
          cluster.link.autodetect.address=
          
          cluster.link.channel.system.properties=\
              #
              # Common
              #
              \
              jgroups.bind_addr:${cluster.link.bind.addr["cluster-link-udp"]},\
              jgroups.bind_interface:127.0.0.1,\
              \
              #
              # Multicast
              #
              \
              jgroups.mping.mcast_addr:${multicast.group.address["cluster-link-mping"]},\
              jgroups.mping.mcast_port:${multicast.group.port["cluster-link-mping"]},\
              jgroups.mping.ip_ttl:8
        • Node 2
          module.framework.properties.osgi.console=localhost:11312
          dl.store.impl=com.liferay.portal.store.db.DBStore
          cluster.link.enabled=true
          web.server.display.node=true
          cluster.link.autodetect.address=
          
          cluster.link.channel.system.properties=\
              #
              # Common
              #
              \
              jgroups.bind_addr:${cluster.link.bind.addr["cluster-link-udp"]},\
              jgroups.bind_interface:127.0.0.1,\
              \
              #
              # Multicast
              #
              \
              jgroups.mping.mcast_addr:${multicast.group.address["cluster-link-mping"]},\
              jgroups.mping.mcast_port:${multicast.group.port["cluster-link-mping"]},\
              jgroups.mping.ip_ttl:8
      2. Start one node at a time
      3. Navigate to http://localhost:9200/_cluster/health?pretty=true

      Result: number_of_nodes should be at 2, but it's at 1

      Reproduced on:
      Tomcat 8.0.32 + MySQL 5.6.26
      Portal ee-7.0.x Git Hash: 756a86b1ebccc18225a55e85106da0f0ca7dc789
      Portal DXP GA1 + FP1

        Attachments

        1. after0.jpg
          after0.jpg
          104 kB
        2. Master.png
          Master.png
          39 kB

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                24 weeks, 4 days ago

                Packages

                Version Package