- Hands-On Enterprise Java Microservices with Eclipse MicroProfile
- Cesar Saavedra Heiko W. Rupp Jeff Mesnil Pavol Loffay Antoine Sabot Durand Scott Stark
- 281字
- 2021-06-24 12:56:24
Understanding health checks and how MicroProfile handles them
In cloud-native architectures, health checks are used to determine whether a computing node is alive and ready to perform work. The concept of readiness describes the state when containers start up or roll over (that is, redeployment). During this time, the cloud platform needs to ensure that no network traffic is routed to that instance before it is ready to perform work.
Liveness, on the other hand, describes the state of a running container; that is, can it still respond to requests? If either the liveness or readiness states are seen as invalid, the computing node will be discarded (terminated or shut down) and eventually replaced by another, healthy, instance.
Health checks are an essential contract with the orchestration framework and scheduler of the cloud platform. The check procedures are provided by the application developer and the platform uses these to continuously ensure the availability of your application or service.
MicroProfile Health Check 1.0 (MP-HC) supports a single health check endpoint that can be utilized for either a liveness or readiness check. MicroProfile Health Check 2.0 plans to add support for multiple endpoints to allow an application to define both liveness and readiness probes.
The MP-HC specification details two elements: a protocol along with a response wire format part and a Java API for defining the response content.
The architecture of the MP-HC feature is modeled as an application that consists of zero or more health check procedures that are logically linked together with AND to derive the overall health check status. A procedure represents an application-defined check of a required condition that has a name, state, and, optionally, data about the check.
- 物聯(lián)網(wǎng)短距離無(wú)線通信技術(shù)應(yīng)用與開(kāi)發(fā)
- 網(wǎng)管員典藏書(shū)架:網(wǎng)絡(luò)管理與運(yùn)維實(shí)戰(zhàn)寶典
- 電子政務(wù)效益的經(jīng)濟(jì)分析與評(píng)價(jià)
- 物聯(lián)網(wǎng)關(guān)鍵技術(shù)及應(yīng)用
- 物聯(lián)網(wǎng)時(shí)代
- Mastering TypeScript 3
- 物聯(lián)網(wǎng)通信技術(shù)
- 城域網(wǎng)與廣域網(wǎng)(第2版)
- 光纖通信系統(tǒng)與網(wǎng)絡(luò)(修訂版)
- 從實(shí)踐中學(xué)習(xí)手機(jī)抓包與數(shù)據(jù)分析
- Learning Node.js Development
- Hands-On Bitcoin Programming with Python
- 一本書(shū)讀懂移動(dòng)物聯(lián)網(wǎng)
- Hands-On Cloud:Native Microservices with Jakarta EE
- 網(wǎng)絡(luò)空間作戰(zhàn):機(jī)理與籌劃