| About Terracotta Documentation This documentation is about Terracotta DSO, an advanced distributed-computing technology aimed at meeting special clustering requirements. Terracotta products without the overhead and complexity of DSO meet the needs of almost all use cases and clustering requirements. To learn how to migrate from Terracotta DSO to standard Terracotta products, see Migrating From Terracotta DSO. To find documentation on non-DSO (standard) Terracotta products, see the Terracotta Documentation. Terracotta release information, such as release notes and platform compatibility, is found in Product Information. |
|
Terracotta Operations CenterIntroductionThe Terracotta Operations Center delivers a full-featured monitoring and diagnostics tool for operators of an application clustered with Terracotta. The Operations Center is available with Enterprise versions of Terracotta.
The Operations Center is a GUI console that includes a JMX client. Using the console, you can:
These and other console features are described below.
Launching the Terracotta Operations CenterYou can launch the Terracotta Operations Center from a command line. Microsoft Windows[PROMPT] %TERRACOTTA_HOME%\bin\ops-center.bat UNIX/Linux[PROMPT] ${TERRACOTTA_HOME}/bin/ops-center.sh& The Console InterfaceWhen the console is not connected to a server, the selection buttons in the control panel on the left are inactive. The connection panel contains the last host and JMX port entered. The first time the console is started, default values (host=localhost, jmx-port=9520) are used.
Once the console is connected to a cluster, the selection buttons in the control panel become active. The console can connect to only one cluster at a time. The status bar at the bottom of the console window displays messages on the latest changes in the cluster, such as nodes joining or leaving. Context-Sensitive HelpContext-sensitive help is available wherever Context MenusSome console features have a context menu that is accessed by right-clicking the feature. For example, to open a text-management context menu in the Logging panel, right-click in the panel. Connecting and Disconnecting From a ClusterTo connect to an existing cluster, enter the hostname and JMX port number of a Terracotta server in the cluster, then click the Connect in the connection panel. To automatically connect to a cluster whenever the console starts or when at least one of the cluster's servers is running, enable Connect automatically in the cluster context menu. Automatic connections are attempted in the background and do not interfere with normal console operation. Connecting to a Secured ClusterA Terracotta cluster can be secured for JMX access, requiring authentication before access is granted. Connecting to a secured cluster prompts users to enter a username and password. For instructions on how to secure your Terracotta cluster for JMX, see the Configuration Guide and Reference. Disconnecting from a ClusterTo disconnect from a cluster, click Disconnect in the control panel. DashboardThe Dashboard provides live measurements of the most important metrics affecting the cluster. This panel is where you monitor the components and health of your cluster. To open the Dashboard, click Dashboard in the control panel. GraphsRuntime statistics graphs provide both live measurements and historic trends of resource usage and the work performed by the Terracotta cluster.
Specific runtime statistics are defined in the following sections. Host CPU UsageShows the CPU load as a percentage. If more than one CPU is being used, each CPU's load is shown as a separate graph line. Heap UsageShows the amount, in megabytes, of maximum available heap and heap being used. Write Transaction RateShows the number of completed Terracotta transactions. Terracotta transactions are sets of one or more clustered object changes, or writes, that must be applied atomically. Unacknowledged Client TransactionsEvery Terracotta transaction in a Terracotta cluster must be acknowledged by Terracotta clients with in-memory shared objects that are affected by that transaction. For each client, Terracotta server instances keep a count of transactions that have not been acknowledged by that client. The Unacknowledged Transaction Broadcasts statistic is a count of how many transactions the client has yet to acknowledge. The Unacknowledged Client Transactions bar graph shows the number of unacknowledged Terracotta transaction broadcasts for each client in the cluster. This graph is useful for quickly locating and investigating clients that maintain a large or growing number of unacknowledged Terracotta transaction broadcasts. In a healthy cluster, clients clear unacknowledged transactions as they process transactions. The bar representing each client's unacknowledged-transactions volume fluctuates as each client processes its acknowledgements. However, clients experiencing trouble may not be able to clear unacknowledged transactions, and the bars corresponding to those clients remain in place or even grow. Such clients could slow down an entire cluster and may need to be disconnected. Activity GaugesThe cluster activity gauges provide real-time readings of crucial cluster metrics.Each gauge has the following characteristics:
The left-most gauge (the large dial with the red needle) measures the rate of write transactions, which reflects the work being done in the cluster, based on Terracotta transactions. This gauge may have a high value or trend higher in a busy cluster. An indication that the cluster may be overloaded or out of tune is when this gauge is constantly at the top of its range. The remaining gauges, which measure "impeding factors" in your cluster, typically fluctuate or remain steady at a low value. If any impeding factors consistently trend higher over time, or remain at a high value, a problem may exist in the cluster. These gauges are listed below:
ManageThe Manage panel displays a table of all connected servers and clients in the cluster. This panel is where you can check the status of servers and clients, remove them from the cluster, and get more detailed information. To open the Manage panel, click Manage in the control panel. Working with ServersThe Manage panel lists each server by name and gives its current status. There must be at least one active server instance for the cluster to function. In a Terracotta server array, a typical mirror group has one active server instance and one passive (or "hot" standby) backup. A server's role within the cluster is shown in the center column.
The following table summarizes the connection status lights.
Server PanelClick Details >> under a specific server to display tabbed subpanels with detailed information about that server. Click << Back to return to the main Manage panel. The Main tab displays the server status and a list of properties, including the server's IP address, version, license, and persistence and failover modes. The Environment tab displays the server's JVM system properties and provides a Find tool. The Config tab displays the Terracotta configuration the server is using and provides a Find tool. Connecting and Disconnecting from a ServerThe console is connected to all of a cluster's servers when it's connected to the cluster. Being connected to a server means that the console is listening for JMX events coming from that server.
The console is disconnected from a cluster's servers when it's disconnected from the cluster. The console is also disconnected from a server when that server is shut down, but the server still appears as part of the cluster. However, its connection status changes. To shut down a server, click the Shutdown button in that server's row. A dialog prompts to you confirm the shutdown. Working with ClientsThe Manage panel lists each client by name and gives its current status. Client PanelClick Details >> under a specific client to display tabbed subpanels with detailed information about that client. Click << Back to return to the main Manage panel. The Main tab displays a list of client properties such as hostname and DSO port. The Environment tab displays the client's JVM system properties and provides a Find tool. The Config tab displays the Terracotta configuration the client is using and provides a Find tool. Connecting and Disconnecting ClientsWhen started up properly, a Terracotta client is automatically added to the appropriate cluster. When a Terracotta client is shut down or disconnects from a server, that client is automatically removed from the cluster and no longer appears in the console.
BackupUsing the Terracotta backup feature, you can create a backup of the data being shared by your application. The backup feature is available from the Backup panel. To open the Backup panel, click Backup in the control panel. If the cluster's persistence mode is not set to permanent-store, then the backup feature is disabled (see Enabling Backups. If backups are enabled, click Backup DB to perform a backup. A dialog box appears where you can confirm the backup destination directory or enter a new destination. The backup is saved to the directory objectdb at the destination. The database is always backed up to a directory called objectdb, which is automatically created if it does not exist at the destination.
To change the default backup directory path, edit the <data-backup> property in the Terracotta server's configuration file with the path to your preferred backup directory: <server> Enabling BackupsIf a Terracotta server is not configured for permanent-store persistence, the Backup DB button is disabled and the following message appears on the Backup database panel: Backup feature is currently disabled because the cluster is operating in temporary-swap-only persistence mode. To enable the Backup DB button, change the value of the persistence mode property in the Terracotta server's configuration file to permanent-store: <server>
<dso>
<persistence>
<mode>permanent-store</mode>
</persistence>
</dso>
</server>
Restoring a BackupTerracotta maintains a copy of shared in-memory data on disk. In most server-failure cases, Terracotta automatically restores that shared data by loading it from the copy, recreating the application state. However, if you encounter a situation in which the data files are missing, you can restore them from backups. To restore data files from a backup:
DiagnosticsThe Diagnostics panels offers tools for monitoring and analysis. There are three tabbed panels available: one for monitoring and triggering the Terracotta Distributed Garbage Collector (DGC), one for viewing cluster events, and one for taking thread dumps.
To open the Diagnostics panels, click Diagnositics in the control panel. Distributed Garbage CollectionObjects in a DSO root object graph may become unreferenced and no longer exist in the Terracotta client's heap. These objects are eventually marked as garbage in a Terracotta server instance's heap and from persistent storage by the DGC. The DGC is unrelated to the Java garbage collector.
To view a history table of DGC activity in the current cluster, click Distributed garbage collection in the cluster list. The history table is automatically refreshed each time a collection occurs. Each row in the history table represents one distributed garbage collection cycle, with the following columns:
The DGC graph combines a real-time line graph (with history) displaying the DGC total elapsed time with a bar graph showing the total number of freed objects. Live Object CountIf the trend for the total number of live objects goes up continuously, clients in the cluster will eventually run out of memory and applications may fail. Upward trends indicate a problem with application logic, garbage collection, or a tuning issue on one or more clients. The total number of live objects is given in the graph's title. DGC cycles should occur often enough to keep the total number of live objects from continuing to grow. Triggering a DGC CycleThe DGC panel displays a message stating the configured frequency of DGC cycles. To manually trigger a DGC cycle, click Run DGC. Operator EventsThe Operator Events panel displays cluster events received by the Terracotta server array. You can use the Operator Events panel to quickly view these events in one location in an easy-to-read format, without having to search the Terracotta logs. Events are listed in a table with the following columns:
An event appears in bold text until it is manually selected (highlighted). The text of an event that has been selected is displayed in regular weight. The Operator Events panel has the following controls:
Thread DumpsYou can get a snapshot of the state of each server and client in the Terracotta cluster using thread dumps. To generate a thread dump, click Take Thread Dump. The thread-dump navigation pane lists completed thread dumps by date-time stamp. The contents of selected thread dumps are displayed in the right-side pane. A Find tool is available for searching through the currently displayed thread dump. To delete a thread dump (or all thread dumps) from the thread-dump navigation pane, right-click the thread dump in the thread-dumps navigation pane, then choose Delete (or Delete All) from the context menu. You can also delete a selected thread dump with your keyboard's Delete key.
Saving Thread DumpsThread dumps are deleted each time the console is restarted. To save all existing thread dumps to disk as a ZIP file, click Export All.... To save any thread dump as a text file, right-click the thread dump in the thread-dumps navigation pane, then choose Export As Text... from the context menu. LoggingThe Logging panel displays log messages for each server. From the View log for menu, choose the server whose logs you want to view. To open the Logging panel, click Logging in the control panel. You can select and, using the Copy command from the context menu, copy any portion of the log. The context menu also offers Select All and Clear commands. |
(help button) appears in the Terracotta Operations Center. Click 