Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
24.7. Clustered Instances
24.7.1. Launch Clustered JBoss EAP 6 AMIs Link kopierenLink in die Zwischenablage kopiert!
This topic covers the steps required to launch clustered JBoss EAP 6 AMIs.
Prerequisites
Warning
JBOSS_CLUSTER_ID variable for information on how to make such a configuration work reliably: Section 24.10.1, “Permanent Configuration Parameters”.
Important
Warning
Procedure 24.12. Launch Clustered JBoss EAP 6 AMIs
- Select an AMI.
- Define the desired number of instances (the cluster size).
- Select the VPC and instance type.
- Click on Security Group.
- Ensure that all traffic from the JBoss EAP 6 cluster subnet is allowed.
- Define other restrictions as desired.
- Add the following into the User Data field:
Example 24.7. Example User Data Field
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
The clustered JBoss EAP 6 AMIs have been configured and launched successfully.
24.7.2. Test the Clustered JBoss EAP 6 Instance Link kopierenLink in die Zwischenablage kopiert!
This topic covers the steps to confirm that the clustered JBoss EAP 6 instances are running correctly.
Procedure 24.13. Testing the Clustered Instance
- Navigate to http://ELASTIC_IP_OF_APACHE_HTTPD in a browser to confirm the web server is running successfully.
Test the Clustered Nodes
- Navigate to http://ELASTIC_IP_OF_APACHE_HTTPD/cluster-demo/put.jsp in a browser.
- Verify that one of the cluster nodes logs the following message:
Putting date now
Putting date nowCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Stop the cluster node that logged the message in the previous step.
- Navigate to http://ELASTIC_IP_OF_APACHE_HTTPD/cluster-demo/get.jsp in a browser.
- Verify that the time shown is the same as the time that was PUT using
put.jspin Step 2-a. - Verify that one of the running cluster nodes logs the following message:
Getting date now
Getting date nowCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Restart the stopped clustered node.
- Connect to the Apache HTTP server instance:
ssh -L7654:localhost:7654 <ELASTIC_IP_OF_APACHE_HTTPD>
ssh -L7654:localhost:7654 <ELASTIC_IP_OF_APACHE_HTTPD>Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Navigate to http://localhost:7654/mod_cluster-manager to confirm all instances are running correctly.
The clustered JBoss EAP 6 instances have been tested, and confirmed to be working correctly.