GithubHelp home page GithubHelp logo

jkaurredhat / clusterdemo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yongyang/clusterdemo

0.0 3.0 0.0 312 KB

JBossas 7 Graphic Cluster Demo based on HTML5

Java 98.98% CSS 0.19% HTML 0.83%

clusterdemo's Introduction

JBoss AS7/EAP6 Cluster Visualizer

Cluster-visualizer is a view based on HTML5 to monitor JBoss AS7/EAP6 clsuter status over management api.

How to install:

  1. Clone clusterdemo project git clone https://github.com/yongyang/clusterdemo.git (Now assume the project home directory is %CLUSTER_HOME%) NOTE: make sure git is installed on your system.

  2. Build cd %CLUSTER_HOME% mvn -Dmaven.test.skip=true clean package If everything is OK, the Web archive file clusterdemo.war now is on the target directory. NOTE: make sure you are in directory %CLUSTER_HOME%, and maven 3 is installed on your system

  3. Install JBoss AS7/EAP6 Download AS7 from http://www.jboss.org/jbossas/downloads, then unzip the zip file to %JBOSS_HOME%

  4. Deploy WAR file to AS7/EAP6 cp %CLUSTER_HOME/target/clusterdemo.war %JBOSS_HOME%/standalone/deployments/

  5. Add admin user to ManagementRealm, the user name is "admin", password is "123456" cd %JBOSS_HOME%/bin ./add-user.sh Then, follow the prompt message to add user admin/123456 to ManagementRealm NOTE: you can use different user name and password, however the default user name and password in web.xml need to be updated too.

  6. Run JBoss AS7/EAP6 instance in standalone mode and with standalone-ha.xml configuration ./standalone.sh -c standalone-ha.xml -b %IP_ADDRESS% -u 230.0.0.4 -Djboss.server.base.dir=../standalone -Djboss.node.name=node1 -Djboss.socket.binding.port-offset=0 NOTE: use real ip address to replace %IP_ADDRESS%, and make sure java6 is installed on your system and with %JAVA_HOME% set

  7. Run more JBoss AS7/EAP6 instance Re-do 3-6 steps to run more JBoss AS7/EAP6 instances in difference machine. if you want to run more JBoss AS7/EAP6 instances in same machine, follow below steps: a. Create another standalone directory cp -r %JBOSS_HOME%/standalone %JBOSS_HOME%/standalone2 b. Deploy WAR file to standalone2 cp %CLUSTER_HOME/target/clusterdemo.war %JBOSS_HOME%/standalone2/deployments/ c. Start with different jboss.server.base.dir, jboss.node.name and jboss.socket.binding.port-offset ./standalone.sh -c standalone-ha.xml -b %IP_ADDRESS% -u 230.0.0.4 -Djboss.server.base.dir=../standalone2 -Djboss.node.name=node2 -Djboss.socket.binding.port-offset=100

  8. Now visit the clusterdemo web application by your favorite Browser, Firefox, Chrome, Safari are preferred. NOTE: URL is http://%IP_ADDRESS%:8080/clusterdemo

HAVE FUN!

clusterdemo's People

Contributors

yongyang avatar jkaurredhat avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.