Summary: Reviews the different deployment option of the web management console
OverviewThe Management Console is a web application which was designed to enable users to quickly understand the state of a running data grid cluster and monitor the running components, i.e. physical hosts, JVMs and deployed processing units. In terms of functionality, it does not replace the existing Java-based GUI (the GigaSpaces Management Center), but rather augments it and provides a lightweight alternative for monitoring a running cluster without the need to install the GigaSpaces XAP runtime and run the standalone Java-based user interface. The management console web application is located under GigaSpaces root/tools/gs-webui. This directory contains the web application itself (in the form of a standard JEE .war file), and a launcher library and shell scripts used to start in standalone mode (see below). Starting the Management Console Web Application in Standalone ModeThis is the simplest way to run the management console web application. Simply click the gs-webui.sh(bat) script to start a Jetty web container with the management console web application running within it. Once started, there's no need to deploy or perform any additional steps. The web container in the standalone mode listens by default on port 8099, so in order to view the management console application you will need to point your browser to http://<standalone server host>:8099, where <standalone server host> is the host on which you launched the gs-webui script. Note that in this mode, the default context path for the management console web application is the root context path ("/"). To override the default port, you can either use the com.gs.webui.port system property, or specify -port <listen port> as an argument to the gs-webui script. Here is an example on how it's done (starting to listen on port 80):
Linux
#Specify port via a command line argument ./gs-webui.sh -port 80 #Specify port with a system property export WEBUI_JAVA_OPTIONS=-Dcom.gs.webui.port=80 ./gs-webui.sh Windows #Specify port via a command line argument gs-webui.bat -port 80 #Specify port with a system property set WEBUI_JAVA_OPTIONS=-Dcom.gs.webui.port=80 gs-webui.bat Note that you can also use the WEBUI_JAVA_OPTIONS environment variable to set any JVM parameter, such as heap size (defaults to -Xmx512m) and other JVM settings. Deploying the Management Console Web Application to the GigaSpaces Runtime EnvironmentTo deploy the management console web application to the GigaSpaces Runtime Environment, you should simply point your deployment tool of choice (CLI, Admin API or the standalone Java-based UI) to the <GigaSpaces root>/tools/gs-webui/gs-webui.war file and deploy it. Note that in this case the management console application actually monitors the runtime environment on which it runs. Here's an example of how this can be done using the GS CLI: <GigaSpaces root>/bin/gs.sh(bat} deploy -properties embed://web.port=80;web.context=/ \
<GigaSpaces root>/tools/gs-webui/gs-webui.war
The above command will deploy the management console web application to the GigaSpaces runtime environment, listening on port 80 with the root context path. For more details on GigaSpaces XAP web application support, please refer to this page. Deploying the Management Console Web Application to a 3rd Party JEE Servlet ContainerIt is also possible to deploy the web application to a 3rd party servlet container (e.g. Apache Tomcat). Please consult your web container documentation for deployment instructions.
Logging into the Web DashboardAfter you've started the dashboard web application, point your browser to the proper location (For example, if you stated it using the standalone web container, the default URL is http://<standalone server host>:8099.
Runtime ConsiderationsDeployment Location of the Dashboard Web ApplicationSince the dashboard web application communicates with the runtime components of the GigaSpaces cluster, and receives notification from the GigaSpaces lookup service, it is highly recommended to run the dashboard web application in the same network segment of the other cluster components. Note that this does not affect the dashboard web browser client, which communicates with the dashboard web application using standard http and can be located anywhere, provided that it has access to the dashboard web application. Running Via A Reverse ProxyVersion 9.5.1 onwards It is possible to set up a reverse proxy for the management console. This can be desirable e.g. when access to the Management Console is done via a gateway. Reverse proxy setups are currently available and tested only on the Apache web server. Configuring The ProxyEnable the relevant modules, by uncommenting (or adding) the following lines inside httpd.conf: LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_http_module modules/mod_proxy_http.so Add your server's name, and define a virtual host for the configuration, where gs.webui.com represents your server's DNS: NameVirtualHost *:80 <VirtualHost *:80> ServerName gs.webui.com </VirtualHost> Create mappings to channel proxy paths (webui-endpoint being the proxied path obsecuring the address of the Management Console): <VirtualHost *:80> ... ProxyPass /webui-endpoint/ http://127.0.0.1:8099/ ProxyPassReverse /webui-endpoint/ http://127.0.0.1:8099/ ProxyPreserveHost on </VirtualHost> Set a redirection rule for serving the login page: <VirtualHost *:80> ... RedirectMatch /Gs_webui\.html /webui-endpoint/Gs_webui.html </VirtualHost> Debugging Your ProxyYou can dump logging information to custom files on the Apache server by adding the following rules: <VirtualHost *:80> ... ErrorLog "logs/webui-error_log" CustomLog "logs/webui-access_log" common </VirtualHost> For more information on apache's reverse proxy configuration, see the corresponding entry on the Apache Tutor. |
![]() |
GigaSpaces.com - Legal Notice - 3rd Party Licenses - Site Map - API Docs - Forum - Downloads - Blog - White Papers - Contact Tech Writing - Gen. by Atlassian Confluence |