CN113760638A - A log service method and device based on kubernetes cluster - Google Patents
A log service method and device based on kubernetes cluster Download PDFInfo
- Publication number
- CN113760638A CN113760638A CN202011103286.8A CN202011103286A CN113760638A CN 113760638 A CN113760638 A CN 113760638A CN 202011103286 A CN202011103286 A CN 202011103286A CN 113760638 A CN113760638 A CN 113760638A
- Authority
- CN
- China
- Prior art keywords
- application
- log
- running
- local
- application log
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 87
- 230000008569 process Effects 0.000 claims abstract description 53
- 238000004590 computer program Methods 0.000 claims description 9
- 230000000295 complement effect Effects 0.000 claims description 8
- 230000004044 response Effects 0.000 abstract description 12
- 238000010586 diagram Methods 0.000 description 13
- 230000000694 effects Effects 0.000 description 11
- 238000004891 communication Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 7
- 238000012545 processing Methods 0.000 description 6
- 230000009286 beneficial effect Effects 0.000 description 5
- 238000007726 management method Methods 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 230000003862 health status Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 239000000835 fiber Substances 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 238000004140 cleaning Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 238000007418 data mining Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000013439 planning Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 238000013024 troubleshooting Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3006—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3065—Monitoring arrangements determined by the means or processing involved in reporting the monitored data
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Computing Systems (AREA)
- Quality & Reliability (AREA)
- Computational Linguistics (AREA)
- Software Systems (AREA)
- Mathematical Physics (AREA)
- Debugging And Monitoring (AREA)
Abstract
本发明公开了一种基于kubernetes集群的日志服务方法和装置,涉及计算机技术领域。该方法的一具体实施方式包括:获取运行在kubernetes集群上的应用的运行状态;其中,应用对应的运行节点将应用在运行过程中生成的应用日志进行本地存储,得到本地应用日志集合;根据运行状态确定运行完成的应用,并将运行完成的应用对应的本地存储的应用日志进行云存储,得到云应用日志集合;响应于用户发起的应用日志查询请求,根据应用日志查询请求中包括的应用编号,依次查询本地应用日志集合和云应用日志集合,以确定目标应用日志,并将目标应用日志发送至用户。该实施方式节约了存储资源,简化了日志查询流程,提高了日志查询效率,提升了用户体验。
The invention discloses a log service method and device based on kubernetes cluster, and relates to the technical field of computers. A specific implementation of the method includes: acquiring the running status of the application running on the kubernetes cluster; wherein, the running node corresponding to the application locally stores the application log generated by the application during the running process to obtain a local application log set; The state determines the completed application, and stores the locally stored application log corresponding to the completed application in the cloud to obtain the cloud application log collection; in response to the application log query request initiated by the user, according to the application number included in the application log query request , query the local application log collection and the cloud application log collection in turn to determine the target application log, and send the target application log to the user. This embodiment saves storage resources, simplifies the log query process, improves log query efficiency, and improves user experience.
Description
技术领域technical field
本发明涉及计算机技术领域,尤其涉及一种基于kubernetes集群的日志服务方法和装置。The present invention relates to the field of computer technology, in particular to a method and device for log service based on a kubernetes cluster.
背景技术Background technique
kubernetes,是一个开源的,用于管理云平台中多个主机上的容器化的应用,Kubernetes集群作为一种资源调度框架,常用于调度在线服务,其目标是让部署容器化的应用简单并且高效(powerful),Kubernetes提供了应用部署,规划,更新,维护的一种机制。当前Kubernetes集群中通常采用如ElK(Elasticsearch、Logstash、Kibana,是三种开源框架搭建的日志采集管理系统)等传统分布式日志解决方案。Kubernetes is an open source application for managing containerized applications on multiple hosts in a cloud platform. As a resource scheduling framework, Kubernetes clusters are often used to schedule online services. The goal is to make the deployment of containerized applications simple and efficient. (powerful), Kubernetes provides a mechanism for application deployment, planning, update, and maintenance. Traditional distributed log solutions such as ElK (Elasticsearch, Logstash, and Kibana, which are log collection and management systems built by three open source frameworks) are usually used in current Kubernetes clusters.
Spark,是一个流行的大数据计算框架,能更好地适用于数据挖掘和机器学习等需要迭代的算法,现有的Spark通常使用传统的Yarn调度程序来进行资源调度。Spark, a popular big data computing framework, is better suited for algorithms that require iteration such as data mining and machine learning. The existing Spark usually uses the traditional Yarn scheduler for resource scheduling.
在实现本发明过程中,发明人发现现有技术中至少存在如下问题:In the process of realizing the present invention, the inventor found that there are at least the following problems in the prior art:
1、现有的在kubernetes集群中运行应用的日志服务方法主要采用传统分布式日志解决方案,耗费了存储资源,日志查询效率低;1. The existing log service methods for running applications in kubernetes clusters mainly use traditional distributed log solutions, which consume storage resources and have low log query efficiency;
2、Spark应用在kubernetes集群运行时,日志需要通过特定页面、搜索、查询、展示等组件进行查询并展示,日志查询流程复杂,导致用户体验差。2. When Spark applications run in a kubernetes cluster, logs need to be queried and displayed through specific pages, search, query, display and other components. The log query process is complicated, resulting in poor user experience.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本发明实施例提供一种基于kubernetes集群的日志服务方法和装置,能够节约存储资源,简化日志查询流程,提高日志查询效率,提升用户体验。In view of this, embodiments of the present invention provide a log service method and device based on a kubernetes cluster, which can save storage resources, simplify the log query process, improve log query efficiency, and improve user experience.
为实现上述目的,根据本发明实施例的第一方面,提供了一种基于kubernetes集群的日志服务方法,包括:In order to achieve the above purpose, according to the first aspect of the embodiments of the present invention, a log service method based on a kubernetes cluster is provided, including:
获取运行在kubernetes集群上的应用的运行状态;其中,应用对应的运行节点将应用在运行过程中生成的应用日志进行本地存储,得到本地应用日志集合;Obtain the running status of the application running on the kubernetes cluster; wherein, the running node corresponding to the application locally stores the application log generated by the application during the running process to obtain the local application log collection;
根据运行状态确定运行完成的应用,并将运行完成的应用对应的本地存储的应用日志进行云存储,得到云应用日志集合;Determine the completed application according to the running state, and store the locally stored application log corresponding to the completed application in the cloud to obtain a cloud application log collection;
响应于用户发起的应用日志查询请求,根据应用日志查询请求中包括的应用编号,依次查询本地应用日志集合和云应用日志集合,以确定目标应用日志,并将目标应用日志发送至用户。In response to the application log query request initiated by the user, according to the application number included in the application log query request, the local application log collection and the cloud application log collection are sequentially queried to determine the target application log, and the target application log is sent to the user.
进一步地,获取运行在kubernetes集群上的应用的运行状态的步骤包括:Further, the steps of obtaining the running status of the application running on the kubernetes cluster include:
定时从kubernetes集群中获取应用编号列表,其中,应用编号列表中各应用编号对应的运行状态均为正在kubernetes集群上运行。Obtain a list of application numbers from the kubernetes cluster at regular intervals. The running status corresponding to each application number in the application number list is running on the kubernetes cluster.
进一步地,根据运行状态确定运行完成的应用的步骤包括:Further, the step of determining the completed application according to the running state includes:
将应用编号列表和本地列表进行比对,对于应用编号列表与本地列表的补集内的应用,确定为运行完成的应用,其中,本地列表包括在kubernetes集群上申请运行的应用对应的应用编号。Compare the application number list with the local list, and determine the application in the complement of the application number list and the local list as the completed application, where the local list includes the application number corresponding to the application applied for running on the kubernetes cluster.
进一步地,在将运行完成的应用对应的本地存储的应用日志进行云存储,得到本地应用日志集合的步骤之后,还包括:Further, after performing the cloud storage of the locally stored application logs corresponding to the completed applications to obtain a set of local application logs, the method further includes:
从本地应用日志集合中,将运行完成的应用对应的应用日志进行删除。Delete the application log corresponding to the completed application from the local application log collection.
进一步地,应用为Spark应用,运行节点为多个,各运行节点将Spark应用在运行过程中生成的应用日志分别进行本地存储,得到各运行节点对应的本地应用日志集合。Further, the application is a Spark application, there are multiple running nodes, and each running node stores the application logs generated during the running process of the Spark application respectively, to obtain a local application log set corresponding to each running node.
进一步地,应用日志查询请求中还包括运行节点编号;Further, the application log query request also includes the running node number;
根据应用日志查询请求中包括的应用编号,依次查询本地应用日志集合和云应用日志集合,以确定目标应用日志的步骤还包括:The steps of sequentially querying the local application log collection and the cloud application log collection according to the application number included in the application log query request to determine the target application log further include:
根据日志查询请求中包括的应用编号和运行节点编号,依次查询运行节点编号对应的进行本地应用日志集合和云应用日志集合,以确定目标应用日志。According to the application number and the running node number included in the log query request, the local application log collection and the cloud application log collection corresponding to the running node number are sequentially queried to determine the target application log.
根据本发明实施例的第二方面,提供了一种基于kubernetes集群的日志服务装置,包括运行状态获取模块、日志存储模块和日志查询模块;其中,According to a second aspect of the embodiments of the present invention, a log service device based on a kubernetes cluster is provided, including a running state acquisition module, a log storage module, and a log query module; wherein,
运行状态获取模块,用于获取运行在kubernetes集群上的应用的运行状态,并将获取到的运行状态发送至日志存储模块,其中,应用对应的运行节点将应用在运行过程中生成的应用日志进行本地存储,得到本地应用日志集合;The running status obtaining module is used to obtain the running status of the application running on the kubernetes cluster, and send the obtained running status to the log storage module, where the running node corresponding to the application will process the application log generated by the application during the running process. Local storage, get the local application log collection;
日志存储模块,用于根据运行状态确定运行完成的应用,并将运行完成的应用对应的本地存储的应用日志进行云存储,得到云应用日志集合;The log storage module is used to determine the completed application according to the running state, and store the locally stored application log corresponding to the completed application in the cloud to obtain a cloud application log collection;
日志查询模块,用于响应于用户发起的应用日志查询请求,根据应用日志查询请求中包括的应用编号,依次查询本地应用日志集合和云应用日志集合,以确定目标应用日志,并将目标应用日志发送至用户。The log query module is used to query the local application log collection and the cloud application log collection in turn according to the application number included in the application log query request in response to the application log query request initiated by the user, so as to determine the target application log, and store the target application log. sent to the user.
进一步地,应用为Spark应用,运行节点为多个,各运行节点将Spark应用在运行过程中生成的应用日志分别进行本地存储,得到各运行节点对应的本地应用日志集合。Further, the application is a Spark application, there are multiple running nodes, and each running node stores the application logs generated during the running process of the Spark application respectively, to obtain a local application log set corresponding to each running node.
根据本发明实施例的第三方面,提供了一种电子设备,包括:According to a third aspect of the embodiments of the present invention, an electronic device is provided, including:
一个或多个处理器;one or more processors;
存储装置,用于存储一个或多个程序,storage means for storing one or more programs,
当一个或多个程序被一个或多个处理器执行,使得一个或多个处理器实现如上述任一种基于kubernetes集群的日志服务方法。When one or more programs are executed by one or more processors, the one or more processors implement any of the above-mentioned log service methods based on a kubernetes cluster.
根据本发明实施例的第四方面,提供了一种计算机可读介质,其上存储有计算机程序,该程序被处理器执行时实现如上述任一种基于kubernetes集群的日志服务方法。According to a fourth aspect of the embodiments of the present invention, there is provided a computer-readable medium on which a computer program is stored, and when the program is executed by a processor, implements any of the foregoing Kubernetes cluster-based log service methods.
上述发明中的一个实施例具有如下优点或有益效果:因为采用获取运行在kubernetes集群上的应用的运行状态;其中,应用对应的运行节点将应用在运行过程中生成的应用日志进行本地存储,得到本地应用日志集合;根据运行状态确定运行完成的应用,并将运行完成的应用对应的本地存储的应用日志进行云存储,得到云应用日志集合;响应于用户发起的应用日志查询请求,根据应用日志查询请求中包括的应用编号,依次查询本地应用日志集合和云应用日志集合,以确定目标应用日志,并将目标应用日志发送至用户的技术手段,所以克服了现有的在kubernetes集群中运行应用的日志服务方法由于主要采用传统分布式日志解决方案,耗费了存储资源,日志查询效率低的技术问题,进而达到节约存储资源,简化日志查询流程,提高日志查询效率,提升用户体验的技术效果;进一步地,上述应用为Spark应用,解决了现有技术中Spark应用在kubernetes集群运行时,日志需要通过特定页面、搜索、查询、展示等组件进行查询并展示,日志查询流程复杂,导致用户体验差的技术问题,进而达到提升用户体验的技术效果。An embodiment of the above invention has the following advantages or beneficial effects: because the running state of the application running on the kubernetes cluster is obtained; wherein, the running node corresponding to the application locally stores the application log generated by the application during the running process to obtain Local application log collection; determine the completed application according to the running state, and store the locally stored application log corresponding to the completed application in the cloud to obtain the cloud application log collection; in response to the application log query request initiated by the user, according to the application log Query the application number included in the request, query the local application log collection and the cloud application log collection in turn, to determine the target application log, and send the target application log to the user. The log service method mainly adopts the traditional distributed log solution, which consumes storage resources and the technical problem of low log query efficiency, thereby saving storage resources, simplifying the log query process, improving log query efficiency, and improving the technical effect of user experience; Further, the above application is a Spark application, which solves the problem that in the prior art, when the Spark application is running in a kubernetes cluster, the logs need to be queried and displayed through specific pages, search, query, display and other components, and the log query process is complicated, resulting in poor user experience. technical problems, and then achieve the technical effect of improving the user experience.
上述的非惯用的可选方式所具有的进一步效果将在下文中结合具体实施方式加以说明。Further effects of the above non-conventional alternatives will be described below in conjunction with specific embodiments.
附图说明Description of drawings
附图用于更好地理解本发明,不构成对本发明的不当限定。其中:The accompanying drawings are used for better understanding of the present invention and do not constitute an improper limitation of the present invention. in:
图1是根据本发明第一实施例提供的基于kubernetes集群的日志服务方法的主要流程的示意图;1 is a schematic diagram of the main process of a log service method based on a kubernetes cluster provided according to a first embodiment of the present invention;
图2是根据本发明第二实施例提供的基于kubernetes集群的日志服务方法的主要流程的示意图;2 is a schematic diagram of the main process of a log service method based on a kubernetes cluster provided according to a second embodiment of the present invention;
图3是图2所述方法对应的一具体实施方式的流程示意图;3 is a schematic flowchart of a specific embodiment corresponding to the method described in FIG. 2;
图4是根据本发明实施例提供的基于kubernetes集群的日志服务装置的主要模块的示意图;4 is a schematic diagram of main modules of a log service device based on a kubernetes cluster provided according to an embodiment of the present invention;
图5是本发明实施例可以应用于其中的示例性系统架构图;5 is an exemplary system architecture diagram to which an embodiment of the present invention may be applied;
图6是适于用来实现本发明实施例的终端设备或服务器的计算机系统的结构示意图。FIG. 6 is a schematic structural diagram of a computer system suitable for implementing a terminal device or a server according to an embodiment of the present invention.
具体实施方式Detailed ways
以下结合附图对本发明的示范性实施例做出说明,其中包括本发明实施例的各种细节以助于理解,应当将它们认为仅仅是示范性的。因此,本领域普通技术人员应当认识到,可以对这里描述的实施例做出各种改变和修改,而不会背离本发明的范围和精神。同样,为了清楚和简明,以下的描述中省略了对公知功能和结构的描述。Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding and should be considered 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 from the following description for clarity and conciseness.
图1是根据本发明第一实施例提供的基于kubernetes集群的日志服务方法的主要流程的示意图;本发明实施例的日志服务方法主要涉及对应用日志的收集(存储)、查询及展示。如图1所示,本发明实施例提供的基于kubernetes集群的日志服务方法主要包括:1 is a schematic diagram of the main process of a log service method based on a kubernetes cluster provided according to a first embodiment of the present invention; the log service method according to the embodiment of the present invention mainly involves collection (storage), query and display of application logs. As shown in FIG. 1, the log service method based on the kubernetes cluster provided by the embodiment of the present invention mainly includes:
步骤S101,获取运行在kubernetes集群上的应用的运行状态;其中,应用对应的运行节点将应用在运行过程中生成的应用日志进行本地存储,得到本地应用日志集合。Step S101 , obtaining the running status of the application running on the kubernetes cluster; wherein, the running node corresponding to the application locally stores the application log generated during the running process of the application to obtain a local application log set.
现有技术中,对于运行在kubernetes集群上应用的应用日志的收集,主要是通过ELK等传统的分布式日志采集方案,即重新搭建一套挂载多个组件(包含日志收集组件、日志存储管理组件、日志分析展示组件等,各组件之间架构复杂、耦合度较高)的日志服务系统,如针对日志的存储,通过将运行在kubernetes集群上的应用生成的应用日志挂载在网络存储上进行存储,常在应用运行时导致应用启动延时,还使得应用启动失败率较高。In the prior art, the collection of application logs of applications running on the kubernetes cluster is mainly through traditional distributed log collection solutions such as ELK, that is, to rebuild a set of multiple components (including log collection components, log storage management, etc.) Components, log analysis display components, etc., log service systems with complex architecture and high coupling between components, such as log storage, by mounting application logs generated by applications running on kubernetes clusters on network storage For storage, the application startup delay is often caused when the application is running, and the application startup failure rate is high.
本发明实施中,针对应用对应的运行节点,挂载本地存储装置,使得运行节点能够将应用运行过程中生成的应用日志,直接进行本地存储。由于本地存储的速度较快,提高了日志存储效率,解决kubernetes集群多个应用同时运行导致的存储故障问题。In the implementation of the present invention, a local storage device is mounted for the running node corresponding to the application, so that the running node can directly store the application log generated during the running of the application locally. Due to the faster local storage speed, the log storage efficiency is improved, and the storage failure problem caused by the simultaneous operation of multiple applications in the kubernetes cluster is solved.
进一步地,根据本发明实施例,上述获取运行在kubernetes集群上的应用的运行状态的步骤包括:Further, according to an embodiment of the present invention, the above step of acquiring the running status of an application running on a kubernetes cluster includes:
定时从kubernetes集群中获取应用编号列表,其中,应用编号列表中各应用编号对应的运行状态均为正在kubernetes集群上运行。Obtain a list of application numbers from the kubernetes cluster at regular intervals. The running status corresponding to each application number in the application number list is running on the kubernetes cluster.
在实际运行过程中,运行状态包括“正在运行”(running,运行中)、“运行重试中”、“运行失败”、“提交中”、“运行成功”(其中,后四种状态均表示在一定阶段或者全部运行完成),以及其他中间状态,并不仅仅是“正在运行”和“运行完成”两种状态,通过上述设置,获取运行状态为“正在运行”的应用编号列表,能够准确获取正在运行的应用,进而可以确定没有在运行的应用。有利于对“未处于运行状态”的应用对应的应用日志进行收集,有利于避免应用日志的丢失。In the actual running process, the running status includes "running" (running, running), "running retrying", "running failure", "submitting", "running successfully" (wherein, the last four statuses all indicate At a certain stage or all running completed), and other intermediate states, not just two states of "running" and "running complete", through the above settings, the list of application numbers whose running state is "running" can be accurately obtained. Get running apps, so you can determine which apps aren't running. It is beneficial to collect application logs corresponding to applications that are "not running", and is beneficial to avoid the loss of application logs.
步骤S102,根据运行状态确定运行完成的应用,并将运行完成的应用对应的本地存储的应用日志进行云存储,得到云应用日志集合。Step S102 , determining the completed application according to the running state, and storing the locally stored application log corresponding to the completed application in the cloud to obtain a cloud application log set.
具体地,根据本发明实施例,上述根据运行状态确定运行完成的应用的步骤包括:Specifically, according to an embodiment of the present invention, the above step of determining an application that has completed execution according to the running state includes:
将应用编号列表和本地列表进行比对,对于应用编号列表与本地列表的补集内的应用,确定为运行完成的应用,其中,本地列表包括在kubernetes集群上申请运行的应用对应的应用编号。Compare the application number list with the local list, and determine the application in the complement of the application number list and the local list as the completed application, where the local list includes the application number corresponding to the application applied for running on the kubernetes cluster.
本地列表中记载了在kubernetes集群提交申请运行的全部应用编号,通过将正在运行的应用对应的应用编号列表与本地列表进行比对,两者的补集为“未处于正在运行状态”的应用,即运行完成的应用,对于该类型应用所对应的应用日志,从本地存储装置中将其转移至云存储装置中,以便于后续进行日志查询。The local list records all application numbers submitted for running in the kubernetes cluster. By comparing the application number list corresponding to the running application with the local list, the complement of the two is the application that is "not running". That is, for an application that has been run, the application log corresponding to this type of application is transferred from the local storage device to the cloud storage device, so as to facilitate subsequent log query.
进一步地,根据本发明实施例的一具体实施方式,还可以从本地列表中确定一个第一应用编号,查看接收到的“正在运行的应用对应的应用编号列表”中是否存在该第一应用编号,若存在,则表示该第一应用编号对应的应用处于“正在运行”状态;若不存在,则可将该第一应用编号在本地存储装置对应的应用日志进行云存储。Further, according to a specific implementation of the embodiment of the present invention, a first application number can also be determined from the local list, and it is checked whether the first application number exists in the received "application number list corresponding to the running application". , if it exists, it means that the application corresponding to the first application number is in the "running" state; if it does not exist, the first application number can be cloud-stored in the application log corresponding to the local storage device.
进一步地,根据本发明实施例,在将运行完成的应用对应的本地存储的应用日志进行云存储,得到本地应用日志集合的步骤之后,还包括:从本地应用日志集合中,将运行完成的应用对应的应用日志进行删除。Further, according to the embodiment of the present invention, after the step of storing the locally stored application log corresponding to the completed application in the cloud to obtain the local application log set, the method further includes: from the local application log set, storing the running application log in the cloud. The corresponding application log is deleted.
通过上述设置,本地存储装置内相应的应用日志进行云存储后,将本地存储装置内相应的应用日志进行删除,能够释放本地存储装置的存储空间,降低运行节点的负担,以避免由于本地存储空间不足,影响了运行节点的运行效率。Through the above settings, after the corresponding application logs in the local storage device are stored in the cloud, the corresponding application logs in the local storage device are deleted, which can free up the storage space of the local storage device, reduce the burden of running nodes, and avoid the need for local storage space. Insufficient, affecting the operating efficiency of the running node.
步骤S103,响应于用户发起的应用日志查询请求,根据应用日志查询请求中包括的应用编号,依次查询本地应用日志集合和云应用日志集合,以确定目标应用日志,并将目标应用日志发送至用户。Step S103, in response to the application log query request initiated by the user, according to the application number included in the application log query request, sequentially query the local application log collection and the cloud application log collection to determine the target application log, and send the target application log to the user. .
具体地,根据本发明实施例,应用日志查询请求中还可以包括应用运行时间(对于以运行时间作为存储文件命名的应用日志而言,可以提高查询到目标应用日志的效率和准确率)。Specifically, according to the embodiment of the present invention, the application log query request may further include the application running time (for the application log named with the running time as the storage file, the efficiency and accuracy of querying the target application log can be improved).
进一步地,根据本发明实施例,上述应用为Spark应用,运行节点为多个,各运行节点将应用在运行过程中生成的应用日志分别进行本地存储,得到各运行节点对应的本地应用日志集合。Further, according to the embodiment of the present invention, the above application is a Spark application, there are multiple running nodes, and each running node stores application logs generated during the running process of the application respectively, to obtain a local application log set corresponding to each running node.
根据本发明实施例,上述应用为分布式计算程序,优选为Spark应用。分布式计算程序涉及的计算量大,需要多个运行节点协同作用,更适用在kubernetes集群上运行。According to the embodiment of the present invention, the above application is a distributed computing program, preferably a Spark application. Distributed computing programs involve a large amount of computation and require the synergy of multiple running nodes, and are more suitable for running on kubernetes clusters.
Spark应用作为是一个流行的大数据计算框架,应用范围十分广泛,由于现有技术中,Spark应用运行在Yarn(另一种调度框架)集群中,但由于Yarn的扩展性不足,灵活性较低,资源利用率不高,不能很好的实现离线和在线的混合部署。通过Spark应用与kubernetes集群(管理云平台中多个主机上的容器化的应用)的结合,既可以统一调度框架、优化计算流程,又可以实现在线服务与离线服务的混合部署。Spark application is a popular big data computing framework with a wide range of applications. In the existing technology, Spark applications run in Yarn (another scheduling framework) cluster, but due to Yarn's insufficient scalability and low flexibility , the resource utilization rate is not high, and the hybrid deployment of offline and online cannot be well realized. Through the combination of Spark application and kubernetes cluster (a containerized application that manages multiple hosts in the cloud platform), it can not only unify the scheduling framework, optimize the computing process, but also realize the hybrid deployment of online and offline services.
优选地,根据本发明实施例,应用日志查询请求中还包括运行节点编号;上述根据应用日志查询请求中包括的应用编号,依次查询本地应用日志集合和云应用日志集合,以确定目标应用日志的步骤还包括:Preferably, according to the embodiment of the present invention, the application log query request further includes the running node number; the above-mentioned according to the application number included in the application log query request, the local application log collection and the cloud application log collection are sequentially queried to determine the target application log. Steps also include:
根据日志查询请求中包括的应用编号和运行节点编号,依次查询运行节点编号对应的进行本地应用日志集合和云应用日志集合,以确定目标应用日志。According to the application number and the running node number included in the log query request, the local application log collection and the cloud application log collection corresponding to the running node number are sequentially queried to determine the target application log.
具体地,应用启动后,会分配为多个运行节点分别分配task(任务),由该多个运行节点分别执行部分运行任务,在应用日志查询请求中进一步指定运行节点编号,可以获取该运行节点对应的目标应用日志,进而可根据该目标应用日志确定应用在该运行节点上的运行状况、资源使用状况等,实现对应用在各运行节点的运行健康状况的监控和排查。Specifically, after the application is started, it will be assigned tasks (tasks) for multiple running nodes, and the multiple running nodes will execute part of the running tasks respectively, and the running node number can be further specified in the application log query request, and the running node can be obtained. The corresponding target application log, and then the running status and resource usage status of the application on the running node can be determined according to the target application log, so as to monitor and check the running health status of the application on each running node.
根据本发明实施例的技术方案,因为采用获取运行在kubernetes集群上的应用的运行状态;其中,应用对应的运行节点将应用在运行过程中生成的应用日志进行本地存储,得到本地应用日志集合;根据运行状态确定运行完成的应用,并将运行完成的应用对应的本地存储的应用日志进行云存储,得到云应用日志集合;响应于用户发起的应用日志查询请求,根据应用日志查询请求中包括的应用编号,依次查询本地应用日志集合和云应用日志集合,以确定目标应用日志,并将目标应用日志发送至用户的技术手段,所以克服了现有的在kubernetes集群中运行应用的日志服务方法由于主要采用传统分布式日志解决方案,耗费了存储资源,日志查询效率低的技术问题,进而达到节约存储资源,简化日志查询流程,提高日志查询效率,提升用户体验的技术效果;进一步地,上述应用为Spark应用,解决了现有技术中Spark应用在kubernetes集群运行时,日志需要通过特定页面、搜索、查询、展示等组件进行查询并展示,日志查询流程复杂,导致用户体验差的技术问题,进而达到提升用户体验的技术效果。According to the technical solution of the embodiment of the present invention, because the running state of the application running on the kubernetes cluster is obtained by adopting; wherein, the running node corresponding to the application locally stores the application log generated by the application during the running process to obtain a local application log collection; Determine the completed application according to the running state, and store the locally stored application log corresponding to the completed application in the cloud to obtain the cloud application log collection; in response to the application log query request initiated by the user, according to the application log query request included Application number, query the local application log collection and the cloud application log collection in turn, to determine the target application log, and send the target application log to the user. The traditional distributed log solution is mainly used, which consumes storage resources and the technical problem of low log query efficiency, thereby saving storage resources, simplifying the log query process, improving log query efficiency, and improving the technical effect of user experience; further, the above application For Spark applications, it solves the technical problems in the prior art that when Spark applications run in a kubernetes cluster, logs need to be queried and displayed through specific pages, search, query, display and other components, and the log query process is complicated, resulting in poor user experience. To achieve the technical effect of improving the user experience.
图2是根据本发明第二实施例提供的基于kubernetes集群的日志服务方法的主要流程的示意图;本发明实施例的应用场景是运行在kubernetes集群的Spark的日志服务方法,如图2所示,主要包括:FIG. 2 is a schematic diagram of the main process of a log service method based on a kubernetes cluster provided according to a second embodiment of the present invention; the application scenario of the embodiment of the present invention is a log service method of Spark running on a kubernetes cluster, as shown in FIG. 2 , mainly include:
步骤S201,定时从kubernetes集群中获取应用编号列表,其中,应用编号列表中各应用编号对应的运行状态均为正在kubernetes集群上运行。Step S201 , obtain a list of application numbers from the kubernetes cluster at regular intervals, wherein the running states corresponding to each application number in the application number list are all running on the kubernetes cluster.
具体地,Spark应用运行在kubernetes集群上,Spark应用在多个运行节点上运行,各运行节点将运行过程中生成的应用日志进行本地存储,得到本地应用日志集合。具体地,根据本发明实施例的一具体实施方式,如图3所示,Spark通过submit(提交程序)向kubernetes集群提交运行申请后,通过driver(驱动程序)为多个运行节点(对于Spark为计算节点,executor,计算程序)分别分配多个task(任务),由各运行节点执行task的处理(即运行应用),并将运行过程中产生的应用日志存储至本地磁盘(localvolume),即进行本地存储。kubernetes集群通过SparkTaskSvc(运行状态获取模块),用于查询应用(可以具体到各运行节点)的运行状态。Specifically, the Spark application runs on the kubernetes cluster, and the Spark application runs on multiple running nodes. Each running node stores the application logs generated during the running process locally to obtain a local application log collection. Specifically, according to a specific implementation of the embodiment of the present invention, as shown in FIG. 3 , after Spark submits a running application to the kubernetes cluster through submit (submission program), it uses the driver (driver) for multiple running nodes (for Spark: Computing nodes, executors, computing programs) allocate multiple tasks (tasks) respectively, each running node executes the task processing (that is, running the application), and stores the application logs generated during the running process to the local disk (local volume), that is, local storage. The kubernetes cluster uses SparkTaskSvc (running status acquisition module) to query the running status of the application (which can be specific to each running node).
由于Spark在运行过程中存在多个中间状态,并不仅仅是“正在运行”和“运行完成”两种状态,通过上述设置,获取运行状态为“正在运行”的应用编号列表,能够准确获取正在运行的应用,进而可以确定没有在运行的应用。Since Spark has multiple intermediate states during the running process, not only two states of "running" and "running completed", through the above settings, the list of application numbers whose running state is "running" can be obtained accurately. Applications that are running, which in turn can determine applications that are not running.
进一步地,根据本发明实施例,上述应用不仅适用于Spark应用,对于分布式计算程序,由于其运行过程中涉及的计算量大,需要多个运行节点协同作用,均适用在kubernetes集群上运行。Further, according to the embodiments of the present invention, the above applications are not only applicable to Spark applications, but also to distributed computing programs, which require a large amount of computation involved in the running process and require the synergy of multiple running nodes, so they are all suitable for running on kubernetes clusters.
Spark应用作为是一个流行的大数据计算框架,应用范围十分广泛。由于现有技术中,Spark应用运行在Yarn(另一种调度框架)集群中,但由于Yarn的扩展性不足,灵活性较低,资源利用率不高,不能很好的实现离线和在线的混合部署。通过Spark应用与kubernetes集群(管理云平台中多个主机上的容器化的应用)的结合,既可以统一调度框架、优化计算流程,又可以实现在线服务与离线服务的混合部署。Spark application is a popular big data computing framework with a wide range of applications. In the prior art, Spark applications run in Yarn (another scheduling framework) cluster, but due to Yarn's lack of scalability, low flexibility, and low resource utilization, it cannot well achieve a mix of offline and online. deploy. Through the combination of Spark application and kubernetes cluster (a containerized application that manages multiple hosts in the cloud platform), it can not only unify the scheduling framework, optimize the computing process, but also realize the hybrid deployment of online and offline services.
步骤S202,根据应用编号列表和第一应用编号,判断第一应用编号对应的应用是否运行完成。若是,即第一应用编号对应的应用运行完成,则执行步骤S203;若否,即第一应用编号对应的运行状态为“正在运行”,转到步骤S201。Step S202 , according to the list of application numbers and the first application number, determine whether the application corresponding to the first application number is finished running. If yes, that is, the application corresponding to the first application number is completed, step S203 is executed; if not, that is, the running state corresponding to the first application number is "running", and the process goes to step S201.
进一步地,根据本发明实施例,还可直接利用本地列表与上述应用编号列表进行比对,对于应用编号列表与本地列表的交集内的应用,确定为未运行完成的应用;对于应用编号列表与本地列表的补集内的应用,确定为运行完成的应用。由于本地列表中记载了在kubernetes集群提交申请运行的全部应用编号,通过将正在运行的应用对应的应用编号列表与本地列表进行比对,两者的补集为“未处于正在运行状态”的应用,对于该类型应用所对应的应用日志,从本地存储装置中将其转移至云存储装置中,以便于后续进行日志查询。Further, according to the embodiment of the present invention, the local list can also be directly compared with the above-mentioned application number list, and the application in the intersection of the application number list and the local list is determined to be an application that has not been completed; The application in the complement of the local list is determined as the completed application. Since the local list records all application numbers submitted for running in the kubernetes cluster, by comparing the application number list corresponding to the running application with the local list, the complement of the two is the application "not running" , for the application log corresponding to this type of application, transfer it from the local storage device to the cloud storage device, so as to facilitate subsequent log query.
步骤S203,确定第一应用编号在本地存储装置对应的应用日志,对其进行云存储,并将本地存储装置中相应的应用日志进行删除。Step S203: Determine the application log corresponding to the first application number in the local storage device, perform cloud storage for it, and delete the corresponding application log in the local storage device.
通过上述设置,本地存储装置内相应的应用日志进行云存储后,将本地存储装置内的相应应用日志进行删除,能够释放本地存储装置的存储空间,降低运行节点的负担,以避免由于本地存储空间不足,影响了运行节点的运行效率。具体地,根据本发明实施例的一具体实施方式,通过设置cleaner(清洗模块,相当于后文中的日志存储模块,可在kubernetes集群的每个node节点中进行设置),cleaner(日志存储模块)从SparkTaskSvc(运行状态获取模块)处获取运行状态,并将“运行完成”的应用对应的应用日志进行云存储(存储至CS,cloud storage,云存储),同时,将本地磁盘(localvolume)中的相应应用日志进行删除。Through the above settings, after the corresponding application logs in the local storage device are stored in the cloud, the corresponding application logs in the local storage device are deleted, which can release the storage space of the local storage device, reduce the burden on the operating node, and avoid the need for local storage space. Insufficient, affecting the operating efficiency of the running node. Specifically, according to a specific implementation of the embodiment of the present invention, by setting a cleaner (cleaning module, which is equivalent to the log storage module in the following, it can be set in each node of the kubernetes cluster), cleaner (log storage module) Obtain the running status from SparkTaskSvc (running status acquisition module), and store the application log corresponding to the "running completed" application to the cloud (store to CS, cloud storage, cloud storage), and at the same time, store the application log in the local disk (localvolume) The corresponding application log is deleted.
步骤S204,响应于用户发起的应用日志查询请求,根据日志查询请求中包括的应用编号和运行节点编号,依次查询运行节点编号对应的进行本地应用日志集合和云应用日志集合,以确定目标应用日志。Step S204, in response to the application log query request initiated by the user, according to the application number and the running node number included in the log query request, sequentially query the local application log set and the cloud application log set corresponding to the running node number to determine the target application log. .
具体地,根据本发明实施例,应用日志查询请求中还可以包括应用运行时间(对于以运行时间作为存储文件命名的应用日志而言,可以提高查询到目标应用日志的效率和准确率)。Specifically, according to the embodiment of the present invention, the application log query request may further include the application running time (for the application log named with the running time as the storage file, the efficiency and accuracy of querying the target application log can be improved).
通过上述设置,可以获取该运行节点对应的目标应用日志,进而可根据该目标应用日志确定应用在该运行节点上的运行状况、资源使用状况等,实现对应用在各运行节点的运行健康状况的监控和排查。具体地,如图3所示,根据本发明实施例的一具体实施方式,通过设置log service(日志查询模块,提供日志查询服务),其接收到用户发起的日志查询请求后,根据日志查询请求中指示的信息(包括的应用编号和运行节点编号),依次查询本地磁盘和云存储装置,以确定目标应用日志。Through the above settings, the target application log corresponding to the running node can be obtained, and then the running status and resource usage status of the application on the running node can be determined according to the target application log, so as to realize the running health status of the application on each running node. Monitoring and troubleshooting. Specifically, as shown in FIG. 3, according to a specific implementation of the embodiment of the present invention, by setting the log service (log query module, providing log query service), after receiving the log query request initiated by the user, the log query request The information indicated in (including the application number and the running node number), query the local disk and cloud storage device in turn to determine the target application log.
步骤S205,将目标应用日志发送至用户。Step S205, sending the target application log to the user.
具体地,如图3所示,根据本发明实施例的一具体实施方式,用户可以通过Spark应用的SparkUI或HistoryServer(历史服务程序)发起日志查询请求(HistoryServer和SparkUI页面提供了一套可供用户使用的web ui用户界面(该界面提供了各运行节点的日志查询链接),用于监控Spark应用的运行状态和kubernetes集群的资源消耗等,一般地,针对运行中的应用任务使用SparkUI,针对已完成的应用任务使用Histo ryServer)。用户可通过页面发起包括应用运行时间、应用编号、运行节点编号的日志查询请求至log service(日志查询模块),接收log ser vice返回的目标应用日志,最终SparkUI或HistoryServer页面向用户展示该目标应用日志。通过上述设置,应用日志的查询过程对用户是隐藏的,保留了用户以往在Yarn等调度框架下,通过SparkUI或HistoryServe r页面查看应用日志的习惯,提升了用户体验。Specifically, as shown in FIG. 3, according to a specific implementation of the embodiment of the present invention, a user can initiate a log query request through the SparkUI or HistoryServer (history service program) of the Spark application (HistoryServer and SparkUI pages provide a set of The web ui user interface used (this interface provides the log query link of each running node) is used to monitor the running status of the Spark application and the resource consumption of the kubernetes cluster. Completed application tasks use HistoryServer). The user can initiate a log query request including the application running time, application number, and running node number to the log service (log query module) through the page, receive the target application log returned by the log service, and finally display the target application to the user on the SparkUI or HistoryServer page. log. Through the above settings, the query process of application logs is hidden from users, which retains the user's habit of viewing application logs through SparkUI or HistoryServer page under scheduling frameworks such as Yarn, which improves user experience.
根据本发明实施例的技术方案,因为采用获取运行在kubernetes集群上的应用的运行状态;其中,应用对应的运行节点将应用在运行过程中生成的应用日志进行本地存储,得到本地应用日志集合;根据运行状态确定运行完成的应用,并将运行完成的应用对应的本地存储的应用日志进行云存储,得到云应用日志集合;响应于用户发起的应用日志查询请求,根据应用日志查询请求中包括的应用编号,依次查询本地应用日志集合和云应用日志集合,以确定目标应用日志,并将目标应用日志发送至用户的技术手段,所以克服了现有的在kubernetes集群中运行应用的日志服务方法由于主要采用传统分布式日志解决方案,耗费了存储资源,日志查询效率低的技术问题,进而达到节约存储资源,简化日志查询流程,提高日志查询效率,提升用户体验的技术效果;进一步地,上述应用为Spark应用,解决了现有技术中Spark应用在kubernetes集群运行时,日志需要通过特定页面、搜索、查询、展示等组件进行查询并展示,日志查询流程复杂,导致用户体验差的技术问题,进而达到提升用户体验的技术效果。According to the technical solution of the embodiment of the present invention, because the running state of the application running on the kubernetes cluster is obtained by adopting; wherein, the running node corresponding to the application locally stores the application log generated by the application during the running process to obtain a local application log collection; Determine the completed application according to the running state, and store the locally stored application log corresponding to the completed application in the cloud to obtain the cloud application log collection; in response to the application log query request initiated by the user, according to the application log query request included Application number, query the local application log collection and the cloud application log collection in turn, to determine the target application log, and send the target application log to the user. The traditional distributed log solution is mainly used, which consumes storage resources and the technical problem of low log query efficiency, thereby saving storage resources, simplifying the log query process, improving log query efficiency, and improving the technical effect of user experience; further, the above application For Spark applications, it solves the technical problems in the prior art that when Spark applications run in a kubernetes cluster, logs need to be queried and displayed through specific pages, search, query, display and other components, and the log query process is complicated, resulting in poor user experience. To achieve the technical effect of improving the user experience.
图4是根据本发明实施例提供的基于kubernetes集群的日志服务装置的主要模块的示意图;如图4所示,本发明实施例提供的基于kuber netes集群的日志服务装置400主要包括:Fig. 4 is a schematic diagram of main modules of a kubernetes cluster-based log service device provided according to an embodiment of the present invention; as shown in Fig. 4 , the kubernetes cluster-based
运行状态获取模块401,用于获取运行在kubernetes集群上的应用的运行状态;其中,应用对应的运行节点将应用在运行过程中生成的应用日志进行本地存储,得到本地应用日志集合。The running
本发明实施中,针对应用对应的运行节点,挂载本地存储装置,使得运行节点能够将应用运行过程中生成的应用日志,直接进行本地存储。由于本地存储的速度较快,提高了日志存储效率,解决kubernet es集群多个应用同时运行导致的存储故障问题。In the implementation of the present invention, a local storage device is mounted for the running node corresponding to the application, so that the running node can directly store the application log generated during the running of the application locally. Due to the faster local storage speed, the log storage efficiency is improved, and the storage failure problem caused by the simultaneous operation of multiple applications in the Kubernetes cluster is solved.
进一步地,根据本发明实施例,上述运行状态获取模块401还用于:定时从kubernetes集群中获取应用编号列表,其中,应用编号列表中各应用编号对应的运行状态均为正在kubernetes集群上运行。Further, according to the embodiment of the present invention, the above-mentioned operating
在实际运行过程中,运行状态并不仅仅是“正在运行”和“运行成功”两种状态,通过上述设置,获取运行状态为“正在运行”的应用编号列表,能够准确获取正在运行的应用,进而可以确定没有在运行的应用。有利于对“未处于运行状态”的应用对应的应用日志进行收集,有利于避免应用日志的丢失。In the actual running process, the running status is not only two statuses of "running" and "running successfully". Through the above settings, the number list of applications whose running status is "running" can be obtained, and the running applications can be accurately obtained. In turn, it is possible to determine which applications are not running. It is beneficial to collect application logs corresponding to applications that are "not running", and is beneficial to avoid the loss of application logs.
日志存储模块402,用于根据运行状态确定运行完成的应用,并将运行完成的应用对应的本地存储的应用日志进行云存储,得到云应用日志集合。The
具体地,根据本发明实施例,上述日志存储模块402还用于:Specifically, according to the embodiment of the present invention, the above
将应用编号列表和本地列表进行比对,对于应用编号列表与本地列表的补集内的应用,确定为运行完成的应用,其中,本地列表包括在kubernetes集群上申请运行的应用对应的应用编号。Compare the application number list with the local list, and determine the application in the complement of the application number list and the local list as the completed application, where the local list includes the application number corresponding to the application applied for running on the kubernetes cluster.
本地列表中记载了在kubernetes集群提交申请运行的全部应用编号,通过将正在运行的应用对应的应用编号列表与本地列表进行比对,两者的补集为“未处于正在运行状态”的应用,对于该类型应用所对应的应用日志,从本地存储装置中将其转移至云存储装置中,以便于后续进行日志查询。The local list records all application numbers submitted for running in the kubernetes cluster. By comparing the application number list corresponding to the running application with the local list, the complement of the two is the application that is "not running". For the application log corresponding to this type of application, it is transferred from the local storage device to the cloud storage device, so as to facilitate subsequent log query.
进一步地,根据本发明实施例,在将运行完成的应用对应的本地存储的应用日志进行云存储,得到本地应用日志集合的步骤之后,上述日志存储模块402还用于:Further, according to the embodiment of the present invention, after the step of cloud storage of the locally stored application logs corresponding to the completed applications to obtain the local application log set, the above
从本地应用日志集合中,将运行完成的应用对应的应用日志进行删除。Delete the application log corresponding to the completed application from the local application log collection.
通过上述设置,本地存储装置内相应的应用日志进行云存储后,将本地存储装置内相应的应用日志进行删除,能够释放本地存储装置的存储空间,降低运行节点的负担,以避免由于本地存储空间不足,影响了运行节点的运行效率。Through the above settings, after the corresponding application logs in the local storage device are stored in the cloud, the corresponding application logs in the local storage device are deleted, which can free up the storage space of the local storage device, reduce the burden of running nodes, and avoid the need for local storage space. Insufficient, affecting the operating efficiency of the running node.
日志查询模块403,用于响应于用户发起的应用日志查询请求,根据应用日志查询请求中包括的应用编号,依次查询本地应用日志集合和云应用日志集合,以确定目标应用日志,并将目标应用日志发送至用户。The
具体地,根据本发明实施例,应用日志查询请求中还可以包括应用运行时间(对于以运行时间作为存储文件命名的应用日志而言,可以提高查询到目标应用日志的效率和准确率)。Specifically, according to the embodiment of the present invention, the application log query request may further include the application running time (for the application log named with the running time as the storage file, the efficiency and accuracy of querying the target application log can be improved).
进一步地,根据本发明实施例,上述应用为Spark应用,运行节点为多个,各运行节点将应用在运行过程中生成的应用日志分别进行本地存储,得到各运行节点对应的本地应用日志集合。Further, according to the embodiment of the present invention, the above application is a Spark application, there are multiple running nodes, and each running node stores application logs generated during the running process of the application respectively, to obtain a local application log set corresponding to each running node.
根据本发明实施例,上述应用为分布式计算程序,优选为Spark应用。分布式计算程序设计的计算量大,需要多个运行节点协同作用,更适用在kubernetes集群上运行。According to the embodiment of the present invention, the above application is a distributed computing program, preferably a Spark application. Distributed computing programs are designed with a large amount of computation and require the synergy of multiple running nodes, and are more suitable for running on Kubernetes clusters.
Spark应用作为是一个流行的大数据计算框架,应用范围十分广泛,现有技术中,Spark应用运行在Yarn(另一种调度框架)集群中,由于Yarn的扩展性不足,灵活性较低,资源利用率不高,不能很好的实现离线和在线的混合部署。通过Spark应用与kubernetes集群(管理云平台中多个主机上的容器化的应用)的结合,既可以统一调度框架、优化计算流程,又可以实现在线服务与离线服务的混合部署。Spark application, as a popular big data computing framework, has a wide range of applications. In the prior art, Spark applications run in Yarn (another scheduling framework) cluster. Due to Yarn's insufficient scalability, low flexibility, and resources The utilization rate is not high, and the hybrid deployment of offline and online cannot be well realized. Through the combination of Spark application and kubernetes cluster (a containerized application that manages multiple hosts in the cloud platform), it can not only unify the scheduling framework, optimize the computing process, but also realize the hybrid deployment of online and offline services.
优选地,根据本发明实施例,应用日志查询请求中还包括运行节点编号;上述日志查询模块403还用于:Preferably, according to the embodiment of the present invention, the application log query request further includes the running node number; the above
根据日志查询请求中包括的应用编号和运行节点编号,依次查询运行节点编号对应的进行本地应用日志集合和云应用日志集合,以确定目标应用日志。According to the application number and the running node number included in the log query request, the local application log collection and the cloud application log collection corresponding to the running node number are sequentially queried to determine the target application log.
具体地,应用启动后,会分配为多个运行节点分别分配task(任务),由该多个运行节点分别执行部分运行任务,在应用日志查询请求中进一步指定运行节点编号,可以获取该运行节点对应的目标应用日志,进而可根据该目标应用日志确定应用在该运行节点上的运行状况、资源使用状况等,实现对应用在各运行节点的运行健康状况的监控和排查。Specifically, after the application is started, it will be assigned tasks (tasks) for multiple running nodes, and the multiple running nodes will execute part of the running tasks respectively, and the running node number can be further specified in the application log query request, and the running node can be obtained. The corresponding target application log, and then the running status and resource usage status of the application on the running node can be determined according to the target application log, so as to monitor and check the running health status of the application on each running node.
根据本发明实施例的技术方案,因为采用获取运行在kubernetes集群上的应用的运行状态;其中,应用对应的运行节点将应用在运行过程中生成的应用日志进行本地存储,得到本地应用日志集合;根据运行状态确定运行完成的应用,并将运行完成的应用对应的本地存储的应用日志进行云存储,得到云应用日志集合;响应于用户发起的应用日志查询请求,根据应用日志查询请求中包括的应用编号,依次查询本地应用日志集合和云应用日志集合,以确定目标应用日志,并将目标应用日志发送至用户的技术手段,所以克服了现有的在kubernetes集群中运行应用的日志服务方法由于主要采用传统分布式日志解决方案,耗费了存储资源,日志查询效率低的技术问题,进而达到节约存储资源,简化日志查询流程,提高日志查询效率,提升用户体验的技术效果;进一步地,上述应用为Spark应用,解决了现有技术中Spark应用在kubernetes集群运行时,日志需要通过特定页面、搜索、查询、展示等组件进行查询并展示,日志查询流程复杂,导致用户体验差的技术问题,进而达到提升用户体验的技术效果。According to the technical solution of the embodiment of the present invention, because the running state of the application running on the kubernetes cluster is obtained by adopting; wherein, the running node corresponding to the application locally stores the application log generated by the application during the running process to obtain a local application log collection; Determine the completed application according to the running state, and store the locally stored application log corresponding to the completed application in the cloud to obtain the cloud application log collection; in response to the application log query request initiated by the user, according to the application log query request included Application number, query the local application log collection and the cloud application log collection in turn, to determine the target application log, and send the target application log to the user. The traditional distributed log solution is mainly used, which consumes storage resources and the technical problem of low log query efficiency, thereby saving storage resources, simplifying the log query process, improving log query efficiency, and improving the technical effect of user experience; further, the above application For Spark applications, it solves the technical problems in the prior art that when Spark applications run in a kubernetes cluster, logs need to be queried and displayed through specific pages, search, query, display and other components, and the log query process is complicated, resulting in poor user experience. To achieve the technical effect of improving the user experience.
图5示出了可以应用本发明实施例的基于kubernetes集群的日志服务方法或基于kubernetes集群的日志服务装置的示例性系统架构500。FIG. 5 shows an
如图5所示,系统架构500可以包括终端设备501、502、503,网络504和服务器505(此架构仅仅是示例,具体架构中包含的组件可以根据申请具体情况调整)。网络504用以在终端设备501、502、503和服务器505之间提供通信链路的介质。网络504可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in FIG. 5, the
用户可以使用终端设备501、502、503通过网络504与服务器505交互,以接收或发送消息等。终端设备501、502、503上可以安装有各种通讯客户端应用,例如大数据计算类应用、数据处理类应用、日志服务类应用等(仅为示例)。The user can use the
终端设备501、502、503可以是具有显示屏并且支持网页浏览的各种电子设备,包括但不限于智能手机、平板电脑、膝上型便携计算机和台式计算机等等。The
服务器505可以是提供各种服务的服务器,例如对用户利用终端设备501、502、503所浏览的购物类网站提供支持的后台管理服务器(仅为示例)。后台管理服务器可以对接收到的应用日志查询请求等数据进行分析等处理,并将处理结果(例如目标应用日志--仅为示例)反馈给终端设备。The
需要说明的是,本发明实施例所提供的基于kubernetes集群的日志服务方法一般由服务器505执行,相应地,基于kubernetes集群的日志服务装置一般设置于服务器505中。It should be noted that the log service method based on the kubernetes cluster provided by the embodiment of the present invention is generally executed by the
应该理解,图5中的终端设备、网络和服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、网络和服务器。It should be understood that the numbers of terminal devices, networks and servers in FIG. 5 are only illustrative. There can be any number of terminal devices, networks and servers according to implementation needs.
下面参考图6,其示出了适于用来实现本发明实施例的终端设备或服务器的计算机系统600的结构示意图。图6示出的终端设备或服务器仅仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。Referring to FIG. 6 below, it shows a schematic structural diagram of a
如图6所示,计算机系统600包括中央处理单元(CPU)601,其可以根据存储在只读存储器(ROM)602中的程序或者从存储部分608加载到随机访问存储器(RAM)603中的程序而执行各种适当的动作和处理。在RAM 603中,还存储有系统600操作所需的各种程序和数据。CPU 601、ROM 602以及RAM 603通过总线604彼此相连。输入/输出(I/O)接口605也连接至总线604。As shown in FIG. 6, a
以下部件连接至I/O接口605:包括键盘、鼠标等的输入部分606;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分607;包括硬盘等的存储部分608;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分609。通信部分609经由诸如因特网的网络执行通信处理。驱动器610也根据需要连接至I/O接口605。可拆卸介质611,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器610上,以便于从其上读出的计算机程序根据需要被安装入存储部分608。The following components are connected to the I/O interface 605: an
特别地,根据本发明公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本发明公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分609从网络上被下载和安装,和/或从可拆卸介质611被安装。在该计算机程序被中央处理单元(CPU)601执行时,执行本发明的系统中限定的上述功能。In particular, the processes described above with reference to the flowcharts may be implemented as computer software programs in accordance with the disclosed embodiments of the present invention. For example, embodiments disclosed herein include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods illustrated in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from the network via the
需要说明的是,本发明所示的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本发明中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本发明中,计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、RF等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. In the present invention, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present invention, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device . Program code embodied on a computer readable medium may be transmitted using any suitable medium including, but not limited to, wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
附图中的流程图和框图,图示了按照本发明各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,上述模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图或流程图中的每个方框、以及框图或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more functions for implementing the specified logical function(s) executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams or flowchart illustrations, and combinations of blocks in the block diagrams or flowchart illustrations, can be implemented in special purpose hardware-based systems that perform the specified functions or operations, or can be implemented using A combination of dedicated hardware and computer instructions is implemented.
描述于本发明实施例中所涉及到的模块可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的模块也可以设置在处理器中,例如,可以描述为:一种处理器包括运行状态获取模块、日志存储模块和日志查询模块。其中,这些模块的名称在某种情况下并不构成对该模块本身的限定,例如,运行状态获取模块还可以被描述为“用于获取运行在kubernetes集群上的应用的运行状态,并将获取到的运行状态发送至日志存储模块,其中,应用对应的运行节点将应用在运行过程中生成的应用日志进行本地存储,得到本地应用日志集合的模块”。The modules involved in the embodiments of the present invention may be implemented in a software manner, and may also be implemented in a hardware manner. The described module can also be set in the processor, for example, it can be described as: a processor includes a running state acquisition module, a log storage module and a log query module. Among them, the name of these modules does not constitute a limitation of the module itself under certain circumstances. For example, the running status acquisition module can also be described as "used to obtain the running status of the application running on the kubernetes cluster, and will obtain The obtained running status is sent to the log storage module, wherein the running node corresponding to the application locally stores the application log generated by the application during the running process, and obtains the module of the local application log collection.
作为另一方面,本发明还提供了一种计算机可读介质,该计算机可读介质可以是上述实施例中描述的设备中所包含的;也可以是单独存在,而未装配入该设备中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被一个该设备执行时,使得该设备包括:获取运行在kubernetes集群上的应用的运行状态;其中,应用对应的运行节点将应用在运行过程中生成的应用日志进行本地存储,得到本地应用日志集合;根据运行状态确定运行完成的应用,并将运行完成的应用对应的本地存储的应用日志进行云存储,得到云应用日志集合;响应于用户发起的应用日志查询请求,根据应用日志查询请求中包括的应用编号,依次查询本地应用日志集合和云应用日志集合,以确定目标应用日志,并将目标应用日志发送至用户。As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiments; or may exist alone without being assembled into the device. The above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by a device, the device includes: obtaining the running state of the application running on the kubernetes cluster; wherein, the corresponding running state of the application The node stores the application logs generated by the application during the running process locally, and obtains the local application log collection; determines the completed application according to the running status, and stores the locally stored application log corresponding to the completed application in the cloud to obtain the cloud application Log collection; in response to the application log query request initiated by the user, according to the application number included in the application log query request, sequentially query the local application log collection and the cloud application log collection to determine the target application log, and send the target application log to the user. .
根据本发明实施例的技术方案,因为采用获取运行在kubernetes集群上的应用的运行状态;其中,应用对应的运行节点将应用在运行过程中生成的应用日志进行本地存储,得到本地应用日志集合;根据运行状态确定运行完成的应用,并将运行完成的应用对应的本地存储的应用日志进行云存储,得到云应用日志集合;响应于用户发起的应用日志查询请求,根据应用日志查询请求中包括的应用编号,依次查询本地应用日志集合和云应用日志集合,以确定目标应用日志,并将目标应用日志发送至用户的技术手段,所以克服了现有的在kubernetes集群中运行应用的日志服务方法由于主要采用传统分布式日志解决方案,耗费了存储资源,日志查询效率低的技术问题,进而达到节约存储资源,简化日志查询流程,提高日志查询效率,提升用户体验的技术效果;进一步地,上述应用为Spark应用,解决了现有技术中Spark应用在kubernetes集群运行时,日志需要通过特定页面、搜索、查询、展示等组件进行查询并展示,日志查询流程复杂,导致用户体验差的技术问题,进而达到提升用户体验的技术效果。According to the technical solution of the embodiment of the present invention, because the running state of the application running on the kubernetes cluster is obtained by adopting; wherein, the running node corresponding to the application locally stores the application log generated by the application during the running process to obtain a local application log collection; Determine the completed application according to the running state, and store the locally stored application log corresponding to the completed application in the cloud to obtain the cloud application log collection; in response to the application log query request initiated by the user, according to the application log query request included Application number, query the local application log collection and the cloud application log collection in turn, to determine the target application log, and send the target application log to the user. The traditional distributed log solution is mainly used, which consumes storage resources and the technical problem of low log query efficiency, thereby saving storage resources, simplifying the log query process, improving log query efficiency, and improving the technical effect of user experience; further, the above application For Spark applications, it solves the technical problems in the prior art that when Spark applications run in a kubernetes cluster, logs need to be queried and displayed through specific pages, search, query, display and other components, and the log query process is complicated, resulting in poor user experience. To achieve the technical effect of improving the user experience.
上述具体实施方式,并不构成对本发明保护范围的限制。本领域技术人员应该明白的是,取决于设计要求和其他因素,可以发生各种各样的修改、组合、子组合和替代。任何在本发明的精神和原则之内所作的修改、等同替换和改进等,均应包含在本发明保护范围之内。The above-mentioned specific embodiments do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent replacements and improvements made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011103286.8A CN113760638B (en) | 2020-10-15 | 2020-10-15 | A log service method and device based on kubernetes cluster |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011103286.8A CN113760638B (en) | 2020-10-15 | 2020-10-15 | A log service method and device based on kubernetes cluster |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113760638A true CN113760638A (en) | 2021-12-07 |
CN113760638B CN113760638B (en) | 2024-12-06 |
Family
ID=78786036
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011103286.8A Active CN113760638B (en) | 2020-10-15 | 2020-10-15 | A log service method and device based on kubernetes cluster |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113760638B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114356718A (en) * | 2022-01-10 | 2022-04-15 | 网易(杭州)网络有限公司 | Log processing method, medium, system and computing device |
CN114500254A (en) * | 2022-02-16 | 2022-05-13 | 平安科技(深圳)有限公司 | Historical log collection method, device and storage medium |
WO2023226197A1 (en) * | 2022-05-26 | 2023-11-30 | 深圳前海环融联易信息科技服务有限公司 | Cloud native storage method and apparatus based on kubernetes, and device and medium |
CN118468046A (en) * | 2024-07-15 | 2024-08-09 | 山东高速建筑设计有限公司 | Building planning platform and application method thereof |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108153532A (en) * | 2017-12-26 | 2018-06-12 | 江苏润和软件股份有限公司 | A kind of cloud application dispositions method based on Web log mining |
CN109245931A (en) * | 2018-09-19 | 2019-01-18 | 四川长虹电器股份有限公司 | The log management of container cloud platform based on kubernetes and the implementation method of monitoring alarm |
CN110311817A (en) * | 2019-06-28 | 2019-10-08 | 四川长虹电器股份有限公司 | Container log processing system for Kubernetes cluster |
WO2020055905A1 (en) * | 2018-09-13 | 2020-03-19 | Pivotal Software, Inc. | Logging of events in a computing system hosting multiple applications |
CN110955578A (en) * | 2019-11-26 | 2020-04-03 | 深圳市信联征信有限公司 | Log collection method and device based on host machine, computer equipment and storage medium |
CN111104368A (en) * | 2019-12-16 | 2020-05-05 | 浪潮云信息技术有限公司 | Method and system for realizing storage capacity expansion of container |
-
2020
- 2020-10-15 CN CN202011103286.8A patent/CN113760638B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108153532A (en) * | 2017-12-26 | 2018-06-12 | 江苏润和软件股份有限公司 | A kind of cloud application dispositions method based on Web log mining |
WO2020055905A1 (en) * | 2018-09-13 | 2020-03-19 | Pivotal Software, Inc. | Logging of events in a computing system hosting multiple applications |
CN109245931A (en) * | 2018-09-19 | 2019-01-18 | 四川长虹电器股份有限公司 | The log management of container cloud platform based on kubernetes and the implementation method of monitoring alarm |
CN110311817A (en) * | 2019-06-28 | 2019-10-08 | 四川长虹电器股份有限公司 | Container log processing system for Kubernetes cluster |
CN110955578A (en) * | 2019-11-26 | 2020-04-03 | 深圳市信联征信有限公司 | Log collection method and device based on host machine, computer equipment and storage medium |
CN111104368A (en) * | 2019-12-16 | 2020-05-05 | 浪潮云信息技术有限公司 | Method and system for realizing storage capacity expansion of container |
Non-Patent Citations (2)
Title |
---|
翟雅荣;于金刚;: "基于Filebeat自动收集Kubernetes日志的分析系统", 计算机系统应用, no. 09, 15 September 2018 (2018-09-15) * |
郭建磊;董蕾;邱忠杰;: "一种工业云PaaS平台统一日志服务系统", 信息技术与信息化, no. 03, 28 March 2020 (2020-03-28) * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114356718A (en) * | 2022-01-10 | 2022-04-15 | 网易(杭州)网络有限公司 | Log processing method, medium, system and computing device |
CN114500254A (en) * | 2022-02-16 | 2022-05-13 | 平安科技(深圳)有限公司 | Historical log collection method, device and storage medium |
CN114500254B (en) * | 2022-02-16 | 2023-08-22 | 平安科技(深圳)有限公司 | Historical log collection method, device and storage medium |
WO2023226197A1 (en) * | 2022-05-26 | 2023-11-30 | 深圳前海环融联易信息科技服务有限公司 | Cloud native storage method and apparatus based on kubernetes, and device and medium |
CN118468046A (en) * | 2024-07-15 | 2024-08-09 | 山东高速建筑设计有限公司 | Building planning platform and application method thereof |
Also Published As
Publication number | Publication date |
---|---|
CN113760638B (en) | 2024-12-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111753997B (en) | Distributed training method, system, device and storage medium | |
CN113760638B (en) | A log service method and device based on kubernetes cluster | |
CN111831420A (en) | Method, apparatus, electronic device, and computer-readable storage medium for task scheduling | |
CN109245908B (en) | Method and device for switching master cluster and slave cluster | |
CN112181942B (en) | Time series database system and data processing method and device | |
CN111694646A (en) | Resource scheduling method and device, electronic equipment and computer readable storage medium | |
CN111859027A (en) | Graph computing method and device | |
CN110795446A (en) | List updating method and device, readable medium and electronic equipment | |
CN110659124A (en) | A message processing method and device | |
WO2019109923A1 (en) | Message processing method and system, storage medium and electronic device | |
CN110162410B (en) | A message processing method and device | |
CN109117252A (en) | Method, system and the container cluster management system of task processing based on container | |
CN110795315A (en) | Method and apparatus for monitoring services | |
CN111831461A (en) | A method and apparatus for processing business processes | |
CN112860505A (en) | Method and device for regulating and controlling distributed clusters | |
CN111782341B (en) | Method and device for managing clusters | |
CN111488268A (en) | Scheduling method and scheduling device for automated testing | |
CN110727694B (en) | Data processing method, device, electronic equipment and storage medium | |
CN111274032B (en) | Task processing system and method, and storage medium | |
CN111767126A (en) | System and method for distributed batch processing | |
CN112181937A (en) | Data transmission method and device | |
CN113821519B (en) | Data processing method and domain drive design architecture | |
CN114756173A (en) | Method, system, device and computer readable medium for file merging | |
CN110728009A (en) | Simulation method, apparatus and system | |
CN112559001B (en) | Method and device for updating application |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |