Chapter 16. Management Center

Table of Contents

16.1. Introduction
16.1.1. Installation
16.1.2. User Administration
16.1.3. Tool Overview
16.2. Maps
16.2.1. Monitoring Maps
16.2.2. Map Browser
16.2.3. Map Configuration
16.3. Queues
16.4. Topics
16.5. Members
16.5.1. Monitoring
16.5.2. Operations
16.6. System Logs
16.7. Scripting
16.8. Time Travel
16.9. Console

16.1. Introduction

Hazelcast Management Center enables you to monitor and manage your servers running hazelcast. With Management Center, in addition to monitoring overall state of your clusters, you can also analyze and browse your data structures in details. You can also update map configurations and take thread dump from nodes. With its scripting module, you can run scritps (JavaScript, Groovy etc.) on your servers. Version 2.0 is a web based tool so you can deploy it into your internal server and serve your users.

16.1.1. Installation

It is important to understand how it actually works. Basically you will deploy mancenter.war application into your Java web server and then tell Hazelcast nodes to talk to that web application. That means, your Hazelcast nodes should know the URL of mancenter application before they start.

Here are the steps:

  • Download the latest Hazelcast zip from hazelcast.com

  • Zip contains mancenter.war file. Deploy it to your web server (Tomcat, Jetty etc.) Let's say it is running athttp://localhost:8080/mancenter.

  • Start your web server and make sure http://localhost:8080/mancenter is up.

  • Configure your Hazelcast nodes by adding the URL of your web app to your hazelcast.xml. Hazelcast nodes will send their states to this URL.

    <management-center enabled="true">http://localhost:8080/mancenter</management-center>

  • Start your hazelcast cluster.

  • Browse to http://localhost:8080/mancenter and login. Initial login username/passwords is admin/admin

Management Center creates a directory with name "mancenter" under your "user/home" directory to save data files. You can change the data directory setting "hazelcast.mancenter.home" system property.

16.1.2. User Administration

Default credentials are for the admin user. In the Administration tab, Admin can add/remove/update users and control user read/write permissions.

16.1.3. Tool Overview

The starter page of the tool isCluster Home. Here you can see cluster's main properties such as uptime, memory. Also with pie chart, you can see the distribution of partitions over cluster members. You can come back to this page, by clicking the Home icon on the top-right toolbar. On the left panel you see the Map/Queue/Topic instances in the cluster. At the bottom-left corner, members of the cluster are listed. On top menu bar, you can change the current tab toScripting, Docs, userAdministration. Note that Administration tab is viewable only for admin users. Also Scripting page is disabled for users with read-only credential.