[id='configuring-hotrod-clusters_{context}']
= Defining {brandname} Clusters in Client Configuration
Provide the locations of {brandname} clusters in Hot Rod client configuration.

.Procedure

* Provide at least one {brandname} cluster name along with a host name and port for at least one node with the `ClusterConfigurationBuilder` class.
+
If you want to define a cluster as default, so that clients always attempt to connect to it first, then define a server list with the `addServers("<host_name>:<port>; <host_name>:<port>")` method.

.Multiple cluster connections
[source,java,options="nowrap",subs=attributes+,role="primary"]
----
include::code_examples/HotRodAddCluster.java[]
----

.Default server list with a failover cluster
[source,java,options="nowrap",subs=attributes+,role="secondary"]
----
include::code_examples/HotRodDefaultCluster.java[]
----
