Terracotta Ehcache 10.2 | Terracotta Management and Monitoring | Using the Home Page
 
Using the Home Page
The TMC home page is where you:
*create/delete persistent connections to your cluster(s)
*optionally modify your connection properties
*view
*the status of the servers that make up your cluster
*the various categories of clients making use of your cluster
*the server entities that are contained by the cluster and to which clients connect
*drill-down/jump to various presentations such as statistics and monitoring relating to those servers, clients, and entities
*take actions, such a clearing the contents of a cache
For information about starting and stopping Terracotta servers, refer to the section Starting and Stopping the Terracotta Server in the Terracotta Server Administration Guide.
For information about creating Terracotta clusters, refer to the section Cluster Tool in the Terracotta Server Administration Guide.
Connections and Global Settings
To create a persistent connection to a particular operational cluster:
1. Click Create New Connection
2. In the Connection URL input area enter a URL addressing at least a single, running member of the fully configured Terracotta Server Array (TSA):
TMC Connection URL
Terracotta Server URL

terracotta://<server-host>:<listen-port>[,<server-host>:<listen-port>]*
If the TMS is able to connect to the specified server, it will request the complete TSA topology, persisting the addresses of each server in its database. This means that, in the future, the TMS will be able to connect to the TSA, even if the originally specified server should be unreachable, as long as at least one member of the TSA is running.
If you attempt to connect to a running server that is not part of a configured cluster, the TMS will return an error indicating that no license was discovered.
It is a best-practice to specify the addresses of all the members of a particular TSA stripe in the connection URL to support high-availability. Simply comma-separate each server's address (host:port).
The TMS will attempt to connect to each server, in turn, until a successful connection is established.
3. Enter the name you would like associated with this connection, for example "MyCluster", then click Next to create the connection.
TMC Connection Name
This connection name will be used to disambiguate multiple connections in the UI and when communicating with the TMS REST interface.
4. Upon completion of creating the new connection, a new connection region is shown on the Home Page, displaying the current state of your cluster.
The connection to MyCluster in the example above shows a TSA comprised of 2 stripes, each containing a pair of Active-Passive servers, 4 currently connected clients, a single Ehcache server entity and a single TCStore server entity. Further detail can be exposed by drilling down into the display hierarchy.
Note: For Terracotta Ehcache product users, the TCStore dropdown is deactivated.
Modifying a Connection's Properties
If you wish to modify your new connection’s properties, use the Edit this cluster (TMC Edit Cluster) icon on the connection’s header area.
TMC Cluster Properties Editor
Connection Timeout
Timeout value, in seconds, when connecting to a cluster the first time or when reconnecting. Default is 20 seconds.
Read Timeout
Timeout value, in seconds, for all cluster communications. Default is 10 seconds.
Collector Interval
Collector interval for statistics. Default is 10 seconds.
Deleting a Connection
To delete an existing connection use the Delete this cluster (TMC Delete Cluster) icon on the connection header area.
TMC Connection Area Header
Using the Configured Connections
The TMC home page shows each of your configured connections in its own collapsible region of the display that presents the totality of the cluster, allowing you to drill-down to different levels of hierarchy then jump to various detail views, such as for statistics or an entity's server-side resource usage.
Each configured connection region is comprised of several high-level facets which will now be described.
Buttons in the connection region header
The header of the connection region for a selected cluster contains the following selectable buttons:
*Ehcache
*TCStore
*Monitoring
*Export Diagnostic Data
If you select the Ehcache, TCStore or Monitoring button, the Detail page will be displayed, with the appropriate tab (Ehcache, TCStore or Monitoring) already selected.
Each of these three buttons contains a dropdown menu. If you select an item from any of these dropdown menus, the Detail page will be displayed and the details for the selected dropdown entry will be in focus.
For details of the Ehcache, TCStore and Monitoring tabs of the Detail page, see the sections Using the Ehcache Tab, Using the TCStore Tab and Using the Monitoring Tab.
For information about the button Export Diagnostic Data, see the following topic.
Export Diagnostic Data (Cluster level)
The Export Diagnostic Data button at the cluster level provides diagnostic information for every server in the cluster.
The cluster level Export Diagnostic Data button exports the following diagnostic data as a zip file.
*Event Log - a csv file named EventLog.csv, containing cluster wide events. This can also be exported from the monitoring event log panel.
*For each server it also downloads 6 diagnostic data files, which are explained in the next section, View Diagnostic Details (Server level).
The zip file is named using the format: diagnostic-connectionName-dateTime.zip
*e.g. diagnostic-myClusterConnection-20170705221353.zip
and the layout of the zip file is:
*one folder for each stripe, which contains one folder for each server within the stripe
*each server folder contains the 6 files referenced in the next section, View Diagnostic Details (Server level)
*in the root of the zip file there is the cluster wide event log, EventLog.csv
Server Array
The Terracotta Server Array (TSA) is a collection of groups of servers, known as stripes. Servers within a stripe work together to provide High-Availability. If the Active server should fail, any one of the remaining Passive servers takes over as active. The Active server serves to (1) handle requests from clients to entities it contains and (2) to relay those client requests to each of the Passive servers. Servers in different stripes do not interact.
The TMC presents the current state of the server array, indicating the roles of each server. The following shows a server array consisting of two stripes, each containing two members, one active and one passive.
TMC Terracotta Server Array
The possible server states are:
Server state
Icon
Description
STARTING
Server is beginning to run
SYNCHRONIZING
Server is loading data from the active server
PASSIVE
This server has finished synchronizing with the active server and is currently running as a passive server. It is ready to take over as the active server when needed.
ACTIVE
This server is the active server and handles the client requests
ACTIVE_RECONNECTING
Newly started active server that is waiting for existing clients to reconnect
UNREACHABLE
Server is not running or is otherwise inaccessible
UNKNOWN
Unable to determine server status
Diagnostic information for the members of your TSA can be downloaded as an archive file or viewed directly.
View Diagnostic Details (Server level)
The View Diagnostic Details dropdown at the server level lets you view directly the diagnostic information for that particular server. There is one diagnostic data dropdown per server and it is always positioned to the immediate right of the server name.
serverDiagnosticDataDropdownArrow
Note: Please don't confuse the stripe count with the stripe name. In this example there are two stripes, indicated by stripes(2), and they are named stripe[0] and stripe[1].
Export Diagnostic Data (Server level)
The Export Diagnostic Data button at the server level lets you download diagnostic information for that particular server in an archive file, similar in format to that provided at the cluster level.
The dropdown provides access to the 6 diagnostic data files below. The file contents can be viewed/exported individually by selecting that option from the dropdown or by selecting the top level Export Diagnostic Data option which exports a zip file containing all of them.
1. Environment - shows a list of all the environment variables.
2. TC Properties - provides a list of all the TC config properties.
3. Process Args - displays all the command line arguments submitted for the process.
4. TC Config - shows the Terracotta configuration file.
5. Cluster State - displays information on the current cluster state.
6. Thread dump - exports the thread dump as a txt file.
Tip: What is a thread dump? A Java thread dump is a way of finding out what every thread in the JVM is doing at a particular point in time. This is especially useful if your Java application sometimes seems to hang when running under load, as an analysis of the dump will show where the threads are stuck.
The zip file is named using the format: diagnostic-connectionName-stripeName-serverName-dateTime.zip
*e.g. diagnostic-myClusterConnection-stripe[0]-testServer0-20170705221356.zip
and the layout of the zip file is one folder, named after the server name, containing the 6 data files above.
Connected Clients
In the Terracotta Platform, a client is an application end-point. In your application, the clustered CacheManager that is configured and initialized is a Terracotta client. Each client maintains a connection to the active server in each stripe. In general, anything that connects to a server is considered a client.
For more information, see section Terracotta Server Administration Guide > Clients in a Cluster.
Each client has a Client Identifer that serves to uniquely identify that client. The form of the identifier is:
<pid>@<ip-addr>:<client-type>:<server-entity-name>:<uuid>
where:
<pid>
the process identifier of the Java Virtual Machine hosting this client
<ip-addr>
the IP address of the machine hosting this JVM
<client-type>
[Ehcache | Store | Unknown]
<server-entity-name>
the name of the server-side entity the client is connected to
<uuid>
a unique identifier that serves to disambiguate clients in the same JVM, accessing the same server entity
*Ehcache Clients
The following shows two caching clients.
TMC Caching Clients
The input field located next to Connected Clients serves to show only those clients whose identifier contains the entered value. In the example above, entering 81390 (the process identifier of the 2nd client) would filter out the first client.
Filtering Rules
*accepts a space-separated list of terms to match (prefix with ! to negate)
*terms can apply to any components of the Client Identifier or any supplied tags
*negated terms must not match any of the above
*clear the input field content or click the toggle button (TMC Stats Selector) to show all clients
Under each identifier is an optional set of user-defined tags, specified in the CacheManager's configuration.
Expanding a caching client exposes the CacheManager’s alias, which is defined in the configuration. The dropdown lets you jump to various detail views, pre-selecting this client and CacheManager in those views. View the CacheManager’s configuration by selecting the configuration (TMC Cache Config) icon. The cache entries can be cleared by selecting the clear cache (TMC Cache Clear) icon.
TMC Caching Client Expanded
Expanding the cache shows important configuration elements related to that cache.
TMC Caching Client Cache
*TCStore Clients
Within the connected clients section there is also a subsection for all the dataset clients.
Expanding the TCStore Clients section provides a list of all the connected clients, ordered by client identifiers.
Further expanding a client identifier shows all datasets associated with that particular client and for each dataset there is a dropdown to navigate quickly to its overview or chart statistics.
Lastly when expanding each dataset there is also a list of all its dataset instances
*Other Clients This section contains clients that are unknown to the TMS at this time; in other words, anything that is not a caching or store client.
Ehcache Entities
The Terracotta Platform consists of client-side programmatic (API) artifacts and server-side entities that work together to provide highly-available, performant, distributed data access. In your application you configure a CacheManager, both on the client- and server-side. The client-side configuration relates to such things as the maximum OnHeap size-in-bytes for a particular cache. The server-side configuration relates to the remote storage tier that is used to store your cache entries.
Each of your Ehcache Clients communicates with its remote storage tier when executing normal cache operations, such as putting an entry into the cache.
Ehcache clients configured to use the same remote storage tier are effectively sharing access to the same cache data.
TCStore Entities
A TCStore client is essentially a connection to a clustered or embedded Dataset.
A single client instance can fetch an arbitrary number of handles to the underlying Dataset, referred to as a Dataset instance. Operations statistics are maintained on a per-instance basis.
Other Entities
Server entities created by 3rd parties, and therefore unknown to the TMC, appear here.
Currently there is not much that can be done with these entities, but a future release may allow for the declarative exposure of management and monitoring features from entities.

Copyright © 2010-2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release