Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Frontend: AngularJS 1.5.x / Bootstrap 3.x / JADE / SASS / Webpack
  • Backend: NodeJS 46.x / fire-up

Web Agent

Ignite Web Agent is a java standalone application that allow to connect Ignite Grid to Ignite Web Console.
Ignite Web Agent communicates with grid nodes via REST interface and connects to Ignite Web Console via web-socket.

Two main functions of Ignite Web Agent:
1. Proxy between Ignite Web Console and Ignite Grid to execute SQL statements and collect metrics for monitoring.
You may need to specify URI for connect to Ignite REST server via "-n" option.

2. Proxy between Ignite Web Console and user RDBMS to collect database metadata for later CacheTypeMetadata configuration.
You may need to copy JDBC driver into "./jdbc-drivers" subfolder or specify path via "-d" option.

Usage example:
ignite-web-agent.sh

Configuration file:
Should be a file with simple line-oriented format as described here: http://docs.oracle.com/javase/7/docs/api/java/util/Properties.html#load(java.io.Reader)

Available entries names:
tokens
server-uri
node-uri
driver-folder

Example configuration file:
tokens=1a2b3c4d5f,2j1s134d12
serverURI=https://console.example.com:3001

Security tokens:
1) By default security token of current user will be included into "default.properties" inside downloaded "ignite-web-agent-x.x.x.zip".
2) One can get/reset token in Web Console profile (https://<your_console_address>/settings/profile).
3) One may specify several comma separated tokens using configuration file or command line arguments of web agent.

Ignite Web agent requirements:

...

  1. Install locally MongoDB (version >=3.x) follow instructions from site http://docs.mongodb.org/manual/installation.
  2. Install locally NodeJS (version >=4.x) using installer from site https://nodejs.org for your OS.
  3. Change directory '$IGNITE_HOME/modules/web-console/src/main/js'.

  4. Update npm to 3.x:

    Code Block
    titleLinux
    npm install -g npm

     

    See: Windows npm upgrade instructions

    Code Block
    titleWindows
    npm install -g npm-windows-upgrade
    npm-windows-upgrade 
    Check npm version: "npm --version"Run "npm install --no-optional" in terminal in directory '$IGNITE_HOME/modules/web-console/backend for download dependencies for backend.
  5. Run "npm install --no-optional" in terminal in directory '$IGNITE_HOME/modules/web-console/frontend for download dependencies for frontend.
  6. Build ignite-web-agent module follow instructions from 'modules/web-agent/README.txt'.
  7. Copy ignite-web-agent-<version>.zip from target of ignite-web-agent module to 'modules/web-console/backend/agent_dists' folder.

...

  1. Configure MongoDB to run as service or in terminal change dir to $MONGO_INSTALL_DIR/server/3.0/bin
     and start MongoDB by executing "mongod".
  2. In new terminal change directory to '$IGNITE_HOME/modules/web-console/backend'.
    If needed run "npm install --no-optional" (if dependencies changed) and run "npm start" to start backend.

  3. In new terminal change directory to '$IGNITE_HOME/modules/web-console/frontend'
    and .
    If needed run "npm install --no-optional" (if dependencies changed) and start webpack in development mode "npm run dev".

  4. In browser open: http://localhost:9000

...