Support Policy Knowledge Base
- Audience Targeting for Digital Experience Platform 7.2
- AWS Cloud Services Support Policy
- Bookmarks Module for Digital Experience Platform
- Cobertura de soporte transitoria para las versiones trimestrales
- Critical Incident Contact role
- Digital Experience Platform 7.0 Deprecated and Archived Items
- Digital Experience Platform 7.1 Deprecated and Archived Items
- Digital Experience Platform 7.2 Deprecated and Archived Items
- Digital Experience Platform 7.3 Deprecated and Archived Items
- Document Conversion Support Policy
- Document Repository Support Policy
- Document Thumbnails and Previews Support Policy
- Glassfish Support Policy
- Google Authorization Removal in Liferay DXP 7.2
- IBM DB2 Database Support Policy
- IBM JDK Support Policy
- Installing Archived Modules From Liferay's Public Repository
- Internet Explorer Support Policy
- Java TCK Certified OpenJDK Binaries
- JBoss Support Policy
- JDK7 Concerns
- JDK Certification, Java TCK Compliance, and Liferay
- LDAP Support Policy
- Liferay and Amazon S3 SigV2 Deprecation
- Liferay Docker Image Security Policy
- Liferay Documentum Connector for Digital Experience Platform 7.1
- Liferay DXP 2023.Q3 and DXP 2023.Q4 Transitional Support Coverage
- Liferay DXP 7.0 Fix Pack Releases
- Liferay DXP Compatibility with Elasticsearch Service on Elastic Cloud
- Liferay Security Practices
- Liferay Social Networking for Digital Experience Platform 7.1
- Liferay Web Proxy Module for Digital Experience Platform 7.1
- Linux (general) Operating System Support Policy
- Microsoft Azure Cloud Services Support Policy
- Microsoft Edge Compatibility
- Microsoft SQL Server Database Support Policy
- Mobile Device Support Policy
- MySQL Database Support Policy
- NTLM Module in Digital Experience Platform 7.2
- OpenID Removal in Liferay DXP 7.2
- Oracle Database Support Policy
- Oracle JDK Support Policy
- Oracle JRockit JDK Support Policy
- PostgreSQL Database Support Policy
- Red Hat Enterprise Operating System Support Policy
- Resources Importer
- Rolling Restart - Breaking Changes
- SAML Support Policy
- Search Portlet in Liferay DXP 7.2
- Solaris Operating System Support Policy
- SSO (general) Policy
- Third-Party Paid Apps Activation Support Policy
- Tomcat Support Policy
- WebDAV Support Policy
- WebLogic Support Policy
- WebSphere Support Policy
- Wildfly Support Policy
- Xuggler Support Policy
Liferay DXP Compatibility with Elasticsearch Service on Elastic Cloud
Elastic Cloud (EC) offers Elasticsearch Service to host your Elastic Stack as a managed service. As we see an increasing demand for cloud-based deployments at Liferay, we created this article to provide you information about the compatibility between Liferay DXP and Elasticsearch hosted on Elastic Cloud.*
Table of Contents
- Introduction
- Environment - DXP 7.3-7.4
- Environment - DXP 7.0-7.2
- Disclaimer: Reporting Issues to Liferay Support
- How to find out the JDK version of my Elasticsearch Service on Elastic Cloud?
- How to configure Liferay DXP to connect to Elasticsearch on Elastic Cloud?
Introduction
This article addresses Liferay DXP and Elastic Cloud compatibility. There are additional restrictions and known issues with Elastic Cloud to take into consideration when planning to host your Elastic Stack for Liferay DXP on Elastic Cloud.
Please consult with the available user settings for the Elasticsearch Service and check Liferay DXP documentation to verify there are no conflicts between the Elasticsearch configurations or Elasticsearch-based features available in Elastic Cloud and those required by Liferay DXP. Some Liferay DXP use-cases could require configurations or features which are not available through Elastic Cloud.
Liferay Enterprise Search subscribers: as indicated here, Liferay Enterprise Search does not offer any licensing agreements with Elastic for their Elastic Cloud service.
Environment - DXP 7.3-7.4
- Liferay DXP 7.3-7.4
- Elastic Stack 7.x hosted on Elastic Cloud
Conclusion - DXP 7.3-7.4
The Elasticsearch 7 connector that is bundled with DXP 7.3 and 7.4 by default is using the Java REST Client which communicates with Elasticsearch over HTTP*. This communication protocol does not require Java serialization between DXP and Elasticsearch. Therefore, Liferay DXP 7.3 and 7.4 deployments can connect to Elasticsearch Service on Elastic Cloud as long as your Elasticsearch service is using a compatible version.
Environment - DXP 7.0-7.2
- Liferay DXP 7.0-7.2
- Elastic Stack 6.x and 7.x hosted on Elastic Cloud
Conclusion - DXP 7.0-7.2
Liferay can't ensure the compatibility between DXP and Elasticsearch hosted on Elastic Cloud due to the possible mismatch in the Java versions and the additional restrictions for the Transport Client.
There are three factors that affect the compatibility and require consideration before deciding to move your Elastic Stack to EC:
- Elasticsearch Version Compatibility: The Search Engine Compatibility Matrix for your DXP version lists the supported technologies and their versions, including Elasticsearch. This means, your Elasticsearch service in EC must be using a version that appears in the compatibility matrix.
- Transport Layer Communication: Liferay's Elasticsearch connectors available for the DXP versions indicated above use the Java Transport Client to communicate with the Elasticsearch nodes. EC must support connections over the Transport layer otherwise Liferay's Elasticsearch connectors can't connect to the Elasticsearch node(s).**
- Java Compatibility: As stated in Introduction to Installing a Search Engine, Elasticsearch and Liferay DXP must use the same Java version and distribution. This is because the Transport Client relies on Java serialization. According to our tests (performed in July, 2020), the Elasticsearch 6.8.10 and 7.7.1 services in EC (and the underlying Elasticsearch Docker images) use Adopt OpenJDK 64-bit 14.0.1+7 which is not a certified version for Liferay DXP according to the Compatibility Matrix.
Disclaimer: Reporting Issues to Liferay Support
When you report issues with Liferay DXP and Elasticsearch to Liferay Support, besides providing the usual information (like Liferay DXP Patch Level, connector version and config files; Elasticsearch/Kibana versions and configuration files such as elasticsearch.yml and kibana.yml; JDK version etc.) please also indicate on your ticket that you are using Elastic Cloud.
If Subscription Services' investigation determines that the root cause of the issue is related to a JDK mismatch, then Subscription Services will be limited in resolving the issue.
How to find the JDK version of my Elasticsearch Service on Elastic Cloud?
This information can be obtained through the Dev Tools console in Kibana:
Request:GET _nodes Relevant snippet of the response JSON:
"jvm" : {
"pid" : 572,
"version" : "14.0.1",
"vm_name" : "OpenJDK 64-Bit Server VM",
"vm_version" : "14.0.1+7",
"vm_vendor" : "AdoptOpenJDK",
"bundled_jdk" : true,
"using_bundled_jdk" : true,
"start_time_in_millis" : 1594278093230,
"mem" : {
"heap_init_in_bytes" : 2147483648,
"heap_max_in_bytes" : 2147483648,
"non_heap_init_in_bytes" : 7667712,
"non_heap_max_in_bytes" : 0,
"direct_max_in_bytes" : 0
},
How to configure Liferay DXP to connect to Elasticsearch on Elastic Cloud?
Refer to this article for an example configuration.
Related Resources
* This article also applies to Elastic Cloud subscriptions billed through the marketplace of the available cloud providers (Amazon Web Services (AWS), Google Cloud Platform (GCP), Microsoft Azure) as Elastic Cloud deployments are managed through Elastic's cloud console.
** Please see this article for a technical overview of the Elasticsearch connectors available for Liferay DXP.