# Data grid between Payara Full editions

**URL:** <https://forum.payara.fish/t/data-grid-between-payara-full-editions/110>\
**Category:** Technical Discussion\
**Created:** [October 22, 2021, 2:26pm UTC](https://forum.payara.fish/t/data-grid-between-payara-full-editions/110 "2021-10-22T14:26:03Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![brasta78](https://avatars.discourse-cdn.com/v4/letter/b/59ef9b/32.png) [@brasta78](https://forum.payara.fish/u/brasta78)\
**Post date:** [October 22, 2021, 2:26pm UTC](https://forum.payara.fish/t/data-grid-between-payara-full-editions/110/1 "2021-10-22T14:26:03Z")

</div>

Hi,

I was able successfully replayed this demo on GCP [How to Create a Domain Data Grid and Use With a Load Balancer](https://blog.payara.fish/how-to-create-a-domain-data-grid-and-how-to-use-the-domain-data-grid-with-a-load-balancer?success=true), but I can’t find a useful info how to join Payara Full Edition to Data Grid. Can anybody point me to the right Payara Full Edth configuration? Thanks

---

<div class="post-metadata">

**Author:** ![charlee\_ch](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.payara.fish/charlee_ch/32/51_2.png) [@charlee\_ch](https://forum.payara.fish/u/charlee_ch)\
**Post date:** [October 23, 2021, 1:29am UTC](https://forum.payara.fish/t/data-grid-between-payara-full-editions/110/2 "2021-10-23T01:29:40Z")

</div>

Hi,

For the **Payara Server** , please visit the [Domain Data Grid Concept](https://docs.payara.fish/community/docs/documentation/payara-server/hazelcast/README.html). There are the sub-contents as the following: -

- [Discovery Modes](https://docs.payara.fish/community/docs/documentation/payara-server/hazelcast/discovery.html)
- [Enabling Data Grid](https://docs.payara.fish/community/docs/documentation/payara-server/hazelcast/enable-hazelcast.html)
- [Configuring Hazelcast](https://docs.payara.fish/community/docs/documentation/payara-server/hazelcast/configuration.html)
- [Viewing Members](https://docs.payara.fish/community/docs/documentation/payara-server/hazelcast/viewing-members.html)
- [Using Hazelcast](https://docs.payara.fish/community/docs/documentation/payara-server/hazelcast/using-hazelcast.html)
- [Administration Commands](https://docs.payara.fish/community/docs/documentation/payara-server/hazelcast/asadmin.html)
- [Data Grid Encryption](https://docs.payara.fish/community/docs/documentation/payara-server/hazelcast/datagrid-encryption.html)

> **Payara Micro Interoperability**
> 
> The Domain Data Grid is designed to be interoperable with Payara Micro and Payara Micro instances can join the Data Grid and store data. Payara Micro has a specific cluster mode which can be enabled to join a Domain Data Grid.

Furthermore, for the **Payara Micro** , please visit the [Clustering](https://docs.payara.fish/community/docs/documentation/payara-micro/clustering/clustering.html) which also has the sub-contents as the following: -

- [Automatically](https://docs.payara.fish/community/docs/documentation/payara-micro/clustering/autoclustering.html)
- [Clustering with Payara Server](https://docs.payara.fish/community/docs/documentation/payara-micro/clustering/clustering-with-full-server.html)
- [Lite Cluster Members](https://docs.payara.fish/community/docs/documentation/payara-micro/clustering/lite-nodes.html)

---

<div class="post-metadata">

**Author:** ![brasta78](https://avatars.discourse-cdn.com/v4/letter/b/59ef9b/32.png) [@brasta78](https://forum.payara.fish/u/brasta78)\
**Post date:** [October 24, 2021, 5:50pm UTC](https://forum.payara.fish/t/data-grid-between-payara-full-editions/110/3 "2021-10-24T17:50:37Z")

</div>

Hi,

sorry, but this is not an answer to list documentation that I already read… I’m trying to concretize my question: how to add Payara Server Full to existing Data Grid? If it is not possible then - how can I scale my Java EE application?

---

<div class="post-metadata">

**Author:** ![charlee\_ch](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.payara.fish/charlee_ch/32/51_2.png) [@charlee\_ch](https://forum.payara.fish/u/charlee_ch)\
**Post date:** [October 25, 2021, 1:52am UTC](https://forum.payara.fish/t/data-grid-between-payara-full-editions/110/4 "2021-10-25T01:52:12Z")

</div>

Hi,

AFAIK, it depends on the Discovery Mode. If we choose the _Domain Discovery Mode, TCPIP Discovery Mode and DNS Discovery Mode_, when we have a new Payara instances we may have two steps as configuring the new instance to know the existing instances and tell every existing instances to know the new one. For TCPIP Discovery Mode example, by using the `asadmin> set-hazelcast-configuration --clustermode tcpip --tcpipmembers 192.168.0.104:4900,192.168.0.105:5900`

Anyhow if we would like some kind of automatic joining / unjoining we may choose the _Multicast Discovery Mode_. Note: If we are on Kubernetes, Payara also provides the _Kubernetes Discovery Mode_ as well.

Furthermore there is a Payara at YouTube as [Payara - YouTube](https://www.youtube.com/channel/UCn37r8rKoMvhTXKzRDiYyAQ) . They provide many useful videos, including with the demonstration about the _Multicast Discovery Mode_ within Docker as the following as well.

[![](https://europe1.discourse-cdn.com/flex017/uploads/payara/original/1X/673d1235ea0e813967e23347c34546458e367fda.jpeg "Clustering Two Payara Servers through the Data Grid") ](https://www.youtube.com/watch?v=Er94oAz-QMw)

---

<div class="post-metadata">

**Author:** ![brasta78](https://avatars.discourse-cdn.com/v4/letter/b/59ef9b/32.png) [@brasta78](https://forum.payara.fish/u/brasta78)\
**Post date:** [October 25, 2021, 7:39pm UTC](https://forum.payara.fish/t/data-grid-between-payara-full-editions/110/5 "2021-10-25T19:39:43Z")

</div>

Since I’m new to Data Grid I’m not sure it should be like that or it’s a bug, but on GCP I was able to join multiple Payara Servers (v5.2021.7) to same Data Grid only using DNS discovery mode. Any other combination of discovery modes on both servers like Domain \<-\> Domain, Domain \<-\> Multicast or Multicast \<-\>Multicast didn’t work for me…

---

<div class="post-metadata">

**Author:** ![charlee\_ch](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.payara.fish/charlee_ch/32/51_2.png) [@charlee\_ch](https://forum.payara.fish/u/charlee_ch)\
**Post date:** [October 26, 2021, 1:28am UTC](https://forum.payara.fish/t/data-grid-between-payara-full-editions/110/6 "2021-10-26T01:28:05Z")

</div>

I am not familiar with GCP. Anyhow I found that the _[Google Cloud: VPC network overview](https://cloud.google.com/vpc/docs/vpc)_ mentions as the following: -

> _VPC networks do **not** support_ [broadcast](https://wikipedia.org/wiki/Broadcasting_(networking)) or [multicast](https://wikipedia.org/wiki/IP_multicast) addresses _within_ the network.

This may mean that we may not achieve the _automatic joining / unjoining_ with _Multicast Discovery Mode_ and may have only two choices as _TCPIP Discovery Mode_ and _DNS Discovery Mode_. We have to add/remove the members via `asadmin` manually or create a customized scripts to execute that `asadmin` command so that it is a [DRY](https://en.wikipedia.org/wiki/Don%27t_repeat_yourself).

_Note: Regarding to my previous reply about the Domain Discovery Mode, I may be wrong. The Domain Discovery Mode may use the multicast as well ?_

* * *

Moreover, the [Hazelcast: Discovery Mechanisms: GCP Cloud Discovery](https://docs.hazelcast.com/imdg/4.2/clusters/discovery-mechanisms.html#gcp-cloud-discovery) also mentions as the following: -

> Hazelcast supports discovering members in the [GCP Compute Engine](https://cloud.google.com/compute/) environment. You can easily configure Hazelcast members discovery, WAN replication, and Hazelcast Client to work seamlessly on the native GCP VM Instances. This discovery feature is provided as a Hazelcast plugin. See the [Cloud Discovery Plugins: Hazelcast GCP section](https://docs.hazelcast.com/imdg/4.2/plugins/cloud-discovery#hazelcast-cloud-discovery-plugins-gcp).

While the [Cloud Discovery Plugins: Hazelcast GCP section](https://docs.hazelcast.com/imdg/4.2/plugins/cloud-discovery#hazelcast-cloud-discovery-plugins-gcp) mentions as the following:-

> Hazelcast provides support for [Google Compute Engine](https://cloud.google.com/compute/), covering the following environments:
> 
> - Compute Engine VM Instances with [Hazelcast GCP Discovery plugin](https://github.com/hazelcast/hazelcast-gcp)
> - Google Kubernetes Engine (GKE) with [Hazelcast Kubernetes Discovery plugin](https://github.com/hazelcast/hazelcast-kubernetes)
> 
> In both scenarios you can use the `ZONE_AWARE` feature to create partition backups in other Availability Zones (AZ) and therefore prevent any data loss in case of AZ failures.
> 
> You can easily configure your Hazelcast member/client to use GCP discovery by having the `hazelcast-all` (or `hazelcast-gcp` ) JAR on your classpath and enabling GCP in your Hazelcast configuration.
> 
> See the [Hazelcast GCP Plugin documentation](https://github.com/hazelcast/hazelcast-gcp) for more details.

Then we may take our life to the risk by using _trial and error_ by providing the `Hazelcast GCP` to the Payara classpath, configuring the `hazelcast.config` to use that plugin manually and last but not least, letting the Payara to use that configuration file by following the [Configuring the Domain Data Grid underlying Hazelcast](https://docs.payara.fish/community/docs/documentation/payara-server/hazelcast/configuration.html)

---

<div class="post-metadata">

**Author:** ![brasta78](https://avatars.discourse-cdn.com/v4/letter/b/59ef9b/32.png) [@brasta78](https://forum.payara.fish/u/brasta78)\
**Post date:** [October 26, 2021, 4:34pm UTC](https://forum.payara.fish/t/data-grid-between-payara-full-editions/110/7 "2021-10-26T16:34:36Z")

</div>

Thanks, @charlee_ch , for your effort - it seems that I took a wrong IaaS provider to make my first test with Data Grid which now I understand is really simple

---

<div class="post-metadata">

**Author:** ![fturizo](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.payara.fish/fturizo/32/27_2.png) [@fturizo](https://forum.payara.fish/u/fturizo)\
**Post date:** [March 25, 2022, 10:37pm UTC](https://forum.payara.fish/t/data-grid-between-payara-full-editions/110/8 "2022-03-25T22:37:55Z")

</div>


