El contenido no se encuentra disponible en el idioma seleccionado. Estamos trabajando continuamente para agregar más idiomas. Gracias por su apoyo.

Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
Help Center/ ModelArts/ ModelArts User Guide (Lite Cluster)/ Using Lite Cluster Resources/ Using Ascend FaultDiag to Diagnose Logs in the ModelArts Lite Cluster Resource Pool

Using Ascend FaultDiag to Diagnose Logs in the ModelArts Lite Cluster Resource Pool

Updated on 2025-03-06 GMT+08:00

Description

This section describes how to use Ascend FaultDiag to diagnose logs in the ModelArts Lite environment, including log collection, log cleaning, and fault diagnosis.

The log data is collected by node and will be cleaned in the log directory of each node. The cleaning results will be summarized for fault diagnosis. For example, for a task running on a cluster with eight nodes and 64 cards, logs need to be collected on the eight nodes respectively. The collected logs are stored in eight directories from worker-0 to worker-7. Then, the logs are cleaned in the eight directories respectively. The cleaning results of each directory are stored in directories from output/worker-0 to output/worker-7. Finally, fault diagnosis is performed in the output directory, where you can obtain the diagnosis result.

For details, see Ascend Fault Diagnosis User Guide

To download Ascend FaultDiag, see Ascend Community.

Step 1: Collecting Logs

You need to collect the following types of logs: user training screen printing logs, host OS logs (host logs), device logs, CANN logs, host resource information, and NPU network port resource information.

  • User training logs: log information output to the standard output (screen) during training sessions. Set environment variables to enable logging to the screen.
  • Host OS logs: logs generated by user processes on the host during the execution of training jobs.
  • Device logs: AI CPU and HCCP logs generated on the device when user processes run on the host. These logs are sent back to the host.
  • CANN logs: runtime information from the Compute Architecture for Neural Networks (CANN) module within the Ascend computing architecture. They are useful for diagnosing issues during model conversion, such as errors like "Convert graph to om failed."
  • Host resource information: statistics on resources used by AI applications or services running on the host.
  • NPU network port resource information: statistics on resources used by AI applications or services running on the host.

If the log data has been output and dumped during training, for example, stored in OBS, and meets the file name and path requirements in Constraints, skip this step and go to step 2.

Step 2: Cleaning Logs

The collected logs should be organized by node path. For example, the logs collected on the worker-0 node must be stored in the worker-0 directory. Check whether the device_log, process_log, and environment_check subdirectories exist in the directory and whether the names are correct.

  1. Data mounting

    If the collected logs are stored on OBS, mount the log data in OBS using the Rclone tool.

    1. Download and install Rclone.
    2. Configure the credentials required for accessing OBS.
      # Hard-coded or plaintext AK/SK is risky. For security, encrypt your AK/SK and store them in the configuration file or environment variables.
      # In this example, the AK/SK is stored in environment variables for identity authentication. Before running this example, set environment variables HUAWEICLOUD_SDK_AK and HUAWEICLOUD_SDK_SK.
      export AWS_ACCESS_KEY=${HUAWEICLOUD_SDK_AK}
      export AWS_SECRET_KEY=${HUAWEICLOUD_SDK_AK}
      export AWS_SESSION_TOKEN=${TOKEN}
    3. Fill the Rclone configuration file rclone.conf.
      [rclone]
      type = s3
      provider = HuaweiOBS
      env_auth = true
      acl = private
    4. Run the lsd command to view the directory in the log path and check whether the configuration is successful.
      rclone lsd rclone:/${obs_bucket_name}/${path_to_logs} --config=${path_to_rclone.config} --s3-endpoint=${obs_endpoint} –no-check-certificate
    5. The following shows a log directory example. The task only has one node worker-0.

    6. Run the mount command to mount the log directory to the local host.
      rclone mount rclone:/${obs_bucket_name}/${path_to_logs} /${path_to_local_dir} --config=${path_to_rclone.config} --s3-endpoint=${obs_endpoint} –no-check-certificate
  2. Node log cleaning

    Specify the log path of a single node as the input and the log cleaning storage path as output. The output path must be empty. Run the ascend-fd parse command to clean the logs of each node.

    ascend-fd parse -i ${path_to_worker_logs} -o ${path_to_parse_output}

    The cleaning result is similar to the log. Different nodes need to be stored in different worker directories.

Step 3: Fault Diagnosis

There is a limit on the maximum number of processes (1,024 by default) in the Linux system. Therefore, there should be no more than 128 servers (1,024 cards) in a cluster. If the number of servers exceeds the limit, run the ulimit -n ${num} command to adjust the upper limit of the file descriptor. The value of ${num} should be greater than the number of cards, for example, for a cluster with 6,000 cards, set the value to 8192.

To perform fault diagnosis, you need to specify the path for storing the cleaning results of all nodes. The output path must be empty. Run the ascend-fd diag command to perform fault diagnosis.

ascend-fd diag -i ${path_to_parse_outputs} -o ${path_to_diag_output}

The diagnosis results are displayed in the following two ways.

  • Command output

  • The diag_report.json file generated in the ${path_to_diag_output}/fault_diag_result directory

Utilizamos cookies para mejorar nuestro sitio y tu experiencia. Al continuar navegando en nuestro sitio, tú aceptas nuestra política de cookies. Descubre más

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback