Skip to content

Commit c3fe24a

Browse files
authored
Merge pull request quarkusio#46995 from karesti/correct-semicolon
Corrects Infinispan documentation
2 parents 9593681 + 932f07a commit c3fe24a

File tree

2 files changed

+8
-41
lines changed

2 files changed

+8
-41
lines changed

docs/src/main/asciidoc/infinispan-client-reference.adoc

Lines changed: 6 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ quarkus.infinispan-client.hosts=localhost:11222 <1>
9696
quarkus.infinispan-client.username=admin <2>
9797
quarkus.infinispan-client.password=password <3>
9898
----
99-
<1> Sets Infinispan Server address list, separated with commas
99+
<1> Sets Infinispan Server address list, separated with semicolons
100100
<2> Sets the authentication username
101101
<3> Sets the authentication password
102102

@@ -112,25 +112,6 @@ quarkus.infinispan-client.uri=hotrod://admin:password@localhost:11222 <1>
112112
Use Infinispan Dev Services to run a server and connect without configuration.
113113
====
114114

115-
=== Client intelligence
116-
Infinispan client uses intelligence mechanisms to efficiently send requests to Infinispan Server clusters.
117-
By default, the *HASH_DISTRIBUTION_AWARE* intelligence mechanism is enabled.
118-
However, locally with Docker for Mac, you might experience connectivity issues.
119-
In this case, configure the client intelligence to *BASIC*.
120-
121-
Learn more in the https://infinispan.org/docs/stable/titles/hotrod_java/hotrod_java.html#hotrod-client-intelligence_hotrod-java-client[Infinispan documentation].
122-
123-
[source,properties]
124-
----
125-
quarkus.infinispan-client.client-intelligence=BASIC <1>
126-
----
127-
<1> Docker for Mac workaround.
128-
129-
[IMPORTANT]
130-
====
131-
Don't use *BASIC* in production environments by default, performance might be impacted.
132-
====
133-
134115
=== Configuring backup clusters in Cross-Site Replication
135116
In High Availability production deployments, it is common to have multiple Infinispan Clusters that are
136117
distributed across various Data Centers worldwide. Infinispan offers the capability to connect these clusters and
@@ -140,17 +121,15 @@ clusters.
140121

141122
[source,properties]
142123
----
143-
quarkus.infinispan-client.hosts=host1:11222,host2:3122 <1>
124+
quarkus.infinispan-client.hosts=host1:11222;host2:3122 <1>
144125
quarkus.infinispan-client.username=admin
145126
quarkus.infinispan-client.password=password
146-
quarkus.infinispan-client.backup-cluster.nyc-site.hosts=nyc1:11222,nyc2:21222,nyc3:31222 <2>
147-
quarkus.infinispan-client.backup-cluster.nyc-site.client-intelligence=BASIC <3>
148-
quarkus.infinispan-client.backup-cluster.lon-site.hosts=lon1:11222,lon2:21222,lon3:31222 <4>
127+
quarkus.infinispan-client.backup-cluster.nyc-site.hosts=nyc1:11222;nyc2:21222;nyc3:31222 <2>
128+
quarkus.infinispan-client.backup-cluster.lon-site.hosts=lon1:11222;lon2:21222;lon3:31222 <3>
149129
----
150-
<1> Sets Infinispan Server address list, separated with commas. This is the default cluster.
130+
<1> Sets Infinispan Server address list, separated with semicolons. This is the default cluster.
151131
<2> Configures a backup site 'nyc-site' with the provided address list
152-
<3> Configures a backup site 'nyc-site' with the provided client intelligence
153-
<4> Configures an additional backup site 'lon-site' with the provided address list
132+
<3> Configures an additional backup site 'lon-site' with the provided address list
154133

155134
Based on the provided configuration, in the event of the default cluster becoming unavailable, the client will
156135
seamlessly transition to one of the accessible backup clusters.

docs/src/main/asciidoc/infinispan-client.adoc

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -292,25 +292,13 @@ Then, open the `src/main/resources/application.properties` file and add:
292292

293293
[source, properties]
294294
----
295-
%prod.quarkus.infinispan-client.hosts=localhost:11222 # <1>
295+
%prod.quarkus.infinispan-client.hosts=localhost:11222 <1>
296296
%prod.quarkus.infinispan-client.username=admin <2>
297297
%prod.quarkus.infinispan-client.password=password <3>
298-
299-
## Docker 4 Mac workaround. Uncomment only if you are using Docker for Mac.
300-
## Read more about it in the Infinispan Reference Guide
301-
# %prod.quarkus.infinispan-client.client-intelligence=BASIC <4>
302298
----
303-
<1> Sets Infinispan Server address list, separated with commas
299+
<1> Sets Infinispan Server address list, separated with semicolons
304300
<2> Sets the authentication username
305301
<3> Sets the authentication password
306-
<4> Sets the client intelligence. Use BASIC as a workaround if using Docker for Mac.
307-
308-
[IMPORTANT]
309-
====
310-
Client intelligence changes impact your performance in production.
311-
Don't change the client intelligence unless strictly necessary for your case.
312-
Read more in the xref:infinispan-client-reference.adoc[Infinispan Client extension reference guide].
313-
====
314302

315303
== Packaging and running in JVM mode
316304

0 commit comments

Comments
 (0)