第8章 Run a Red Hat JBoss Data Grid as a Node without Endpoints
8.1. Run a Red Hat JBoss Data Grid as a Node without Endpoints リンクのコピーリンクがクリップボードにコピーされました!
Services send messages using channels to communicate with each other. An endpoint is a communications point for these services and is used to send and receive the messages sent through the channels. As a result, a node with no endpoints can communicate with other nodes in the same cluster, but not with clients.
8.2. Benefits of a Node Without Endpoints リンクのコピーリンクがクリップボードにコピーされました!
The primary benefit for creating a node without endpoints in Red Hat JBoss Data Grid involves data replication.
A node without any endpoints cannot be accessed by the client directly. As a result, they are primarily used to replicate data from other nodes that can communicate with clients. The result is a node with a backup copy of the data that cannot be accessed by the client, which protects it from failure via an error sent by the client.
8.3. Sample Configuration for a Node without Endpoints リンクのコピーリンクがクリップボードにコピーされました!
Red Hat JBoss Data Grid provides a sample configuration to configure a node without an endpoint:
Find the JBoss Data Grid Sample Configuration for a Node Without Endpoints
Extract the JBoss Data Grid ZIP
Extract the ZIP file for JBoss Data Grid Remote Client-Server mode. This is named jboss-datagrid-server-${version} . Add the relevant version to the file name.
Navigate to the Appropriate Folder
In the extracted folder, navigate to the $JDG_HOME/docs/examples/config folder.
Find the Configuration File Sample
View the clustered-storage-only.xml file, which contains the configuration for a node with no endpoints.
8.4. Configure a Node with No Endpoints リンクのコピーリンクがクリップボードにコピーされました!
A standard configuration, such as a standalone high availability configuration, can be changed into a configuration for a node with no endpoints using the following steps:
-
Remove the
datagridsubsystem. -
Remove the
modclustersubsystem. -
Remove the
datasourcedefinition. -
Remove
socket-bindingsformod_cluster, Hot Rod and memcached .
Removing the listed items ensure that all endpoints are removed from the configuration and that clustering is not possible. The resulting configuration is a node with no endpoints.