Diagnostics data management
Manage diagnostics data for clusters, servers, and containers with CLI commands.
The diagnostics CLI commands enable managing diagnostics data associated with clusters, servers, and containers. The Customer Success Team then analyzes this diagnostics data to assist in troubleshooting. There are two options available for managing diagnostics:
Cluster-wide diagnostics commands: Use the command
weka diags
for cluster-wide diagnostics management from any server within the cluster.Local container diagnostics command: Use the command
weka local diags
for diagnostics management of a connected local server.
Cluster-wide diagnostics commands
Use the cluster-wide diagnostics commands to oversee diagnostics data on any cluster server. This includes functionalities to upload diagnostics data to WEKA Home, collect diagnostics data, clean up diagnostics files, and list available diagnostics files.
Upload diagnostics data to WEKA Home
Command: weka diags upload
Use the following command to collect diagnostics information, save it, and upload it to WEKA Home (the WEKA support cloud):
weka diags upload [--core-limit core-limit] [--dump-id dump-id] [--container-id container-id]... [--clients] [--backends]
The command response provides an access identifier, Diags collection ID
. Send this access identifier to the Customer Success Team to retrieve the diagnostics data from the WEKA Home.
When running the command for all servers in the cluster, a local diagnostics file (dump) is created in each server in the location /opt/weka/diags/local
. The local diagnostics file of each server is consolidated in a single diagnostics file in the server where you run the command in the /opt/weka/diags
directory.
HTTPS access is required to upload the diagnostics to AWS S3 endpoints.
The upload process is asynchronous. Therefore, connectivity failure events are reflected in the events log even if the command exits successfully.
Parameters
Name | Description | Default |
---|---|---|
| Limit the diagnostics collection process to use the specified core number. | 1 |
| Uploads a pre-existing diagnostics file (dump) generated by the | If no ID is provided, a new diagnostics file is generated. |
| A list of container ID numbers separated by commas for collecting and uploading diagnostics data.
If specified, the | |
| Collect and upload diagnostics data only from client containers. | No data is collected for clients |
| Collect and upload diagnostics data only from backend containers (same as if you are not specifying this option).
To collect diagnostics for all client and backend containers, add both options
| Backends only |
Collect diagnostics data
Command: weka diags collect
Use the following command to create diagnostics information and save it without uploading it to WEKA Home. This command is useful when there is no connection to WEKA Home, and you want to share the diagnostics file using other options.
weka diags collect [--id id] [--output-dir output-dir] [--core-limit core-limit] [--container-id container-id] [--clients] [--backends] [--tar]
If the command runs with the local
keyword, information is collected only from the server on which the command is executed. Otherwise, information is collected from the whole cluster.
Parameters
Name | Description | Default |
---|---|---|
| An optional identifier for this diagnostics file. If not specified, a random ID is generated. | Auto-generated |
| The directory for saving the diagnostics file. |
|
| Limit the diagnostics collection process to use the specified core number. | 1 |
| A list of container ID numbers separated by commas for collecting diagnostics data.
If specified, the | |
| Collect diagnostics data only from client containers. | No data is collected for clients |
| Collect diagnostics data only from backend containers (same as if you are not specifying this option).
To collect diagnostics for all client and backend containers, add both options
| Backends only |
| Package the collected diagnostics in a TAR file. | No TAR file is created |
Clean up the diagnostics files
The weka diags collect
command consolidates diagnostics from various containers into a single dump directory. Conversely, weka diags upload
saves diagnostics data on each container, distributing files across the cluster before uploading to WEKA Home.
Collecting diagnostics data generates individual files, consuming disk space. As a result, the system may accumulate numerous diagnostics files, especially after they have been uploaded to WEKA Home. To optimize disk space usage, perform a cleanup either on a specific diagnostics file or an entire directory containing multiple diagnostics files.
Cleanup procedure:
List diagnostics files: List the diagnostics files in the system, including their corresponding IDs. This step provides an overview of the available diagnostic files.
Delete specific diagnostic files: Delete specific diagnostics files based on their IDs. This targeted cleanup helps efficiently manage disk space and ensures the removal of unnecessary diagnostic data.
The diagnostics files are essential for troubleshooting purposes. Delete these files only if you are certain they have been successfully uploaded to WEKA Home and are no longer needed. For further clarification, contact the Customer Success Team.
List diagnostics files
Command: weka diags list
Use the following command to list the collected diagnostics files:
weka diags list [--verbose] [<id>]...
Parameters
Name | Description |
---|---|
| The diagnostics file's ID or the path to the diagnostics file. If not specified, a list of all collected diagnostics files is displayed. |
| Displays the results of all the diagnostics files, including the successful ones. |
Delete specific diagnostic files
Command: weka diags rm
Use the following command to stop a running diagnostics instance, cancel its upload, and delete it from the disk:
weka diags rm [--all] [<id>]...
Parameters
Name | Description |
---|---|
| A flag to delete all the diagnostics files. |
| The diagnostics file's ID or the path to the diagnostics files. If not specified, a list of all collected diagnostics files is displayed. This string is required unless the |
Local server diagnostics command
Collecting diagnostics data from a connected local server is valuable in various scenarios, such as:
Lack of a functional management process in the originating backend container or the specified backend containers.
Absence of connectivity between the management process and the cluster leader.
The cluster lacking a leader.
The local container is offline.
The server cannot establish communication with the leader or encountering a failure when attempting the
weka diags
command.
Command: weka local diags
Use the following command to to collect diagnostics from a connected local server:
weka local diags [--id id] [--output-dir output-dir] [--core-dump-limit core-dump-limit] [--collect-cluster-info] [--tar]
Parameters
Name | Description | Default |
---|---|---|
| A unique identifier for this diagnostics file. | Auto-generated |
| The directory for saving the diagnostics file. |
|
| Limit the diagnostics collection process to use the specified core number. | 1 |
| Collect diagnostics data related to the cluster. To prevent excessive load on the cluster, use this flag for one server at a time. | |
| Package the collected diagnostics data in a TAR file. | No TAR file is created |