Article Details

Huawei Cloud KYC Verification Tutorial Troubleshooting high CPU usage and optimizing Huawei Cloud ECS instance performance

Huawei Cloud2026-08-21 15:37:26MaxCloud

You likely searched this because your ECS instance is “stuck at 80–100% CPU”, your app latency spiked, and you’re also trying to keep the account in good standing (no failed payments, no verification block, no risk-control surprises). Below is the practical checklist I use in real troubleshooting—plus the account-side items that often get overlooked when users try to scale or restart.

1) Triage first: is it a one-time CPU spike or a sustained problem?

Before you touch billing or redeploy, confirm whether the CPU is spiking briefly or sustained. Many people jump straight to “resize ECS” while the issue is actually burst workload, cron jobs, or a misbehaving process.

What to check (Linux)

  • Top CPU offenders: top, htop, or ps -eo pid,ppid,cmd,%cpu --sort=-%cpu | head
  • CPU breakdown: mpstat -P ALL 1 (user/system/iowait/steal)
  • Load vs CPU: compare uptime output (load average) with CPU usage—load can rise due to runnable tasks.
  • I/O wait indicator: if iowait is high, CPU optimizations alone won’t fix it (disk/network bottleneck).

What to look for

  • High “user” CPU + one process: app loop, regex explosion, inefficient query, runaway workers.
  • High “system” CPU: kernel overhead, too many interrupts, filesystem errors, logging storms.
  • High iowait: storage saturation, snapshot/backup impact, bad caching, too-small disk performance.
  • High “steal” (if visible): noisy neighbor / host contention; may require resizing/migration or different billing plan.

Actionable step: If you can identify the main process within 10–15 minutes, your optimization plan becomes clear. If you can’t, collect 10–30 minutes of metrics and thread dumps (see the next section).

2) Capture evidence: logs, metrics, and a CPU profile

Troubleshooting speed depends on how quickly you get “proof” of what’s consuming CPU. In production, I’ve seen cases where teams blamed the ECS OS, while the root cause was an application worker stuck in a retry loop.

Minimum data set to collect

  • Time window: exact UTC/local time when CPU spiked
  • Process list: top 10 by CPU (repeat every 1–2 minutes)
  • System logs: journalctl -S "10 min ago" or relevant service logs
  • Network spikes: check connection errors/timeouts (app retries can burn CPU)

Fast CPU profiling options

  • For interpreted languages (Python/Node/Java): attach sampling profiler (e.g., async-profiler/JFR depending on runtime).
  • For native services: use perf top, perf record, then interpret hot symbols.
  • If you run containers: ensure the CPU usage belongs to the container, not host side processes (and check CPU quotas/limits).

Don’t skip this: Without a profile, resizing is blind. You may pay more and still keep the same CPU loop.

3) Common real causes of high CPU on Huawei Cloud ECS (and what to do immediately)

Below are failure patterns I see frequently across ECS environments. Each item includes the quickest fix you can apply today.

A) Retry storms after upstream errors

  • Symptoms: CPU climbs, log shows repeated timeouts/connection reset.
  • Root cause: missing backoff, aggressive concurrency, DNS issues.
  • Immediate fix: cap concurrency, add exponential backoff, reduce worker count, tune timeouts.

B) Database query inefficiency / missing indexes

  • Symptoms: CPU high in web app + DB query logs show long scans.
  • Root cause: no index, bad query plan, large joins without filters.
  • Immediate fix: identify top slow queries; add missing indexes; cap result size; warm caches.

C) Cron jobs or batch tasks overlapping

  • Symptoms: CPU spike at predictable times (e.g., every 5 minutes).
  • Immediate fix: check crontab -l, systemd timers; ensure jobs don’t overlap.

D) Logging too much (especially synchronous writes)

  • Symptoms: “system” CPU and disk I/O increase together.
  • Immediate fix: reduce log level, enable async logging, rotate logs properly, check disk space.

E) Misconfigured antivirus/endpoint scanning (if enabled)

  • Symptoms: file scan processes peak CPU and I/O.
  • Immediate fix: exclude hot directories and build artifacts; schedule scans off-peak.

If you’re unsure which pattern you have, check whether CPU spikes coincide with app errors (A), slow queries (B), scheduled tasks (C), logging bursts (D), or scan activities (E).

4) Optimize without breaking the service: scaling steps that reduce risk

Optimization often implies changing instance size, count, or workload placement. That’s also where account funding/renewal issues can cause downtime—especially if you’re using pay-as-you-go and the billing status changes during the incident.

Huawei Cloud KYC Verification Tutorial Quick optimization ladder (in order)

  1. Reduce worker count / concurrency to stop the CPU spiral immediately.
  2. Patch the bottleneck (indexes, timeouts, retry backoff) so CPU falls naturally.
  3. Adjust ECS resources (CPU/RAM scale up or scale out) only after you confirm the root cause.
  4. Move hot components (e.g., heavy cache warmers) to separate instances if the app can’t share CPU cleanly.

When scaling helps vs hurts

  • Scaling helps if CPU is the bottleneck and the work per request is stable (e.g., more concurrent users).
  • Scaling hurts if CPU is burned by a loop, retry storm, or inefficient query—the extra CPU only makes the failure faster.

Practical tip: If you can’t deploy a code fix during the incident, try changing configuration first (timeouts, concurrency caps, log levels). It’s usually faster than resizing and safer than redeploying.

5) Network and storage: the “hidden CPU killer” in ECS

Many users assume CPU is “the” problem. In practice, high CPU can be the symptom of storage/network issues. When your app can’t retrieve or persist data efficiently, it spins and retries, raising CPU.

How to confirm storage bottleneck

  • iostat -x 1 for high %util / await / service time
  • vmstat 1 and look at wa (iowait) and run queue
  • Check filesystem errors: dmesg | tail

How to confirm network bottleneck

  • Look at TCP retransmits and connection errors (app logs + ss -s)
  • Confirm whether the ECS is in a congested network path (region/VPC topology matters)

Huawei Cloud KYC Verification Tutorial Optimization move: If iowait is high, prioritize storage performance (disk type/throughput), caching layers, and reducing synchronous writes. CPU profiling alone won’t solve it.

6) Region, instance type, and CPU behavior differences (practical considerations)

Even within the same product line, CPU behavior can differ based on instance families and placement policies. When you scale or migrate, you want predictable performance.

Decision points I apply before migrating

  • Traffic pattern: constant load vs burst load—burst workloads might need different sizing strategy.
  • Latency sensitivity: if latency matters, prefer stable resource allocations over “just add CPU”.
  • Data locality: ensure your database/storage isn’t crossing regions/poorly matched networks.

If you already hit high CPU after moving to a new region, check VPC routing and whether your DB/queues are still local to the ECS side. I’ve seen CPU rise simply because of increased timeout/retry due to network latency.

7) Account purchasing & activation checks (so performance work doesn’t get interrupted)

While you’re optimizing ECS, you might need to add instances, enable auto-scaling, or renew a subscription. If your account is stuck in verification/risk review, you can’t fully use capacity when it matters.

What to check before you buy more ECS

  • Billing status: ensure your account is eligible to create/renew resources.
  • Payment method availability: some methods are region/account-type dependent.
  • Verification state: individual vs enterprise verification can change limits.

Common real-world issue: People troubleshoot CPU, decide to scale up, and then discover “purchase/renewal is blocked” due to account verification or funding problems. This can turn a 30-minute incident into a multi-day delay.

Huawei Cloud KYC Verification Tutorial 8) KYC/Identity verification: what usually triggers delays or failures

Huawei Cloud verification (KYC/enterprise verification) isn’t just paperwork—it’s linked to risk controls and the ability to fund/bill resources. If you’re actively working on performance, verification delays can stall your scaling plan.

Huawei Cloud KYC Verification Tutorial Frequent reasons submissions fail (patterns I’ve observed)

  • Document mismatch: name mismatch, ID number format issues, expired documents.
  • Low-quality photos: glare, blur, incorrect cropping, unreadable edges.
  • Enterprise inconsistency: business registration info doesn’t match account holder info.
  • Risk flags: unusual purchase patterns, repeated attempts after rejection, VPN/proxy usage during submission.
  • Insufficient supporting materials: for certain enterprise cases, you may be asked for extra verification docs.

Best practices that reduce rejections

  • Use stable network; avoid automated login attempts and frequent session changes during KYC.
  • Check spelling carefully (especially when your bank account name differs from legal name).
  • For enterprise: ensure the legal entity in docs matches the account registration entity exactly.

If you’re already in verification and you need more capacity now, plan scaling using what’s already enabled. I recommend delaying non-critical purchases until verification is approved.

9) Funding & renewals: how billing problems manifest during ECS incidents

High CPU incidents often lead to emergency scaling. If your account has funding issues, you can get stuck in a “cannot create/renew resources” state or face interruptions.

What to monitor

  • Prepaid balance (if applicable): avoid running out right before scaling/auto-scaling triggers.
  • Postpaid arrears: ensure you have enough credit/billing headroom.
  • Subscription renewals: long-term plans must be renewed before grace periods expire.

Practical actions

  • Set reminders for upcoming renewals (at least 7–15 days before expiration).
  • Huawei Cloud KYC Verification Tutorial When possible, keep an extra buffer for auto-scaling and monitoring retention costs.
  • Huawei Cloud KYC Verification Tutorial Confirm whether support for new instance types depends on your billing status.

Real incident pattern: CPU spike → auto-scaling tries to add instances → billing status changes → scale-out fails → service stays overloaded longer than expected. The root cause is operational, but the failure point is financial.

10) Payment methods: choosing one that won’t block you at the worst time

Users often ask “what payment method is supported?” because they need reliability during emergencies. Availability varies by region and account type, but the operational implications are consistent.

Payment method comparison (operational reliability focus)

Payment method Typical strengths Common constraints / watch-outs
Credit/debit card Fast activation; good for short-term spikes May fail due to international payment blocks; limits/3DS verification can delay
Bank transfer / remittance Good for larger top-ups Processing time; mismatch in remittance info can cause delayed credit
Prepaid balance (top-up) Predictable budgeting; reduces “pay-as-you-go surprises” Requires you to remember renewal/top-up schedules
Invoice / enterprise settlement (when available) Best for procurement-managed companies Approval workflow can be slow; not ideal for emergency-only capacity

My recommendation: For performance-critical production, don’t rely on the “slowest” payment method alone. Maintain at least one funding route that clears quickly in your environment.

11) Risk control & compliance reviews: what can limit ECS usage

Risk control reviews aren’t only about illegal content. They also respond to billing anomalies, unusual resource creation, and suspicious access patterns. During troubleshooting, you might perform many actions quickly—restarts, scaling, IP changes— which can look abnormal.

Actions that may increase risk signals

  • Mass creation of instances/volumes in a short time
  • Frequent deletion/recreation loops
  • Sudden traffic spikes from the same accounts/targets
  • Repeated payment failures or chargebacks
  • Automated access using proxies/VPN during account management

How to avoid getting stuck while fixing CPU

  • Do incident actions incrementally: scale stepwise, not “all at once”.
  • Document changes (timestamps + reasons). If a review happens, you can respond faster.
  • Keep access consistent: avoid rapidly changing login IPs during the review window.

If your account is already under risk control, prioritize server-side fixes (concurrency caps, throttling) over aggressive scaling until the status is cleared.

12) Cost comparisons that matter when you’re scaling for CPU issues

When CPU is high, you’re tempted to “just scale up”. But cost structure changes based on billing model and how long the incident lasts. Here’s how to compare options in a way that matches how incidents actually play out.

Cost driver checklist

  • Duration: scaling for 30 minutes vs 3 days is wildly different.
  • Right-sizing gap: over-provisioning can be cheaper than downtime, but not always.
  • Storage costs: CPU fixes often require extra logs/metrics retention; make sure you understand retention impact.
  • Network egress: retries caused by network timeouts increase egress and raise cost.

Decision scenarios

  • Scenario 1: CPU spike < 1 hour, root cause found quickly
    Prefer temporary throttling + one-time restart/redeploy. Avoid buying extra long-term capacity.
  • Scenario 2: CPU sustained due to missing indexes
    If you can patch quickly, scale modestly while adding indexes. If patch takes longer, add capacity to protect SLOs.
  • Scenario 3: CPU sustained, likely host contention or storage bottleneck
    Scaling may not fix it. Prioritize moving to better instance family/storage configuration and validate network path.

Huawei Cloud KYC Verification Tutorial Even across providers, the cost tradeoff usually comes down to: “pay for short-term capacity to protect availability” versus “pay for engineering time to fix the root cause.” The correct answer depends on your incident length and SLO.

13) Troubleshooting FAQ (the questions users actually ask)

Q1: My ECS CPU is high but “top” shows nothing obvious. What’s next?

Huawei Cloud KYC Verification Tutorial Check kernel/system activity and iowait. Use mpstat + iostat. Also verify container CPU limits and whether a background process (log rotation, filesystem checks) is spiking. If you can, take a short CPU profile snapshot.

Q2: Can I scale ECS while my account is under verification?

It depends on your account state and plan type. If KYC/enterprise verification is incomplete or billing is restricted, scaling or purchase may fail. If you’re actively verified issues, check billing eligibility in the console before initiating scaling.

Q3: Payment failed—does it affect existing running ECS?

Existing instances may keep running until the billing cycle/balance policy triggers interruption or renewal issues. However, you’ll likely be blocked from scaling, new resources, or certain service activations. In incidents, verify billing headroom first.

Q4: Why do I get “risk control review” after frequent scaling/restarts?

Frequent resource create/delete and abnormal access patterns can trigger automated risk signals. Reduce action frequency, ensure consistent access, and avoid rapid loops while troubleshooting. If the review happens, prepare a timeline of changes so you can respond promptly.

Q5: Which is better for CPU optimization—scale up or scale out?

Scale out helps when the work is horizontally partitionable (stateless services, queue consumers with safe concurrency). Scale up can be safer when you need shared memory cache or when partitioning isn’t straightforward. But if the bottleneck is query/logging/retry loops, neither scaling solves it alone—always address the driver.

Q6: How do I prevent the same CPU issue recurring?

Add guardrails: concurrency caps, circuit breakers, retry backoff, database slow-query logging, and resource alerts. Also capture CPU profiles during normal and peak periods—so you can compare when alerts fire.

14) A practical “incident runbook” you can follow tonight

  1. Confirm CPU pattern: spike vs sustained; collect top processes and mpstat output.
  2. Check iowait: run iostat/vmstat—if iowait is high, focus on storage/network and caching.
  3. Identify app-level triggers: match CPU spike timestamp with app logs (timeouts, retries, cron runs).
  4. Stop the bleeding: reduce concurrency/worker count; lower log level; cap retries.
  5. Decide scaling strategy: small temporary scale if needed for SLO; avoid “scale blindly”.
  6. Verify account readiness: ensure your billing method is valid and funds/renewals are not near failure.
  7. Check KYC/KYB status if blocked: if console purchase/renewal fails, fix verification/funding first.
  8. Implement root cause: indexes, timeouts, backoff, job scheduling, or storage configuration changes.
  9. Huawei Cloud KYC Verification Tutorial Post-incident guardrails: alerts + dashboards + throttling policies.

If you tell me your OS type (Linux/Windows), app stack (Java/Python/Node/Go), and what mpstat shows (user/system/iowait), I can help you pinpoint the likely cause and pick the safest scaling move—while also checking what account-side constraints to verify before buying more capacity.

TelegramContact Us
CS ID
@cloudcup
TelegramSupport
CS ID
@yanhuacloud