CN106445634A - Container monitoring method and device - Google Patents

Container monitoring method and device Download PDF

Info

Publication number
CN106445634A
CN106445634A CN201610842778.6A CN201610842778A CN106445634A CN 106445634 A CN106445634 A CN 106445634A CN 201610842778 A CN201610842778 A CN 201610842778A CN 106445634 A CN106445634 A CN 106445634A
Authority
CN
China
Prior art keywords
container
list
server
containers
attribute information
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.)
Pending
Application number
CN201610842778.6A
Other languages
Chinese (zh)
Inventor
白杨
骆树萌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Leshi Zhixin Electronic Technology Tianjin Co Ltd
LeTV Holding Beijing Co Ltd
Original Assignee
Leshi Zhixin Electronic Technology Tianjin Co Ltd
LeTV Holding Beijing Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Leshi Zhixin Electronic Technology Tianjin Co Ltd, LeTV Holding Beijing Co Ltd filed Critical Leshi Zhixin Electronic Technology Tianjin Co Ltd
Priority to CN201610842778.6A priority Critical patent/CN106445634A/en
Publication of CN106445634A publication Critical patent/CN106445634A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45591Monitoring or debugging support

Abstract

The embodiment of the invention discloses a container monitoring method and device and relates to the technical field of computers. The container monitoring method comprises the steps that a container list is obtained from a server; attribute information of all containers in the container list is obtained at preset regular time intervals. By the adoption of the container monitoring method and the device, all the containers on the server can be monitored by operating one monitoring program, the operation that one monitoring program is configured for the containers respectively is not needed, only corresponding feedback intervals are needed to be set for the containers, container operation monitoring can be achieved by obtaining the attribute information corresponding to the containers after the feedback intervals are reached, server resources are saved, the complex degree of the monitoring program is also reduced, and update and maintenance are promoted.

Description

A kind of monitoring method of container and device
Technical field
The present embodiments relate to field of computer technology, more particularly to a kind of monitoring method of container and device.
Background technology
Linux container is a kind of kernel Intel Virtualization Technology, it is provided that the virtualization of lightweight, so as to isolated process and money Source, and instruction explanation facility and other fully virtualized complexity need not be provided.It can be empty in single server Multiple mutually isolated performing environments are drawn up, the process for executing inside container, it is isolated in inside container by container technique, to entering Cheng Eryan is just as operating on a single server, and cannot perceive on the server in other containers or server On service.
With the popularization of linux container technology, increasing service is deployed to server in the form of container and is carried For service, the service being deployed in inside container, need to obtain its resource service condition and service operation feelings by Centralized Monitoring Condition.
In process of the present invention is realized, inventor has found that in prior art, at least there are the following problems:Transport inside container Row monitoring programme, had both taken the resource of container internal distribution, and had taken host due to operation in each container Resource, simultaneously as monitoring programme is distributed in inside each container, causes the upgrading of monitoring programme and difficult in maintenance.
Content of the invention
In order to overcome the shortcomings of Related product in prior art, the embodiment of the present invention propose a kind of monitoring method of container and Device, it is only necessary to install and execute a monitoring programme on container host, you can all containers on the server are entered Row monitoring, solves as monitoring programme is distributed in each container inside and makes its upgrading and shortcoming difficult in maintenance.
The embodiment of the present invention solves the technical scheme adopted by its technical problem:
A kind of monitoring method of container that the embodiment of the present invention is provided, comprises the following steps:
Container list is obtained on the server;
The attribute information of all containers in container list is periodically obtained according to default time interval.
Used as the improvement further of the embodiment of the present invention, the container list that obtains on the server is specially:
Send container list and obtain instruction;After server responds the container list acquisition instruction, the reception server is returned The container list that returns.
Used as the improvement further of the embodiment of the present invention, the container list includes the unique container mark of container and holds Device running state information.
As the improvement further of the embodiment of the present invention, when there is change in information of the server in container list, Return new container list.
As the improvement further of the embodiment of the present invention, described periodically obtain in container list according to default time interval The attribute information of all containers is specially:
Set the feedback interval of each container in container list;Operation to all containers is clocked;Reading reaches instead Present the attribute information of the container of interval time.
A kind of supervising device of container that the embodiment of the present invention is provided, including:Acquisition module and monitoring module;
The acquisition module is used for obtaining container list on the server;
The monitoring module is used for periodically obtaining the attribute letter of all containers in container list according to default time interval Breath.
Used as the improvement further of the embodiment of the present invention, the acquisition module includes transmitting element and receiving unit;
The transmitting element is used for sending container list acquisition instruction;
The receiving unit is used for after server responds the container list acquisition instruction, the appearance that the reception server is returned Device list.
Used as the improvement further of the embodiment of the present invention, the container list includes the unique container mark of container and holds Device running state information.
As the improvement further of the embodiment of the present invention, when there is change in information of the server in container list, Return new container list.
Used as the improvement further of the embodiment of the present invention, the monitoring module includes setup unit, clock unit and reading Take unit;
The setup unit is used for setting the feedback interval of each container in container list;
The unit that clocks is for clocking to the operation of all containers;
The reading unit is for reading the attribute information of the container for reaching the feedback interval time.
Compared with prior art, the invention has the advantages that:
1st, by only needing to run a monitoring programme, all containers on server are monitored, without each appearance Device is respectively configured a monitoring programme, has saved the resource of server.
2nd, only a monitoring programme is run, the complexity of monitoring programme is reduced, is convenient for upgrading and safeguards.
Description of the drawings
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, below by to be used needed for embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for ability For the those of ordinary skill of domain, on the premise of not paying creative work, can also be obtained according to these accompanying drawings other attached Figure.
Fig. 1 is the flow chart of the monitoring method first embodiment of container described in the embodiment of the present invention;
Fig. 2 is the flow chart of the monitoring method second embodiment of container described in the embodiment of the present invention;
Fig. 3 is the principle assumption diagram of the supervising device first embodiment of container described in the embodiment of the present invention;
Fig. 4 is the principle assumption diagram of the supervising device second embodiment of container described in the embodiment of the present invention.
Specific embodiment
For the ease of understanding the present invention, below with reference to relevant drawings, the present invention is described more fully.In accompanying drawing Give presently preferred embodiments of the present invention.But, the present invention can be realized in many different forms, however it is not limited to this paper institute The embodiment of description.On the contrary, the purpose for providing these embodiments is to make the understanding to the disclosure more thorough Comprehensively.
Unless otherwise defined, all of technology used herein and scientific terminology and the technical field for belonging to the present invention The implication that technical staff is generally understood that is identical.The term for being used in the description of the invention herein is intended merely to description tool The purpose of the embodiment of body, it is not intended that in the restriction present invention.
Embodiment one
Refering to the first embodiment of the monitoring method for shown in Fig. 1, being container of the present invention, comprise the following steps:
S101:Container list is obtained on the server;
The container is a kind of LINUX kernel Intel Virtualization Technology, it is provided that the virtualization of lightweight, so as to isolated process And resource, environment during service operation to be isolated, the running environment for being isolated out is known as container;The support container The host of the external environment condition of operation is server, can run multiple containers on the server simultaneously, for while executing Multiple service processes;In embodiments of the present invention, after startup of server operation, to the server, container list is sent Instruction is obtained, after server responds the container list acquisition instruction, the container list that the reception server is returned, the container List includes the unique container mark of container and container running state information.
S102:The attribute information of all containers in container list is periodically obtained according to default time interval;
In embodiments of the present invention, by the feedback interval of each container in setting container list, while to all containers Operation clocked, obtain the attribute information of corresponding container after container reaches the feedback interval time;The embodiment of the present invention can To be separately provided feedback interval to each container being active in container list, it is also possible to the appearance to all active states Device arranges unified feedback interval.
The process for reading container attribute information specifically includes following several ways:
In embodiments of the present invention, the kernel of the LINUX operating system is the exposed kernel data structure of each container, The kernel data structure is exposed to one part data structure outside kernel by pseudo file system, the pseudo file system bag Include proc file system, sys (SYSTEM, system copies order) file system and cgroup (control groups, control Group) file system etc.;After the feedback interval time is reached, the portion being exposed to outside kernel is directly read by the pseudo file system The data that divides, obtain the attribute information of corresponding container, and the attribute information of the container includes that the memory source of corresponding container is used Situation, disk service condition and network I/O ((Input/Output, input/output) service condition etc..
In embodiments of the present invention, all containers for running on the host are all by the root file system of itself come solely Vertical operation, realizes mutually isolated between container, can not access each other;The program for executing inside the container can by some containers certainly The specific information output of body is in the root file system of itself;After the feedback interval time is reached, by reading in corresponding container The root file system in portion, obtains the implementation status of configuration processor in container, and carries out log collection, the function such as Gernral Check-up.
In embodiments of the present invention, the LINUX operating system is the container offer interface of all operations, is reaching feedback After interval time, by calling the interface, the interim NameSpace for entering corresponding container;Configuration processor inside the container Can carry out executing operation to container according to mission requirements, including stopping the process inside container, file inside modification container etc.; By operating the container, the configuration processor can obtain the result of tasks carrying or the attribute information inside container, in institute The implementation status that container internal medium can read attribute information inside container and configuration processor is stated, and right obtaining The internal medium of the container is left after the container attribute information that answers;The interface for being provided by LINUX operating system, in other appearances After device reaches the feedback interval time, switching simultaneously enters the NameSpace for corresponding to container temporarily, by reading the attribute of corresponding container Monitoring of the information realization to container.
In embodiments of the present invention, the monitoring method of the container passes through to obtain container list on the server, according to pre- If time interval periodically obtain the attribute information of all containers in container list;By the process, it is possible to achieve operation one Monitoring programme can be monitored to all containers on server, be respectively configured a monitoring programme without each container, Only need to arrange corresponding feedback interval to each container, after feedback interval is reached, the attribute information for obtaining corresponding container is Monitoring, the resource for not only having saved server but also the complexity for reducing monitoring programme can be realized to the operation of the container, be easy to Upgraded and safeguarded.
Embodiment two
Refering to the second embodiment of the monitoring method for shown in Fig. 2, being container of the present invention, comprise the following steps:
S201:Send container list and obtain instruction;
The container is a kind of LINUX kernel Intel Virtualization Technology, it is provided that the virtualization of lightweight, so as to isolated process And resource, environment during service operation to be isolated, the running environment for being isolated out is known as container;The support container The host of the external environment condition of operation is server, can run multiple containers on the server simultaneously, for while executing Multiple service processes;In embodiments of the present invention, after startup of server operation, to the server, container list is sent Obtain instruction.
S202:After server responds the container list acquisition instruction, the container list that the reception server is returned;
In embodiments of the present invention, the container list includes unique container mark and the container running status letter of container Breath, the container identification is the unique mark for indicating container, for distinguishing the identity of each container, the container in host Running state information refers to the current running status of container, including active state and halted state;Unique appearance of the container Device mark is corresponded with the container running state information;The server responds the container list and obtains instruction, returns Container list, in embodiments of the present invention, the container list that the server is returned is the container mark of all containers on server The list that makes after knowledge and its corresponding container running state information are collated, when the running status for having container there occurs change Or when having new container to produce, the information in the container list also can be changed in real time;In embodiments of the present invention, the clothes When information of the business device in container list occurs change, new container list is returned.
S203:Set the feedback interval of each container in container list;
In embodiments of the present invention, only setting for feedback interval is carried out to the container being active in the container list Fixed, output sets result;User can be separately provided feedback interval, root to each container being active in container list It is configured with being actually needed according to the process of container internal operation;In other embodiments, for the ease of management, can be to institute The container for having active state arranges unified feedback interval;The feedback interval refers to obtain the attribute information for once corresponding to container Institute's interlude;The time of the feedback interval is configured according to practical situation, such as 1 second, 1 millisecond etc., anti-when set When feedback interval is sufficiently small, Real-time Feedback is may be considered in actual use.
S204:Operation to all containers is clocked;
In embodiments of the present invention, time statistics is carried out to all containers in the container list, the time is container The time of continuous service, the result that clocks is exported, when the container running state information is halted state, the time statistics is aobvious It is shown as empty.
S205:Read the attribute information of the container for reaching the feedback interval time;
In embodiments of the present invention, contrast with the result that clocks to setting result, and to reaching the feedback interval time The attribute information of container is read out and monitors.
The process for reading container attribute information specifically includes following several ways:
In embodiments of the present invention, the kernel of the LINUX operating system is the exposed kernel data structure of each container, The kernel data structure is exposed to one part data structure outside kernel by pseudo file system, the pseudo file system bag Include proc file system, sys file system and cgroup file system etc.;After the feedback interval time is reached, by the puppet File system directly reads the data of the part being exposed to outside kernel, obtains the attribute information of corresponding container, the category of the container Property information include memory source service condition, disk service condition and network I/O service condition of corresponding container etc..
In embodiments of the present invention, all containers for running on the host are all by the root file system of itself come solely Vertical operation, realizes mutually isolated between container, can not access each other;The program for executing inside the container can by some containers certainly The specific information output of body is in the root file system of itself;After the feedback interval time is reached, by reading in corresponding container The root file system in portion, obtains the implementation status of configuration processor in container, and carries out log collection, the function such as Gernral Check-up.
In embodiments of the present invention, the LINUX operating system is the container offer interface of all operations, is reaching feedback After interval time, by calling the interface, the interim NameSpace for entering corresponding container;Configuration processor inside the container Can carry out executing operation to container according to mission requirements, including stopping the process inside container, file inside modification container etc.; By operating the container, the configuration processor can obtain the result of tasks carrying or the attribute information inside container, in institute The implementation status that container internal medium can read attribute information inside container and configuration processor is stated, and right obtaining The internal medium of the container is left after the container attribute information that answers;The interface for being provided by LINUX operating system, in other appearances After device reaches the feedback interval time, switching simultaneously enters the NameSpace for corresponding to container temporarily, by reading the attribute of corresponding container Monitoring of the information realization to container.
In embodiments of the present invention, the monitoring method of the container obtains instruction by sending container list, in server After responding container list acquisition instruction, the container list that the reception server is returned, set each container in container list Feedback interval, by clocking to the operation of all containers, reads the attribute information of the container for reaching the feedback interval time;Logical Cross the process, it is possible to achieve one monitoring programme of operation can be monitored to all containers on server, without each Container is respectively configured a monitoring programme, it is only necessary to arrange corresponding feedback interval to each container, after feedback interval is reached, The attribute information for obtaining corresponding container can realize monitoring to the operation of the container, not only saved the resource of server but also reduced The complexity of monitoring programme, is convenient for upgrading and safeguards.
Embodiment three
Refering to the first embodiment of the supervising device for shown in Fig. 3, being container of the present invention, including:Acquisition module 1 and prison Control module 2.
The acquisition module 1 is used for obtaining container list on the server;The container is a kind of virtualization of LINUX kernel Technology, it is provided that the virtualization of lightweight, so as to isolated process and resource, isolates to environment during service operation, quilt The running environment for isolating is known as container;The host of the external environment condition of the support container operation is server, described Multiple containers have been run on server simultaneously can, for while executing multiple service processes;In embodiments of the present invention, described After startup of server operation, the acquisition module 1 sends container list to the server and obtains instruction, responds institute in server After stating container list acquisition instruction, the container list that the reception server is returned, the container list includes the unique container of container Mark and container running state information.
The monitoring module 2 is used for periodically obtaining the attribute letter of all containers in container list according to default time interval Breath;The monitoring module 2 sets the feedback interval of each container in container list, while the operation to all containers is remembered When, the attribute information of corresponding container is obtained after container reaches the feedback interval time;The monitoring module 2 can be to container list In each container being active be separately provided feedback interval, it is also possible to the container of all active states is arranged unified Feedback interval.
The monitoring module 2 obtains the process of container attribute information and specifically includes following several ways:
In embodiments of the present invention, the kernel of the LINUX operating system is the exposed kernel data structure of each container, The kernel data structure is exposed to one part data structure outside kernel by pseudo file system, the pseudo file system bag Include proc file system, sys file system and cgroup file system etc.;After the feedback interval time is reached, the monitoring mould Block 2 directly reads the data of the part being exposed to outside kernel by the pseudo file system, obtains the attribute information of corresponding container, The attribute information of the container includes memory source service condition, disk service condition and the network I/O service condition of corresponding container Deng.
In embodiments of the present invention, all containers for running on the host are all by the root file system of itself come solely Vertical operation, realizes mutually isolated between container, can not access each other;The program for executing inside the container can by some containers certainly The specific information output of body is in the root file system of itself;After the feedback interval time is reached, the monitoring module 2 is by reading The root file system inside corresponding container is taken, the implementation status of configuration processor in container is obtained, and log collection is carried out, health is examined The function such as disconnected.
In embodiments of the present invention, the LINUX operating system is the container offer interface of all operations, is reaching feedback After interval time, the monitoring module 2 is by calling the interface, and interim entrance corresponds to the NameSpace of container;In the container Internal configuration processor can carry out executing operation to container according to mission requirements, and including stopping the process inside container, modification is held File inside device etc.;By operating the container, the configuration processor can be obtained inside the result of tasks carrying or container Attribute information, the monitoring module 2 can read the attribute information inside container in the container internal medium and hold The implementation status of line program, and the internal medium of the container is left after corresponding container attribute information is obtained;Pass through The interface that LINUX operating system is provided, after other containers reach the feedback interval time, the switching of the monitoring module 2 is simultaneously interim The NameSpace of corresponding container is entered, and the monitoring to container is realized by reading the attribute information of corresponding container.
In embodiments of the present invention, the supervising device of the container obtains appearance on the server by the acquisition module 1 Device list, periodically obtains the attribute letter of all containers in container list by the monitoring module 2 according to default time interval Breath;By the process, it is possible to achieve one monitoring programme of operation can be monitored to all containers on server, without every One container is respectively configured a monitoring programme, it is only necessary to arrange corresponding feedback interval to each container, is reaching between feedback Every rear, the attribute information for obtaining corresponding container can realize monitoring to the operation of the container, not only save server resource but also The complexity of monitoring programme is reduced, is convenient for upgrading and safeguards.
Example IV
Refering to the second embodiment of the supervising device for shown in Fig. 4, being container of the present invention, including:Acquisition module 1 and prison Control module 2.
The acquisition module 1 is used for obtaining container list on the server;The acquisition module 1 includes 11 He of transmitting element Receiving unit 12.
The transmitting element 11 is used for sending container list acquisition instruction;The container is a kind of virtualization of LINUX kernel Technology, it is provided that the virtualization of lightweight, so as to isolated process and resource, isolates to environment during service operation, quilt The running environment for isolating is known as container;The host of the external environment condition of the support container operation is server, described Multiple containers have been run on server simultaneously can, for while executing multiple service processes;In embodiments of the present invention, described After startup of server operation, the transmitting element 11 sends container list to the server and obtains instruction.
The receiving unit 12 is used for after server responds the container list acquisition instruction, and the reception server is returned Container list;The container list includes the unique container mark of container and container running state information, the container identification It is the unique mark for indicating container, for distinguishing the identity of each container in host, the container running state information is Refer to the current running status of container, including active state and halted state;Unique container mark and the appearance of the container Device running state information is corresponded;The server responds the container list and obtains instruction, returns to the receiving unit 12 Container list is returned, in embodiments of the present invention, the container list that the server is returned is the container of all containers on server The list that makes after mark and its corresponding container running state information are collated, when the running status for having container there occurs change When changing or have new container to produce, the information in the container list also can be changed in real time;In embodiments of the present invention, described When information of the server in container list occurs change, new container list receiving unit 12 is returned.
The monitoring module 2 is used for periodically obtaining the attribute letter of all containers in container list according to default time interval Breath;The monitoring module 2 includes setup unit 21, clock unit 22 and reading unit 23.
The setup unit 21 is used for setting the feedback interval of each container in container list;In embodiments of the present invention, Container of the setup unit 21 only to being active in the container list carries out the setting of feedback interval, and output sets As a result;User can be separately provided feedback to each container being active in container list by the setup unit 21 Interval, the process according to container internal operation is configured with being actually needed;In other embodiments, for the ease of management, Unified feedback interval can be set to the container of all active states;The feedback interval refers to that monitoring module 2 is obtained once The attribute information institute interlude of corresponding container;The time of the feedback interval is configured according to practical situation, such as 1 second, and 1 Millisecond etc., when the feedback interval for setting is sufficiently small, may be considered Real-time Feedback in actual use.
The unit 22 that clocks is for clocking to the operation of all containers;In embodiments of the present invention, described clock In 22 pairs of container list of unit, all containers carry out time statistics, and the time is the time of container continuous service, output Clock result, and when the container running state information is halted state, the time statistics is shown as empty.
The reading unit 23 is for reading the attribute information of the container for reaching the feedback interval time;The reading unit 23 For contrasting with the result that clocks to setting result, and the attribute information for reaching the container of feedback interval time is read out And monitoring.
The reading unit 23 reads the process of container attribute information and specifically includes following several ways:
In embodiments of the present invention, the kernel of the LINUX operating system is the exposed kernel data structure of each container, The kernel data structure is exposed to one part data structure outside kernel by pseudo file system, the pseudo file system bag Include proc file system, sys file system and cgroup file system etc.;After the feedback interval time is reached, the reading is single Unit 23 directly reads the data of the part being exposed to outside kernel by the pseudo file system, obtains the attribute letter of corresponding container Breath, the attribute information of the container includes that memory source service condition, disk service condition and the network I/O of corresponding container are used Situation etc..
In embodiments of the present invention, all containers for running on the host are all by the root file system of itself come solely Vertical operation, realizes mutually isolated between container, can not access each other;The program for executing inside the container can by some containers certainly The specific information output of body is in the root file system of itself;After the feedback interval time is reached, the reading unit 23 passes through The root file system inside corresponding container is read, the implementation status of configuration processor in container is obtained, and log collection is carried out, health The functions such as diagnosis.
In embodiments of the present invention, the LINUX operating system is the container offer interface of all operations, is reaching feedback After interval time, the reading unit 23 is by calling the interface, and interim entrance corresponds to the NameSpace of container;In the container Internal configuration processor can carry out executing operation to container according to mission requirements, and including stopping the process inside container, modification is held File inside device etc.;By operating the container, the configuration processor can be obtained inside the result of tasks carrying or container Attribute information, the reading unit 23 can read the attribute information inside container in the container internal medium and hold The implementation status of line program, and the internal medium of the container is left after corresponding container attribute information is obtained;Pass through The interface that LINUX operating system is provided, after other containers reach the feedback interval time, the switching of the reading unit 23 is simultaneously interim The NameSpace of corresponding container is entered, and the monitoring to container is realized by reading the attribute information of corresponding container.
In embodiments of the present invention, the supervising device of the container sends container list acquisition by the transmitting element 11 Instruction, by the receiving unit 12 after server responds the container list acquisition instruction, the appearance that the reception server is returned Device list, sets the feedback interval of each container in container list, by the 22 pairs of institutes of unit that clock by the setup unit 21 The operation for having container is clocked, and reads the attribute information of the container for reaching the feedback interval time by the reading unit 23; By the process, it is possible to achieve one monitoring programme of operation can be monitored to all containers on server, without each Individual container is respectively configured a monitoring programme, it is only necessary to arranges corresponding feedback interval to each container, is reaching feedback interval Afterwards, the attribute information for obtaining corresponding container can realize monitoring to the operation of the container, not only saved the resource of server but also dropped The low complexity of monitoring programme, is convenient for upgrading and safeguards.
Embodiment five
On the basis of above-described embodiment, be the embodiment of the supervising device of container of the present invention, including processor and Memorizer.
The processor is used for:Container list is obtained on the server;Container is periodically obtained according to default time interval The attribute information of all containers in list.
The memorizer is used for as supporting the supervising device of the container to store various types of data.
It will be appreciated by those skilled in the art that all or part of step that realizes in above-described embodiment method can be by Program is completed to instruct the hardware of correlation, and the program storage is used so that one including some instructions in a storage medium Individual equipment (can be single-chip microcomputer, chip etc.) or processor (processor) execute each embodiment methods described of the application All or part of step.And aforesaid storage medium includes:USB flash disk, portable hard drive, read only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
Above-described embodiment is the present invention preferably embodiment, but embodiments of the present invention are not by above-described embodiment Limit, other any spirit without departing from the present invention and the change that is made under principle, modification, replacement, combine, simplify, Equivalent substitute mode is all should be, is included within protection scope of the present invention.

Claims (10)

1. a kind of monitoring method of container, it is characterised in that comprise the following steps:
Container list is obtained on the server;
The attribute information of all containers in container list is periodically obtained according to default time interval.
2. the monitoring method of container according to claim 1, it is characterised in that described obtain container list on the server Specially:
Send container list and obtain instruction;After server responds the container list acquisition instruction, the reception server is returned Container list.
3. the monitoring method of container according to claim 2, it is characterised in that:The container list includes the unique of container Container identification and container running state information.
4. the monitoring method of container according to claim 2, it is characterised in that:Letter of the server in container list When breath occurs change, new container list is returned.
5. the monitoring method of container according to claim 1, it is characterised in that described regular according to default time interval The attribute information for obtaining all containers in container list is specially:
Set the feedback interval of each container in container list;Operation to all containers is clocked;Reading is reached between feedback Attribute information every the container of time.
6. a kind of supervising device of container, it is characterised in that include:Acquisition module and monitoring module;
The acquisition module is used for obtaining container list on the server;
The monitoring module is used for periodically obtaining the attribute information of all containers in container list according to default time interval.
7. the supervising device of container according to claim 6, it is characterised in that:The acquisition module include transmitting element and Receiving unit;
The transmitting element is used for sending container list acquisition instruction;
The receiving unit is used for after server responds the container list acquisition instruction, the container row that the reception server is returned Table.
8. the supervising device of container according to claim 7, it is characterised in that:The container list includes the unique of container Container identification and container running state information.
9. the supervising device of container according to claim 7, it is characterised in that:Letter of the server in container list When breath occurs change, new container list is returned.
10. the supervising device of container according to claim 6, it is characterised in that:The monitoring module include setup unit, Clock unit and reading unit;
The setup unit is used for setting the feedback interval of each container in container list;
The unit that clocks is for clocking to the operation of all containers;
The reading unit is for reading the attribute information of the container for reaching the feedback interval time.
CN201610842778.6A 2016-09-22 2016-09-22 Container monitoring method and device Pending CN106445634A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610842778.6A CN106445634A (en) 2016-09-22 2016-09-22 Container monitoring method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610842778.6A CN106445634A (en) 2016-09-22 2016-09-22 Container monitoring method and device

Publications (1)

Publication Number Publication Date
CN106445634A true CN106445634A (en) 2017-02-22

Family

ID=58166963

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610842778.6A Pending CN106445634A (en) 2016-09-22 2016-09-22 Container monitoring method and device

Country Status (1)

Country Link
CN (1) CN106445634A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107256161A (en) * 2017-06-13 2017-10-17 广发证券股份有限公司 Client side upgrading method based on electron technologies
CN109344032A (en) * 2018-09-27 2019-02-15 郑州云海信息技术有限公司 A kind of monitoring method and device
CN112416719A (en) * 2020-12-04 2021-02-26 中国建设银行股份有限公司 Monitoring processing method, system, equipment and storage medium for database container

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103491134A (en) * 2013-08-30 2014-01-01 华为技术有限公司 Container monitoring method and device and agency service system
CN104899126A (en) * 2015-06-12 2015-09-09 北京奇虎科技有限公司 Method, device and system for performing local real-time monitoring on containers in host
CN104915263A (en) * 2015-06-30 2015-09-16 北京奇虎科技有限公司 Process fault processing method and device based on container technology
CN104915285A (en) * 2015-06-30 2015-09-16 北京奇虎科技有限公司 Container process monitoring method, device and system
CN104950757A (en) * 2015-06-12 2015-09-30 北京奇虎科技有限公司 Container monitoring method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103491134A (en) * 2013-08-30 2014-01-01 华为技术有限公司 Container monitoring method and device and agency service system
CN104899126A (en) * 2015-06-12 2015-09-09 北京奇虎科技有限公司 Method, device and system for performing local real-time monitoring on containers in host
CN104950757A (en) * 2015-06-12 2015-09-30 北京奇虎科技有限公司 Container monitoring method and system
CN104915263A (en) * 2015-06-30 2015-09-16 北京奇虎科技有限公司 Process fault processing method and device based on container technology
CN104915285A (en) * 2015-06-30 2015-09-16 北京奇虎科技有限公司 Container process monitoring method, device and system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107256161A (en) * 2017-06-13 2017-10-17 广发证券股份有限公司 Client side upgrading method based on electron technologies
CN109344032A (en) * 2018-09-27 2019-02-15 郑州云海信息技术有限公司 A kind of monitoring method and device
CN112416719A (en) * 2020-12-04 2021-02-26 中国建设银行股份有限公司 Monitoring processing method, system, equipment and storage medium for database container
CN112416719B (en) * 2020-12-04 2024-01-26 中国建设银行股份有限公司 Monitoring processing method, system, equipment and storage medium for database container

Similar Documents

Publication Publication Date Title
CN105049268B (en) Distributed computing resource distribution system and task processing method
CN101203834B (en) Method, apparatus and system for bi-directional communication between a virtual machine monitor and an ACPI-compliant client operating system
CN102541634B (en) Inserted by the detection of background virtual machine
Cho et al. Natjam: Design and evaluation of eviction policies for supporting priorities and deadlines in mapreduce clusters
CN109791500A (en) Intermediate host integrated circuit between virtual machine instance and client programmable logic
CN101382906A (en) Virtual machine (vm) migration between processor architectures
CN111263938A (en) Rule-based autonomous database cloud service framework
CN108304250A (en) Method and apparatus for the node for determining operation machine learning task
CN114443435B (en) Performance monitoring alarm method and alarm system for container microservice
CN106199696B (en) Earthquake data processing system and method
CN102414674A (en) Application efficiency engine
CN110245023A (en) Distributed scheduling method and device, electronic equipment and computer storage medium
CN101169735A (en) Method and system for providing policy-based operation system service in management procedure
CN106663021A (en) Intelligent gpu scheduling in a virtualization environment
CN102880503A (en) Data analysis system and data analysis method
CN103077070A (en) Cloud computing management system and management method for cloud computing systems
CN104115124A (en) Implementing updates to source code executing on a plurality of compute nodes
CN106776067A (en) Method and device for managing system resources in multi-container system
CN109800055A (en) Container dispatches method of combination and system
CN103399781A (en) Cloud server and virtual machine management method thereof
CN106445634A (en) Container monitoring method and device
CN102929769A (en) Virtual machine internal-data acquisition method based on agency service
CN102073535A (en) Hardware counter virtualization-based performance analysis method for multiple virtual machines
CN112486491A (en) Page generation method and device, computer equipment and storage medium
Sahoo et al. Efficient data and CPU-intensive job scheduling algorithms for healthcare cloud

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170222

WD01 Invention patent application deemed withdrawn after publication