Chapter 17. Management Center

Table of Contents

17.1. Introduction
17.1.1. Installation
17.1.2. User Administration
17.1.3. Tool Overview
17.2. Maps
17.2.1. Monitoring Maps
17.2.2. Map Browser
17.2.3. Map Configuration
17.3. Queues
17.4. Topics
17.5. Members
17.5.1. Monitoring
17.5.2. Operations
17.6. System Logs
17.7. Scripting
17.8. Time Travel
17.9. Console

17.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.

17.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.

17.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.

17.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.