Top up Alibaba Cloud with USD Alibaba Cloud ACK Pod CrashLoopBackOff: Liveness & Readiness Probe Tuning
Top up Alibaba Cloud with USD
If your ACK pod keeps entering CrashLoopBackOff after you add liveness or readiness probes,
the usual problem is not the probe itself. More often, the probe is exposing a startup delay, a dependency
problem, or a resource limit that was already there.
In real projects, the fastest fix is rarely “increase everything.” The better approach is to match the probe to the application’s actual startup path, then confirm that your Alibaba Cloud account, billing status, and compliance state are not blocking the operations you need to test or scale the workload.
This article focuses on the questions people usually ask when they are in the middle of a production issue: why the pod is restarting, which probe setting matters most, what values are safe for ACK, and what Alibaba Cloud account issues can quietly stop you from fixing the problem.
What users usually want to know first
- Why did the pod start crashing only after liveness/readiness probes were enabled?
- Which probe value should I change first:
initialDelaySeconds,timeoutSeconds, orfailureThreshold? - Should I use
startupProbein ACK? - Do I need a different probe strategy for Java, Go, Node.js, or Python services?
- Can account verification, payment, or compliance issues affect cluster creation, scaling, or troubleshooting?
Start with the fastest diagnosis
Before tuning probes, confirm whether the container is actually failing or the probe is killing a healthy but slow-starting process. In ACK, the event messages usually tell you which side is wrong.
- Check pod events for
Liveness probe failed,Readiness probe failed, orBack-off restarting failed container. - Check container logs from the previous restart, not only the latest one.
- Measure actual startup time from container start to “app ready” state.
- Confirm the health endpoint does not depend on a database, Redis, or external API unless that is intentional.
- Check CPU and memory limits. A pod that is throttled or OOM-killed often looks like a probe problem.
A common mistake is to look only at CrashLoopBackOff and assume the probe is too strict. Sometimes the
app crashes first, and the probe only makes the crash visible sooner.
How probe tuning usually fails in ACK
| Symptom | What is really happening | What to change first |
|---|---|---|
| Pod restarts within 20-60 seconds after start | Liveness probe is checking before the app has finished warming up | Add startupProbe or increase initialDelaySeconds |
| Pod stays Running but never becomes Ready | Readiness endpoint depends on a service that is not available yet | Separate app health from dependency health |
| Probe fails only under load | Timeout is too short, or CPU is throttled | Increase timeoutSeconds and review resource limits |
| Probe passes on one node but fails on another | Node pressure, network path, or sidecar behavior differs | Check node resource pressure and service mesh or CNI settings |
| CrashLoopBackOff continues after probe changes | Container is actually exiting due to app error, OOM, or config issue | Inspect logs, exit code, and memory events |
Probe tuning that works in real deployments
The most reliable pattern in ACK is to use startupProbe for slow boot, readinessProbe for traffic
admission, and livenessProbe only for true deadlock or wedged-process detection.
Recommended baseline for slow-starting services
startupProbe:
httpGet:
path: /healthz
port: 8080
periodSeconds: 5
failureThreshold: 30
readinessProbe:
httpGet:
path: /readyz
port: 8080
periodSeconds: 5
timeoutSeconds: 2
failureThreshold: 3
livenessProbe:
httpGet:
path: /healthz
port: 8080
periodSeconds: 10
timeoutSeconds: 2
failureThreshold: 3
This pattern gives a container up to 150 seconds to start before liveness kicks in. That is often enough for Java services with class loading, Spring context initialization, JVM warm-up, or applications that need to load large config bundles from OSS or a config service.
How to choose the right values
initialDelaySeconds: use it when the app cannot answer health checks immediately after container start.timeoutSeconds: increase it when the endpoint is slow under CPU pressure or node contention.failureThreshold: raise it when short bursts of failure should not restart the pod.periodSeconds: shorten it if you need faster failure detection, but do not use it to hide a broken app.successThreshold: usually matters more for readiness than liveness; keep it simple unless you have flapping readiness.
A practical rule: tune startup first, readiness second, liveness last. If you tune liveness first, you may keep a broken pod alive too long. If you tune readiness first, you can avoid sending traffic to a pod that is still warming up.
What to separate in your health checks
Top up Alibaba Cloud with USD One of the biggest causes of probe-related restarts is using one endpoint for everything. That usually makes the health check too strict.
- Use liveness to answer: “Is the process still alive and not deadlocked?”
- Use readiness to answer: “Can this pod receive traffic right now?”
- Do not make liveness depend on downstream services unless the pod must restart when those dependencies fail.
Example: if your readiness endpoint checks database connectivity, a short DB failover may take the pod out of service, which is acceptable. But if the same DB check is used for liveness, Kubernetes may restart the app repeatedly during a transient database issue, making recovery slower.
ACK-specific checks that save time
In Alibaba Cloud ACK, probe failures are only part of the story. I usually check the following before changing more YAML:
- Container logs: confirm whether the app is exiting on its own or being killed after probe failure.
- Events: look for repeated probe failure messages, image pull delays, or mount problems.
- Top up Alibaba Cloud with USD Node pressure: CPU throttling and memory pressure can make a healthy endpoint miss its timeout.
- Network path: service mesh, sidecars, security groups, and network policies can block probe traffic.
- Ingress and service routing: sometimes traffic is fine, but the health endpoint is not reachable from the pod network.
If you are using a sidecar proxy, remember that the probe may hit the proxy first. In those cases, the app can be ready while the proxy or its routing rules are not. That usually shows up as readiness failures rather than a real container crash.
Common real-world cases
Case 1: Java service starts slowly after deployment
A Spring Boot service on ACK was restarting every 40-50 seconds. The team had set liveness with no
startupProbe, and the app needed around 90 seconds on cold start because it loaded several JARs,
initialized caches, and fetched config from a remote service.
Top up Alibaba Cloud with USD
The fix was simple: move the cold-start window into startupProbe, keep readiness separate, and leave
liveness strict enough to catch real deadlocks. After that, the pod stopped cycling during deployment.
Case 2: Readiness depends on a database that fails over
Top up Alibaba Cloud with USD A Node.js API used a readiness endpoint that checked database queries directly. During a database failover, pods became unready, traffic shifted away, and the app recovered. That part was fine.
The problem was that the same logic was also used for liveness. During a 20-second failover, the container was restarted several times, which extended the outage. Splitting the checks fixed the issue without hiding genuine backend failures.
Case 3: Probe timeout under CPU throttling
A Go service with tight CPU limits responded normally in development but failed readiness in production when traffic increased. The health endpoint was lightweight, but the pod was being throttled enough that the handler missed the 1-second timeout.
Increasing CPU requests, relaxing the timeout slightly, and monitoring throttling events solved the issue. The probe was not wrong; the resource settings were too tight for the actual workload.
Account purchasing, KYC, and payment issues that affect this work
If you are trying to debug ACK in a new Alibaba Cloud account, the most common blocker is not technical. It is account readiness: purchasing access, identity verification, billing, and risk control review can all affect whether you can create clusters, scale nodes, or renew the resources the pods depend on.
What matters before you start testing in production-like conditions
- Make sure the account is fully activated, not just registered.
- Finish identity verification early if the console requests it before resource creation or scaling.
- Confirm the payment method supports the region and billing model you want to use.
- Check whether the account is limited to trial-style quotas, which can affect node count, public IPs, or SLB usage.
- Verify that renewals are set up for subscription resources such as ECS nodes, disks, load balancers, or public IP-related assets.
In practice, I have seen teams spend hours tuning probes only to discover that the node pool could not scale because the account was under review or the payment method had failed. That creates a false technical signal: the pod is unstable, but the root cause is an account-side restriction.
Payment methods and what they mean operationally
| Payment approach | Typical use case | Operational risk |
|---|---|---|
| Credit or debit card | Fast activation, small teams, proof-of-concept work | Card decline can stop renewals or new purchases without warning |
| Bank transfer / enterprise billing | Corporate use with procurement approval | Slower activation, but better for predictable renewals and higher spend |
| Prepaid funding | Controlled budget or short testing window | Service interruption risk if balance is not topped up on time |
For troubleshooting ACK probe issues, pay-as-you-go resources are usually the easiest choice because they let you create test nodes, rebuild the workload, and roll back quickly. For steady production workloads, subscription can be cheaper over time, but only if renewals and billing are managed tightly.
Cost comparison in practice
| Scenario | Better billing choice | Why |
|---|---|---|
| One-day probe debugging or smoke testing | Pay-as-you-go | Fast to create and delete without long commitments |
| Stable production service with predictable load | Subscription for steady baseline, pay-as-you-go for burst | Lower baseline cost with flexibility for spikes |
| Frequent rollback and redeploy cycles | Pay-as-you-go | Operationally simpler while you are still adjusting probes and resources |
| Managed enterprise environment | Enterprise billing with renewal controls | Better for approval flow, invoicing, and audit requirements |
Risk control and compliance reviews
Top up Alibaba Cloud with USD Alibaba Cloud accounts can face additional checks when buying resources, adding payment methods, or increasing usage quickly. That is normal, but it becomes painful if you are in the middle of a production fix and suddenly cannot create nodes or attach a public endpoint.
The most common triggers I have seen are new accounts with rapid resource growth, inconsistent billing information, region changes, and enterprise accounts that have not completed all required verification steps.
Practical advice:
- Keep the account profile consistent with the billing entity.
- Do not wait until an incident to complete KYC or enterprise verification.
- Leave enough balance or credit headroom if your cluster autoscaling depends on new nodes being created quickly.
- Track renewal dates for the resources that sit under ACK, especially disks and public-facing services.
If compliance review blocks a purchase, the fix is usually not technical. You need to supply the missing documents, clarify the use case, or use an account setup that matches the actual buyer and operator.
Usage restrictions that often surprise teams
- Some regions or payment setups may restrict which resources can be purchased immediately.
- Trial or newly activated accounts may have quota limits that affect scaling and load testing.
- Accounts under review may fail when buying extra ECS capacity, EIPs, or load balancer-related services.
- Renewal failure on one supporting resource can make the pod problem look like a probe issue.
In other words, if your pod keeps restarting and your cluster is under capacity, check both the workload and the account state. A probe can only report what the container is doing; it cannot compensate for a node pool that cannot scale because billing or quota is blocked.
Practical tuning recommendations by workload type
For Java and Spring workloads
- Top up Alibaba Cloud with USD Use
startupProbeif cold start is longer than 30-60 seconds. - Separate readiness from external dependency checks.
- Raise
timeoutSecondsif the app runs under CPU pressure during warm-up.
For Go services
- Keep the health handler lightweight and avoid expensive database calls in liveness.
- Watch for CPU throttling rather than only memory issues.
- Use tight readiness and moderate liveness, not aggressive restarts.
For Node.js and Python services
- Expect startup delays from dependency initialization and package loading.
- Increase
failureThresholdbefore increasingtimeoutSecondstoo much. - Check event-loop blocking or single-threaded bottlenecks if probes fail only during traffic spikes.
Frequently asked questions
Should liveness and readiness use the same endpoint?
Usually no. Use the same code path only if the endpoint is truly simple and dependency-free. In most real systems, readiness should be stricter than liveness.
Is startupProbe better than increasing initialDelaySeconds?
Yes, in most cases. startupProbe is cleaner because it protects the app during startup without making
the liveness probe permanently lenient.
Why does the pod still crash after I increased probe thresholds?
Because the crash may not be caused by the probe. Check exit code, OOM events, config errors, missing secrets, or a dependency that fails during app initialization.
What is the cheapest way to test probe changes on Alibaba Cloud?
For short troubleshooting work, pay-as-you-go nodes and temporary test resources are usually the lowest-risk option. They are easier to create and delete than subscription resources when you are still iterating.
Can account verification block ACK troubleshooting?
Yes. If your account is unverified, under review, or missing valid payment setup, you may not be able to create nodes, renew disks, or scale resources. That can stop you from reproducing the issue or rolling out the fix.
What should I check if scaling fails but probes look fine?
Check account balance, renewal status, quota limits, region restrictions, and whether the payment method is still valid. Many “probe” incidents turn out to be scaling failures in disguise.
A decision path that works
- Confirm whether the app is crashing by itself or being killed by an aggressive probe.
- Use logs and events to find the exact failure window.
- Move startup delay into
startupProbeif the app is just slow to initialize. - Keep readiness focused on traffic safety, not on every downstream dependency.
- Review CPU, memory, and billing status before making the probe looser.
- Make sure the Alibaba Cloud account can actually create, renew, and scale the resources needed for the fix.
In most ACK incidents I have handled, the durable fix came from two sides at once: a probe configuration that matches the application’s real startup behavior, and an account setup that does not block scaling or renewal when the cluster needs it most.

