-
Notifications
You must be signed in to change notification settings - Fork 1.8k
/
hazelcast-fullconfig-without-network.yaml
1156 lines (1080 loc) · 33.4 KB
/
hazelcast-fullconfig-without-network.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# 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.
# A comprehensive example of Hazelcast configuration without network configuration.
# This file is complete if included into either of the following:
# - hazelcast-fullconfig.yaml
# - hazelcast-fullconfig-advanced-network-config.yaml
#
# Hazelcast resolves configuration using the following approach:
#
# 1. First is checks to see if the ’hazelcast.config’ system property is set. If it is, then the value is used as the path.
#
# The config option can be set by adding the following to the java command: -Dhazelcast.config=path_to_the_hazelcast.yaml.
#
# The value can be a normal file path, but can also be a classpath reference if it is prefixed with ’classpath:’.
#
# 2. Otherwise it checks if there is a ’hazelcast.yaml’ in the working directory.
#
# 3. After that it checks if there is a ’hazelcast.yaml’ in the root of the classpath.
#
# 4. If a configuration cannot be found, Hazelcast will use the default hazelcast configuration
# ’hazelcast-default.yaml’, which is included in the the Hazelcast jar
hazelcast:
cluster-name: my-cluster
license-key: HAZELCAST_ENTERPRISE_LICENSE_KEY
instance-name: dummy
management-center:
scripting-enabled: false
console-enabled: false
data-access-enabled: true
trusted-interfaces:
- 10.10.1.*
- 10.10.2.*
properties:
foo: bar
wan-replication:
my-wan-cluster:
batch-publisher:
tokyoPublisherId:
cluster-name: tokyo
queue-capacity: 1000
queue-full-behavior: THROW_EXCEPTION
initial-publisher-state: STOPPED
batch-size: 50
batch-max-delay-millis: 3000
response-timeout-millis: 5000
acknowledge-type: ACK_ON_RECEIPT
target-endpoints: "10.3.5.1:5701, 10.3.5.2:5701"
snapshot-enabled: true
sync:
consistency-check-strategy: MERKLE_TREES
istanbul:
queue-full-behavior: THROW_EXCEPTION_ONLY_IF_REPLICATION_ACTIVE
initial-publisher-state: STOPPED
queue-capacity: 12345
discovery-period-seconds: 5
max-target-endpoints: 2
aws:
enabled: false
connection-timeout-seconds: 10
access-key: sample-access-key
secret-key: sample-secret-key
iam-role: sample-role
region: sample-region
host-header: sample-header
security-group-name: sample-group
tag-key: sample-tag-key
tag-value: sample-tag-value
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
discovery-strategies:
node-filter:
class: DummyFilterClass
discovery-strategies:
- class: DummyDiscoveryStrategy1
enabled: true
properties:
key-string: foo
key-int: 123
key-boolean: true
properties:
custom.prop.publisher: prop.publisher
consumer:
class-name: com.hazelcast.wan.custom.WanConsumer
properties:
custom.prop.consumer: prop.consumer
persist-wan-replicated-data: true
partition-group:
enabled: true
group-type: CUSTOM
member-group:
-
- 10.10.0.*
- 10.10.3.*
- 10.10.5.*
-
- 10.10.10.10-100
- 10.10.1.*
- 10.10.2.*
executor-service:
default:
statistics-enabled: false
pool-size: 16
queue-capacity: 1000
split-brain-protection-ref: splitBrainProtectionRuleWithThreeMembers
user-code-namespace: ns1
durable-executor-service:
dummy:
statistics-enabled: false
pool-size: 10
durability: 2
capacity: 10
split-brain-protection-ref: splitBrainProtectionRuleWithThreeMembers
user-code-namespace: ns1
scheduled-executor-service:
dummy:
statistics-enabled: false
pool-size: 10
durability: 2
capacity: 50
split-brain-protection-ref: splitBrainProtectionRuleWithThreeMembers
merge-policy:
batch-size: 10
class-name: PutIfAbsentMergePolicy
user-code-namespace: ns1
cardinality-estimator:
dummy:
backup-count: 1
async-backup-count: 0
split-brain-protection-ref: splitBrainProtectionRuleWithThreeNodes
merge-policy:
batch-size: 50
class-name: HyperLogLogMergePolicy
queue:
default:
statistics-enabled: false
# Maximum size of the queue. When a JVM's local queue size reaches the maximum,
# all put/offer operations will get blocked until the queue size
# of the JVM goes down below the maximum.
# Any integer between 0 and Integer.MAX_VALUE. 0 means
# Integer.MAX_VALUE. Default is 0.
max-size: 10
backup-count: 2
async-backup-count: 2
empty-queue-ttl: 12
item-listeners:
- include-value: true
class-name: com.hazelcast.examples.ItemListener
queue-store:
enabled: true
# class-name: DummyClass
factory-class-name: DummyFactoryClass
properties:
foo: bar
split-brain-protection-ref: splitBrainProtectionRuleWithThreeMembers
merge-policy:
batch-size: 100
class-name: PutIfAbsentMergePolicy
priority-comparator-class-name: com.hazelcast.collection.impl.queue.model.PriorityElementComparator
user-code-namespace: ns1
map:
default:
# Data type that will be used for storing recordMap.
# Possible values:
# BINARY (default): keys and values will be stored as binary data
# OBJECT : values will be stored in their object forms
# NATIVE : values will be stored in non-heap region of JVM
in-memory-format: OBJECT
# Metadata creation policy for this map. Hazelcast may process
# objects of supported types ahead of time to create additional
# metadata about them. This metadata then is used to make querying
# and indexing faster. Metadata creation may decrease put
# throughput. Valid values are:
# CREATE_ON_UPDATE (default): Objects of supported types are
# pre-processed when they are created and updated.
# OFF: No metadata is created.
metadata-policy: CREATE_ON_UPDATE
# Whether map level statistical information (total
# hits, memory-cost etc.) should be gathered and stored.
statistics-enabled: true
# Whether statistical information (hits, creation
# time, last access time etc.) should be gathered
# and stored. You have to enable this if you plan to
# implement a custom eviction policy, out-of-the-box
# eviction policies work regardless of this setting.
per-entry-stats-enabled: false
cache-deserialized-values: ALWAYS
# Number of backups. If 1 is set as the backup-count for example,
# then all entries of the map will be copied to another JVM for
# fail-safety. 0 means no backup.
backup-count: 2
# Number of async backups. 0 means no backup.
async-backup-count: 2
# Maximum number of seconds for each item to live.
# Any integer between 0 and Integer.MAX_VALUE. 0 means infinite. Default is 0.
time-to-live-seconds: 2
# Maximum number of seconds for each item to stay idle (untouched).
# Any integer between 0 and Integer.MAX_VALUE. 0 means infinite. Default is 0.
max-idle-seconds: 2
eviction:
eviction-policy: LRU
max-size-policy: PER_NODE
size: 20
# While recovering from split-brain (network partitioning), data structure entries in the small cluster
# merge into the bigger cluster based on the policy set here. When an entry merges into the cluster,
# an entry with the same key (or value) might already exist in the cluster.
# The merge policy resolves these conflicts with different out-of-the-box or custom strategies.
# The out-of-the-box merge polices can be references by their simple class name.
# For custom merge policies you have to provide a fully qualified class name.
#
# The out-of-the-box policies are:
# * DiscardMergePolicy: the entry from the smaller cluster will be discarded.
# * HigherHitsMergePolicy: the entry with the higher number of hits wins.
# * LatestAccessMergePolicy: the entry with the latest access wins.
# * LatestUpdateMergePolicy: the entry with the latest update wins.
# * PassThroughMergePolicy: the entry from the smaller cluster wins.
# * PutIfAbsentMergePolicy: the entry from the smaller cluster wins if it doesn't exist in the cluster.
# * The default policy is: PutIfAbsentMergePolicy
# Beware that `merge-policy` is not supported for NATIVE in-memory format.
merge-policy:
batch-size: 100
class-name: PutIfAbsentMergePolicy
read-backup-data: true
merkle-tree:
enabled: true
depth: 5
hot-restart:
fsync: true
event-journal:
enabled: true
capacity: 10
time-to-live-seconds: 10
# Used to store Map entries in a backing store. If configured entries will be loaded from this store on startup.
#
# On startup, may be loaded in two ways, controlled by the initial-mode attribute:
# - LAZY. Asynchronously loads the entries. This is the default.
# - EAGER. Synchronously loads the entries. Calls to getMap() are blocked while this happens.
map-store:
enabled: true
initial-mode: LAZY
class-name: com.hazelcast.examples.DummyStore
# factory-class-name: com.hazelcast.examples.DummyStoreFactory
write-delay-seconds: 0
write-batch-size: 1
write-coalescing: true
offload: false
properties:
dummy.property: value
# Note that the Near Cache eviction configuration is different for NATIVE in-memory format.
# Proper eviction configuration example for NATIVE in-memory format :
# `<eviction max-size-policy="USED_NATIVE_MEMORY_SIZE" eviction-policy="LFU" size="60"/>`
near-cache:
time-to-live-seconds: 0
max-idle-seconds: 0
eviction:
size: 10000
eviction-policy: LFU
invalidate-on-change: true
cache-local-entries: false
wan-replication-ref:
my-wan-cluster:
merge-policy-class-name: PassThroughMergePolicy
filters:
- com.example.WanTestFilter1
- com.example.WanTestFilter2
republishing-enabled: false
indexes:
# unordered/hash index on the name attribute
- type: HASH
attributes:
- "name"
# ordered/tree index on the age attribute
- attributes:
- "age"
# composite unordered/hash index on the name and age attributes
- type: HASH
attributes:
- "name"
- "age"
# composite ordered/tree index on the age and name attributes
- attributes:
- "age"
- "name"
# bitmap index on the age attribute
- type: BITMAP
attributes:
- "age"
# bitmap index on the name attribute with options
- type: BITMAP
attributes:
- "name"
bitmap-index-options:
unique-key: id
unique-key-transformation: RAW
- type: SORTED
attributes:
- "age"
btree-index:
page-size:
value: 16
unit: KILOBYTES
memory-tier:
capacity:
value: 3000
unit: GIGABYTES
attributes:
currency:
extractor-class-name: com.example.CurrencyExtractor
age:
extractor-class-name: com.example.AgeExtractor
entry-listeners:
- include-value: true
local: false
class-name: com.hazelcast.examples.EntryListener
partition-lost-listeners:
- com.hazelcast.examples.MapPartitionLostListener
query-caches:
query-cache-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
indexes:
- type: HASH
attributes:
- "name"
- attributes:
- "age"
tiered-store:
enabled: true
memory-tier:
capacity:
unit: MEGABYTES
value: 256
disk-tier:
enabled: true
device-name: default-tiered-store-device
partition-strategy: "com.example.Strategy"
partition-attributes:
- name: "attributeName1"
- name: "attributeName2"
user-code-namespace: ns1
multimap:
default:
backup-count: 1
async-backup-count: 0
statistics-enabled: false
binary: false
value-collection-type: SET
entry-listeners:
- include-value: true
local: true
class-name: com.hazelcast.examples.EntryListener
split-brain-protection-ref: splitBrainProtectionRuleWithThreeMembers
merge-policy:
batch-size: 100
class-name: PutIfAbsentMergePolicy
user-code-namespace: ns1
replicatedmap:
dummy:
in-memory-format: BINARY
async-fillup: false
statistics-enabled: false
split-brain-protection-ref: splitBrainProtectionRuleWithThreeMembers
merge-policy:
batch-size: 100
class-name: PutIfAbsentMergePolicy
entry-listeners:
- include-value: false
local: true
class-name: DummyListener
user-code-namespace: ns1
list:
default:
statistics-enabled: false
max-size: 5
backup-count: 2
async-backup-count: 2
item-listeners:
- include-value: true
class-name: com.hazelcast.examples.ItemListener
split-brain-protection-ref: splitBrainProtectionRuleWithThreeMembers
merge-policy:
batch-size: 100
class-name: PutIfAbsentMergePolicy
user-code-namespace: ns1
set:
default:
statistics-enabled: false
max-size: 0
backup-count: 1
async-backup-count: 0
item-listeners:
- include-value: true
class-name: com.hazelcast.examples.ItemListener
split-brain-protection-ref: splitBrainProtectionRuleWithThreeMembers
merge-policy:
batch-size: 100
class-name: PutIfAbsentMergePolicy
user-code-namespace: ns1
topic:
default:
statistics-enabled: false
global-ordering-enabled: true
message-listeners:
- com.hazelcast.examples.MessageListener
multi-threading-enabled: false
user-code-namespace: ns1
reliable-topic:
default:
statistics-enabled: true
topic-overload-policy: ERROR
read-batch-size: 10
message-listeners:
- com.hazelcast.examples.MessageListener
user-code-namespace: ns1
ringbuffer:
default:
capacity: 25311
backup-count: 2
async-backup-count: 1
time-to-live-seconds: 29
in-memory-format: OBJECT
split-brain-protection-ref: splitBrainProtectionRuleWithThreeMembers
merge-policy:
batch-size: 100
class-name: PutIfAbsentMergePolicy
user-code-namespace: ns1
cache:
default:
key-type:
class-name: java.lang.Object
value-type:
class-name: java.lang.String
statistics-enabled: false
management-enabled: false
read-through: true
write-through: true
cache-loader-factory:
class-name: com.example.cache.MyCacheLoaderFactory
cache-writer-factory:
class-name: com.example.cache.MyCacheWriterFactory
expiry-policy-factory:
# class-name: com.example.cache.MyExpirePolicyFactory
timed-expiry-policy-factory:
expiry-policy-type: TOUCHED
duration-amount: 123
time-unit: MICROSECONDS
cache-entry-listeners:
- old-value-required: true
synchronous: true
cache-entry-listener-factory:
class-name: com.example.cache.MyEntryListenerFactory
cache-entry-event-filter-factory:
class-name: com.example.cache.MyEntryEventFilterFactory
- cache-entry-listener-factory:
class-name: com.example.cache.MyEntryListenerFactory2
cache-entry-event-filter-factory:
class-name: com.example.cache.MyEntryEventFilterFactory2
in-memory-format: OBJECT
backup-count: 2
async-backup-count: 2
eviction:
comparator-class-name: DummyClass
eviction-policy: LRU
max-size-policy: ENTRY_COUNT
size: 50
wan-replication-ref:
name: my-wan-cluster
merge-policy-class-name: PassThroughMergePolicy
filters:
- com.example.WanTestFilter1
- com.example.WanTestFilter2
split-brain-protection-ref: DummySplitBrainProtection
merge-policy:
batch-size: 100
class-name: DummyMergePolicy
partition-lost-listeners:
- DummyListener
hot-restart:
fsync: true
event-journal:
enabled: true
capacity: 100
time-to-live-seconds: 100
merkle-tree:
enabled: true
depth: 5
user-code-namespace: ns1
flake-id-generator:
default:
prefetch-count: 100
prefetch-validity-millis: 600000
epoch-start: 1514764800000
node-id-offset: 0
bits-sequence: 6
bits-node-id: 16
allowed-future-millis: 15000
statistics-enabled: false
listeners:
- com.hazelcast.examples.MembershipListener
- com.hazelcast.examples.MigrationListener
- com.hazelcast.examples.PartitionLostListener
serialization:
portable-version: 0
use-native-byte-order: true
byte-order: LITTLE_ENDIAN
enable-compression: true
enable-shared-object: true
allow-unsafe: true
allow-override-default-serializers: false
data-serializable-factories:
- factory-id: 1
class-name: com.hazelcast.examples.DataSerializableFactory
portable-factories:
- factory-id: 1
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: false
java-serialization-filter:
defaults-disabled: true
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:
allocator-type: STANDARD
enabled: true
size:
unit: MEGABYTES
value: 256
min-block-size: 128
page-size: 123
metadata-space-percentage: 12.5
persistent-memory:
enabled: true
mode: MOUNTED
directories:
- directory: /mnt/pmem0
numa-node: 0
- directory: /mnt/pmem1
numa-node: 1
security:
enabled: false
realms:
- name: simpleRealm
authentication:
simple:
users:
- username: test
password: 'a1234'
roles:
- monitor
- hazelcast
- username: dev
password: 'secret'
roles:
- root
- name: jaasRealm
authentication:
jaas:
- class-name: com.hazelcast.examples.MyRequiredLoginModule
usage: REQUIRED
properties:
property: value
identity:
credentials-factory:
class-name: com.hazelcast.examples.MyCredentialsFactory
properties:
property: value
- name: ldapRealm
authentication:
ldap:
url: ldap://ldap.my-company.example
socket-factory-class-name: socketFactoryClassName
parse-dn: true
role-context: roleContext
role-filter: roleFilter
role-mapping-attribute: roleMappingAttribute
role-mapping-mode: reverse
role-name-attribute: roleNameAttribute
role-recursion-max-depth: 25
role-search-scope: object
user-name-attribute: userNameAttribute
system-user-dn: systemUserDn
system-user-password: systemUserPassword
system-authentication: simple
security-realm: realmName
password-attribute: passwordAttribute
user-context: userContext
user-filter: userFilter
user-search-scope: one-level
- name: tlsRealm
authentication:
tls:
roleAttribute: cn
- name: usernamePasswordIdentityRealm
identity:
username-password:
username: user
password: Hazelcast
- name: tokenIdentityRealm
identity:
token:
encoding: base64
value: SGF6ZWxjYXN0
- name: kerberosRealm
authentication:
kerberos:
skip-role: true
relax-flags-check: true
use-name-without-realm: true
security-realm: krb5Acceptor
ldap:
url: ldap://127.0.0.1/
system-authentication: GSSAPI
security-realm: krb5Initiator
skip-authentication: true
user-filter: "(krb5PrincipalName={login})"
role-mapping-attribute: cn
identity:
kerberos:
realm: HAZELCAST.COM
security-realm: krb5Initiator
service-name-prefix: hz/
use-canonical-hostname: true
spn: hz/127.0.0.1@HAZELCAST.COM
- name: simpleKerberosRealm
authentication:
kerberos:
principal: hz/127.0.0.1@HAZELCAST.COM
keytab-file: /opt/localhost.keytab
identity:
kerberos:
realm: HAZELCAST.COM
principal: hz/127.0.0.1@HAZELCAST.COM
keytab-file: /opt/localhost.keytab
- name: krb5Acceptor
authentication:
jaas:
- class-name: com.sun.security.auth.module.Krb5LoginModule
usage: REQUIRED
properties:
isInitiator: false
useTicketCache: false
doNotPrompt: true
useKeyTab: true
storeKey: true
principal: hz/127.0.0.1@HAZELCAST.COM
keyTab: /opt/hz-localhost.keytab
- 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: hz/127.0.0.1@HAZELCAST.COM
keyTab: /opt/hz-localhost.keytab
- name: restRealm
authentication:
simple:
users:
- username: restuser
password: 'restpassword'
roles:
- admin
access-control-service:
factory-class-name: com.acme.access.AccessControlServiceFactory
properties:
decisionFile: '/opt/acl.xml'
member-authentication:
realm: jaasRealm
client-authentication:
realm: simpleRealm
client-permission-policy:
class-name: com.hazelcast.examples.MyPermissionPolicy
properties:
property: value
client-permissions:
on-join-operation: SEND
priority-grant: true
all:
principal: admin
endpoints:
- 127.0.0.1
config:
principal: deployer
countdown-latch:
- name: "*"
actions:
- all
set:
- name: "*"
actions:
- all
cardinality-estimator:
- name: "*"
actions:
- all
scheduled-executor:
- name: "*"
principal: "*"
actions:
- all
atomic-long:
- name: "*"
actions:
- all
atomic-reference:
- name: "*"
actions:
- all
cpmap:
- name: "*"
actions:
- all
transaction:
principal: deployer
deny: true
pn-counter:
- name: "*"
actions:
- all
semaphore:
- name: "*"
principal: "*"
actions:
- all
user-code-deployment:
- name: "*"
principal: "*"
actions:
- all
durable-executor-service:
- name: "*"
actions:
- all
map:
- name: custom
principal: dev
endpoints:
- 127.0.0.1
actions:
- create
- destroy
- put
- read
flake-id-generator:
- name: "*"
actions:
- all
topic:
- name: "*"
actions:
- all
multimap:
- name: "*"
actions:
- all
cache:
- name: "*"
actions:
- all
lock:
- name: "*"
actions:
- all
queue:
- name: "*"
actions:
- all
list:
- name: "*"
actions:
- all
executor-service:
- name: "*"
actions:
- all
ring-buffer:
- name: "*"
principal: "*"
actions:
- all
replicatedmap:
- name: "*"
actions:
- all
reliable-topic:
- name: "*"
actions:
- all
management:
- principal: "mcadmin"
job:
- principal: "*"
actions:
- all
connector:
- name: "*"
actions:
- all
sql:
- name: "*"
actions:
- all
user-code-namespace:
- name: "*"
actions:
- all
vector-collection:
- name: "*"
actions:
- all
client-block-unmapped-actions: true
member-attributes:
attribute.string:
value: hazelcast
crdt-replication:
replication-period-millis: 1000
max-concurrent-replication-targets: 1
pn-counter:
pn-counter-1:
replica-count: 100
split-brain-protection-ref: splitBrainProtectionRuleWithThreeMembers
statistics-enabled: false
split-brain-protection:
splitBrainProtectionRuleWithThreeMembers:
enabled: true
minimum-cluster-size: 3
protect-on: READ_WRITE
member-count-split-brain-protection:
enabled: true
protect-on: READ_WRITE
minimum-cluster-size: 3
member-count-split-brain-protection: {}
probabilistic-split-brain-protection:
enabled: true
minimum-cluster-size: 3
protect-on: READ_WRITE
probabilistic-split-brain-protection:
acceptable-heartbeat-pause-millis: 100
max-sample-size: 20
suspicion-threshold: 10
recently-active-split-brain-protection:
enabled: true
minimum-cluster-size: 4
protect-on: READ_WRITE
recently-active-split-brain-protection:
heartbeat-tolerance-millis: 60000
persistence:
enabled: false
backup-dir: backup-dir
base-dir: base-dir
cluster-data-recovery-policy: FULL_RECOVERY_ONLY
data-load-timeout-seconds: 42
parallelism: 3
validation-timeout-seconds: 10
rebalance-delay-seconds: 240
dynamic-configuration:
persistence-enabled: true
backup-dir: /mnt/backup-dir
backup-count: 7
local-device:
default-tiered-store-device: