Skip to content

Commit

Permalink
DOCS-809: Updates example configuration files for TPC comments
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverhowell committed Feb 29, 2024
1 parent cd38424 commit 000adfc
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 21 deletions.
11 changes: 3 additions & 8 deletions hazelcast/src/main/resources/hazelcast-client-full-example.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1025,15 +1025,10 @@
<!--
===== HAZELCAST TPC CONFIGURATION =====
Configures the client for TPC, which is the next generation Hazelcast that
uses thread-per-core model. TPC-aware clients will maintain connections to
all cores of all cluster members. The client will route partition-specific
invocations to the correct core of the correct member in the best effort
basis. Configuration element's name is <tpc>.
It has the following attributes:
Configures the client for thread-per-core (TPC) model using the <tpc> configuration element.
TPC will only be used if both client and server have <tpc> enabled.
- enabled:
Enables or disables the TPC-aware mode.
Enables or disables TPC-aware mode.
-->
<tpc enabled="true"/>
</hazelcast-client>
11 changes: 3 additions & 8 deletions hazelcast/src/main/resources/hazelcast-client-full-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -974,14 +974,9 @@ hazelcast-client:
# Sets the resubmission mode for failing queries. By default, it is set to NEVER.
sql:
resubmission-mode: RETRY_SELECTS
# Configures the client for TPC, which is the next generation Hazelcast that
# uses thread-per-core model. TPC-aware clients will maintain connections to
# all cores of all cluster members. The client will route partition-specific
# invocations to the correct core of the correct member in the best effort
# basis. Configuration element's name is "tpc".
#
# It has the following sub-elements:
# Configures the client for thread-per-core (TPC) model using the <tpc> configuration
# element. TPC will only be used if both client and server have <tpc> enabled.
# * "enabled":
# Enables or disables the TPC-aware mode.
# Enables or disables TPC-aware mode.
tpc:
enabled: true
7 changes: 4 additions & 3 deletions hazelcast/src/main/resources/hazelcast-full-example.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4112,11 +4112,12 @@
<!--
===== HAZELCAST TPC CONFIGURATION =====
Hazelcast TPC is the next generation of Hazelcast built with thread per core architecture.
It's still being developed and everything is subject to change. TPC is disabled by default.
Configures the member for thread-per-core (TPC) model using the <tpc> configuration element.
TPC will only be used if both client and server have <tpc> enabled.
-->
<!-- Enables or disables TPC-aware mode. -->
<tpc enabled="true">
<!-- Configures the number of eventloops. It's equal to available processor count by default. -->
<!-- Configures the number of eventloops. This deaults to available processor count. -->
<eventloop-count>12</eventloop-count>
</tpc>

Expand Down
5 changes: 3 additions & 2 deletions hazelcast/src/main/resources/hazelcast-full-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3998,9 +3998,10 @@ hazelcast:

# ===== HAZELCAST TPC CONFIGURATION =====
#
# Hazelcast TPC is the next generation of Hazelcast built with thread per core architecture.
# It's still being developed and everything is subject to change. TPC is disabled by default.
# Configures the member for thread-per-core (TPC) model using the <tpc> configuration element.
# TPC will only be used if both client and server have <tpc> enabled.
tpc:
# Enables or disables TPC-aware mode.
enabled: true
# Configures the number of eventloops. It's equal to available processor count by default.
eventloop-count: 12
Expand Down

0 comments on commit 000adfc

Please sign in to comment.