A newer version of Hazelcast Operator is available.

View latest

Advanced Network Configuration

In Hazelcast, you can configure the Hazelcast members with separate server sockets using a different network configuration for different protocols. It is called Advanced Network and support Member, Client, REST, Memcache and WAN protocols.

In the Hazelcast Platform Operator, advanced networking configuration is enabled by default and REST and Client protocols are already configured:

  • For Client protocol the port number is 5701.

  • For REST, port number is 8081 and Persistence, HealthCheck and ClusterWrite endpoint groups enabled by default.

  • For WAN, default port number is 5710.

You can configure Member Protocol interfaces and WAN Protocol sockets using the Hazelcast Platform Operator.

Configuring Member Protocol Interfaces

This is an example configuration for configuring interfaces using the Hazelcast Platform Operator:

Example Configuration
apiVersion: hazelcast.com/v1alpha1
kind: Hazelcast
metadata:
  name: hazelcast-sample
spec:
  clusterSize: 3
  repository: 'docker.io/hazelcast/hazelcast-enterprise'
  version: '5.3.2-slim'
  licenseKeySecretName: hazelcast-license-key
  advancedNetwork:
    memberServerSocketEndpointConfig:
      interfaces:
      - 10.10.1.*

Configuring WAN Protocol Sockets

The following example shows an example configuration for configuring WAN sockets using the Hazelcast Platform Operator:

Example Configuration
apiVersion: hazelcast.com/v1alpha1
kind: Hazelcast
metadata:
  name: hazelcast-sample
spec:
  clusterSize: 3
  repository: 'docker.io/hazelcast/hazelcast-enterprise'
  version: '5.3.2-slim'
  licenseKeySecretName: hazelcast-license-key
  advancedNetwork:
    wan:
    - name: istanbul
      port: 5710
      portCount: 5
      serviceType: LoadBalancer

Possible values for serviceType are: ClusterIP and LoadBalancer. After applying this example configuration, there will be 1 service created with type of LoadBalancer which exposes 5 ports: 5710, 5711, 5712, 5713, 5714. If you don’t provide a serviceType, it will be set to LoadBalancer by default.

In case WAN Replication configuration is not provided in advancedNetwork configuration, port number 5710 will be configured for WAN Replication by default.