
.hazelcast-java-client.5.5.0-BETA.source-code.hazelcast-client-full.yaml Maven / Gradle / Ivy
The newest version!
# Copyright (c) 2008-2024, Hazelcast, Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# This is a full example hazelcast-client.yaml that includes all the
# configuration elements of a Hazelcast client.
#
# To use this, rename it to hazelcast-client.yaml and place it in
# the directory where you start your Hazelcast client.
#
# To learn how to configure Hazelcast, please see the Reference Manual
# at https://docs.hazelcast.com/
hazelcast-client:
config-replacers:
fail-if-value-missing: false
replacers:
- class-name: com.hazelcast.config.replacer.EncryptionReplacer
properties:
passwordFile: password
passwordUserProperties: false
cipherAlgorithm: DES
keyLengthBits: 64
secretKeyAlgorithm: DES
secretKeyFactoryAlgorithm: PBKDF2WithHmacSHA1
cluster-name: my-cluster
instance-name: CLIENT_NAME
properties:
hazelcast.client.shuffle.member.list: true
hazelcast.client.heartbeat.timeout: 60000
hazelcast.client.heartbeat.interval: 5000
hazelcast.client.event.thread.count: 5
hazelcast.client.event.queue.capacity: 1000000
hazelcast.client.invocation.timeout.seconds: 120
client-labels:
- admin
- foo
backup-ack-to-client-enabled: false
network:
cluster-members:
- 127.0.0.1
- 127.0.0.2
outbound-ports:
- 34600
- 34700-34710
smart-routing: true
redo-operation: true
connection-timeout: 60000
socket-options:
tcp-no-delay: false
keep-alive: true
reuse-address: true
linger-seconds: 3
buffer-size: 128
socket-interceptor:
enabled: true
class-name: com.hazelcast.examples.MySocketInterceptor
properties:
foo: bar
ssl:
enabled: false
factory-class-name: com.hazelcast.nio.ssl.BasicSSLContextFactory
properties:
protocol: TLS
trustStore: /opt/hazelcast-client.truststore
trustStorePassword: secret.123456
trustStoreType: JKS
# Following properties are only needed when the mutual authentication is used.
keyStore: /opt/hazelcast-client.keystore
keyStorePassword: keystorePassword123
keyStoreType: JKS
auto-detection:
enabled: false
aws:
enabled: true
connection-timeout-seconds: 11
inside-aws: true
access-key: TEST_ACCESS_KEY
secret-key: TEST_SECRET_KEY
region: us-east-1
host-header: ec2.amazonaws.com
security-group-name: hazelcast-sg
tag-key: type
tag-value: hz-nodes
gcp:
enabled: false
zones: us-east1-b,us-east1-c
azure:
enabled: false
instance-metadata-available: false
client-id: CLIENT_ID
tenant-id: TENANT_ID
client-secret: CLIENT_SECRET
subscription-id: SUB_ID
resource-group: RESOURCE-GROUP-NAME
scale-set: SCALE-SET-NAME
tag: TAG-NAME=HZLCAST001
kubernetes:
enabled: false
namespace: MY-KUBERNETES-NAMESPACE
service-name: MY-SERVICE-NAME
service-label-name: MY-SERVICE-LABEL-NAME
service-label-value: MY-SERVICE-LABEL-VALUE
eureka:
enabled: false
self-registration: true
namespace: hazelcast
icmp-ping:
enabled: false
timeout-milliseconds: 2000
interval-milliseconds: 3000
ttl: 100
max-attempts: 5
echo-fail-fast-on-startup: false
hazelcast-cloud:
enabled: false
discovery-token: EXAMPLE_TOKEN
discovery-strategies:
node-filter:
class: DummyFilterClass
discovery-strategies:
- class: DummyDiscoveryStrategy1
enabled: true
properties:
key-string: foo
key-int: 123
key-boolean: true
security:
credentials-factory:
class-name: com.hazelcast.examples.MyCredentialsFactory
properties:
property: value
realms:
- name: krb5Initiator
authentication:
jaas:
- class-name: com.sun.security.auth.module.Krb5LoginModule
usage: REQUIRED
properties:
isInitiator: true
useTicketCache: false
doNotPrompt: true
useKeyTab: true
storeKey: true
principal: [email protected]
keyTab: /opt/jduke.keytab
listeners:
- com.hazelcast.examples.MembershipListener
- com.hazelcast.examples.MigrationListener
serialization:
portable-version: 3
use-native-byte-order: true
byte-order: BIG_ENDIAN
enable-compression: false
enable-shared-object: true
allow-unsafe: false
allow-override-default-serializers: false
data-serializable-factories:
- factory-id: 1
class-name: com.hazelcast.examples.DataSerializableFactory
portable-factories:
- factory-id: 2
class-name: com.hazelcast.examples.PortableFactory
global-serializer:
override-java-serialization: true
class-name: com.hazelcast.examples.GlobalSerializerFactory
serializers:
- type-class: com.hazelcast.examples.DummyType
class-name: com.hazelcast.examples.SerializerFactory
check-class-def-errors: true
java-serialization-filter:
blacklist:
class:
- com.acme.app.BeanComparator
whitelist:
class:
- java.lang.String
- example.Foo
package:
- com.acme.app
- com.acme.app.subpkg
prefix:
- java
- "["
- com.
compact-serialization:
serializers:
- serializer: com.hazelcast.examples.DummyTypeSerializer
classes:
- class: com.hazelcast.examples.DummyType
native-memory:
enabled: false
allocator-type: POOLED
size:
unit: MEGABYTES
value: 128
min-block-size: 1
page-size: 1
metadata-space-percentage: 40.5
persistent-memory:
directories:
- directory: /mnt/pmem0
numa-node: 0
- directory: /mnt/pmem1
numa-node: 1
proxy-factories:
- class-name: com.hazelcast.examples.ProxyXYZ1
service: sampleService1
- class-name: com.hazelcast.examples.ProxyXYZ2
service: sampleService1
- class-name: com.hazelcast.examples.ProxyXYZ3
service: sampleService3
load-balancer:
type: random
# Note that the Near Cache eviction configuration is different for NATIVE in-memory format.
# For the proper eviction configuration example for NATIVE in-memory format see "NearCacheEvictionConfigExample" below
near-cache:
default:
time-to-live-seconds: 90
max-idle-seconds: 100
invalidate-on-change: true
in-memory-format: OBJECT
serialize-keys: true
local-update-policy: INVALIDATE
eviction:
eviction-policy: LFU
size: 2000
NearCacheEvictionConfigExample:
eviction:
eviction-policy: LRU
max-size-policy: ENTRY_COUNT
size: 10000
comparator-class-name: com.hazelcast.examples.MyEvictionComparator
flake-id-generator:
default:
prefetch-count: 100
prefetch-validity-millis: 600000
query-caches:
query-cache-class-name-predicate:
map-name: map-name
predicate:
class-name: com.hazelcast.examples.ExamplePredicate
entry-listeners:
- include-value: true
local: false
class-name: com.hazelcast.examples.EntryListener
include-value: true
batch-size: 1
buffer-size: 16
delay-seconds: 0
in-memory-format: BINARY
coalesce: false
populate: true
serialize-keys: false
eviction:
eviction-policy: LRU
max-size-policy: ENTRY_COUNT
size: 10000
comparator-class-name: com.hazelcast.examples.MyEvictionComparator
indexes:
- type: HASH
attributes:
- "name"
query-cache-sql-predicate:
map-name: map-name
predicate:
sql: "%age=40"
connection-strategy:
async-start: true
reconnect-mode: ASYNC
connection-retry:
initial-backoff-millis: 2000
max-backoff-millis: 60000
multiplier: 3
cluster-connect-timeout-millis: 5000
jitter: 0.5
reliable-topic:
rel-topic:
read-batch-size: 100
topic-overload-policy: DISCARD_NEWEST
user-code-deployment:
enabled: true
jarPaths:
- /User/test/sample.jar
- https://hazelcast.com/
- file://User/test/sample.jar
classNames:
- test.sampleClassName
metrics:
enabled: false
jmx:
enabled: false
collection-frequency-seconds: 42
instance-tracking:
enabled: false
sql:
resubmission-mode: RETRY_SELECTS
tpc:
enabled: true
© 2015 - 2025 Weber Informatics LLC | Privacy Policy