Task state determining method and device

A task status and task technology, applied in the computer field, can solve problems such as inability to query Kubernetes historical task information, Pod status cannot directly reflect task status, and judging task status is unreasonable, etc., to achieve the effect of reducing pressure

Pending Publication Date: 2021-03-30
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] 1. The Pod status cannot directly reflect the task status. It is unreasonable to completely rely on the Pod to judge the task status in the existing technology
[0005] 2. Existing technologies need to frequently use Fabric8 to interact with API Server, thus putting pressure on API Server
At the same time, the existing technology cannot query the historical task information executed in Kubernetes

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Task state determining method and device
  • Task state determining method and device
  • Task state determining method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0036] Exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0037] In the embodiment of the present invention, status judgment and tracking can be performed on tasks executed in Kubernetes. Kubernetes is a portable and extensible open source platform for managing containerized applications and services. Through Kubernetes, applications can be automatically deployed and scaled. In Kubernetes, the containers that make up the applica...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a task state determining method and device, and relates to the technical field of computers. A specific embodiment of the method comprises the steps of obtaining an event occurring in a container set, and determining a current state of the container set from the event; when the current state is a running state and the recent state of the pre-stored task is a starting related state, determining the current state of the task as a running state; and / or acquiring an event occurring in the deployment unit, and determining the number of unavailable container sets controlled by the deployment unit from the event; and when the number is equal to a preset first threshold value and the recent state of the pre-stored task is a starting related state except a starting failure state, determining the current state of the task as the starting failure state. According to the embodiment, the current state of the task can be accurately judged by acquiring the container set eventand / or the deployment unit event.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for determining task status. Background technique [0002] Kubernetes is an application for managing, orchestrating, and scheduling containers in multiple hosts. In the prior art, in order to judge the status of tasks in Kubernetes, Fabric8 (a kind of application program interface) and API Server (a kind of key service process provided by Kubernetes can be used to provide the only entry for resource operation, and provide authentication, authorization, Mechanisms such as access control, application program interface registration and discovery) interact to query the status of the Pod (the smallest management element in Kubernetes, a Pod can contain at least one container), and then judge the status of the task by the status of the Pod. [0003] In the process of realizing the present invention, the inventor finds that there are at least the following problem...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/455
CPCG06F9/45558G06F2009/45562G06F2009/4557G06F2009/45575
Inventor 张猛
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products