Esta página ainda não está disponível no idioma selecionado. Estamos trabalhando para adicionar mais opções de idiomas. Agradecemos sua compreensão.

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
On this page

Configuring Health Check

Updated on 2024-07-01 GMT+08:00

Health check helps you check whether application instances and services are running.

This section describes health check by checking whether an application is interrupted during upgrade.

Precautions

  • When only the liveliness probe is used, if the network fluctuates or the program starts slowly, the instance will keep restarting and remains in the Not ready state.
    The following solutions are available:
    • Use startup probe together.
    • Increase Failure Threshold to increase the fault tolerance rate and increase Latency to ensure that the program accepts the liveliness probe detection after startup.
  • If status code 200 is returned, the check is successful.
  • If a status code other than 200 is returned and the number of consecutive failures reaches Failure Threshold, the check fails.

Procedure

  1. Log in to CAE.
  2. Choose Component Configurations.
  3. Select the target component from the drop-down list in the upper part of the page.

    Figure 1 Selecting a component

  4. Click Edit in the Health Check module.
  5. You can select liveliness probe, readiness probe, or startup probe. Different probes can be enabled at the same time.

    • Liveliness probe checks the startup health of application instances. The application instances are being started. Click next to Liveliness Probe to configure the check method.
    • Readiness probe checks the startup health of application instances. The application instances are available to provide services. Click next to Readiness Probe to configure the check method. In this example, the readiness probe must be enabled.
    • Startup probe checks the running health of application instances. If application instances are unhealthy, CAE restarts them. Click next to Startup Probe to configure the check method.
      Figure 2 Readiness probe

  6. Select a check method and set parameters. For details, see Table 1 and Table 2.

    Table 1 Check method parameters

    Check Method

    Parameter

    Description

    HTTP

    Port

    Port used to establish an HTTP GET connection.

    Path

    Path used to establish an HTTP GET connection.

    Protocol

    Select HTTP or HTTPS.

    Header

    HTTP header in the request.

    TCP

    Port

    Port for TCP connections. In this example, select TCP.

    Command

    Command

    Add a command. Click Add Command to add more commands.

    NOTE:

    No space is allowed after the command line.

    Table 2 Common parameters of the three check methods

    Parameter

    Description

    Check Interval

    Detection interval, in seconds.

    Default value: 10. Minimum value: 1. In this example, use the default value.

    Latency

    Maximum latency, in seconds.

    Default value: 0. Minimum value: 0. In this example, use the default value.

    NOTE:

    If you configure health check before starting the container, set Latency to 3 minutes.

    Timeout Interval

    Detection timeout interval, in seconds.

    Default value: 1. Minimum value: 1. In this example, use the default value.

    Success Threshold

    Health check is passed after a specified number of consecutive successful detections.

    Default value: 1. Minimum value: 1. For liveliness and startup probes, set it to 1. In this example, use the default value.

    Failure Threshold

    Health check fails after a specified number of consecutive failed detections.

    Default value: 3. Minimum value: 1. In this example, use the default value.

  7. Click OK.
  8. Make the configurations take effect.

    • If the component has been deployed, click Activate Settings in the upper part of the page. In the dialog box displayed on the right, confirm the configurations and click OK for the configurations to take effect.
    • If the component has not been deployed, click Set and Deploy Component in the upper part of the page. In the dialog box displayed on the right, click OK. After the deployment is complete, the configurations take effect.

  9. After upgrading the component, choose Component Events. If the Component instance healthy event is Normal, the component is successfully upgraded.

    Figure 3 Component health check

Usamos cookies para aprimorar nosso site e sua experiência. Ao continuar a navegar em nosso site, você aceita nossa política de cookies. Saiba mais

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback