此内容没有您所选择的语言版本。
Chapter 35. Use Red Hat JBoss Data Grid with Google Compute Engine
35.1. The GOOGLE_PING Protocol 复制链接链接已复制到粘贴板!
GOOGLE_PING is a discovery protocol used by JGroups during cluster formation. It is ideal to use with Google Compute Engine (GCE) and uses Google Cloud Storage to store information about individual cluster members.
35.2. GOOGLE_PING Configuration 复制链接链接已复制到粘贴板!
35.2.1. GOOGLE_PING Configuration 复制链接链接已复制到粘贴板!
Red Hat JBoss Data Grid works with Google Compute Engine in the following way:
- In Library mode, use the JGroups' configuration file default-configs/default-jgroups-google.xml or use the GOOGLE_PING protocol in an existing configuration file.
- In Remote Client-Server mode, define the properties on the command line when you start the server to use the JGroups Google stack ( see example in Starting the Server in Google Compute Engine).
To configure the GOOGLE_PING protocol to work in Google Compute Engine in Library and Remote Client-Server mode:
- Use JGroups bucket. These buckets use Google Compute Engine credentials.
- Use the access key.
- Use the secret access key.
Only the TCP protocol is supported in Google Compute Engine since multicasts are not allowed.
35.2.2. Starting the Server in Google Compute Engine 复制链接链接已复制到粘贴板!
This configuration requires access to a bucket that can only be accessed with the appropriate Google Compute Engine credentials.
Ensure that the GOOGLE_PING configuration includes the following properties:
-
the
access_keyand thesecret_access_keyproperties for the Google Compute Engine user.
Start the Red Hat JBoss Data Grid Server with a Bucket
Run the following command from the top level of the server directory to start the Red Hat JBoss Data Grid server using a bucket:
-
Replace
{node_name}with the server’s desired node name. -
Replace
{port_offset}with the port offset. To use the default ports specify this as0. -
Replace
{google_bucket_name}with the appropriate bucket name. -
Replace
{access_key}with the user’s access key. -
Replace
{secret_access_key}with the user’s secret access key.
35.3. Utilizing a Static IP Address 复制链接链接已复制到粘贴板!
While each node in the cluster is able to discover other nodes in the cluster using the GOOGLE_PING protocol, all network traffic is over the internal private network. It is recommended to configure an external static IP address for a single node, so that a consistent address is available for configuring the cluster, such as through the Administration Console, across restarts. If no static address is configured each instance will contain a randomized IP address on its public network whenever it is started.
Full instructions for configuring an external static IP address may be found in Google’s Configuring an Instance’s IP Address documentation.