CN107463450A - The data processing method and device of container - Google Patents
The data processing method and device of container Download PDFInfo
- Publication number
- CN107463450A CN107463450A CN201710619027.2A CN201710619027A CN107463450A CN 107463450 A CN107463450 A CN 107463450A CN 201710619027 A CN201710619027 A CN 201710619027A CN 107463450 A CN107463450 A CN 107463450A
- Authority
- CN
- China
- Prior art keywords
- container
- shared memory
- data
- threshold value
- equal
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/544—Buffers; Shared memory; Pipes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/547—Remote procedure calls [RPC]; Web services
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
The present invention provides a kind of data processing method and device of container, wherein, this method includes:By the data in container, shared memory corresponding with container is sent to, so that the data in shared memory storage container, have corresponding relation between single shared memory and at least one container;If the memory data output in each shared memory is more than or equal to the first predetermined threshold value, then determine that the shared memory more than or equal to the first predetermined threshold value no longer receives the data transmitted by other containers, wherein, other containers are the container for not being transmitted across data to the shared memory.Provide a kind of elastic storage scheme based on container technique, provide multiple shared memories, can will service caused data storage is in a reservoir in use, once container is destroyed, data so in container will not lost, it is that if other services are serviced, these data can be searched out if needing to transfer these data again.
Description
Technical field
The present invention relates to field of computer technology, more particularly to a kind of data processing method and device of container.
Background technology
With the development of cloud, container technique can in safety, repeatable environment automatic deployment software, Jin Errong
Device technology is applied in increasing cloud computing platform product.For each service, it is necessary to service configuration environment
Parameter, then by the environmental variance encapsulation of service in a vessel, i.e., one service is a container.
In the prior art, service can produce data, it is necessary to store that data in container in use;And then
When subsequently using service, these data can be transferred.
But in the prior art because service in use caused data storage in a reservoir, once container quilt
Destroy, then the data in container also just lost, if needing to transfer what these data were serviced for other services again
Words, can not search out these data.
The content of the invention
The present invention provides a kind of data processing method and device of container, once to solve in the prior art container by pin
To ruin, then the data in container also just lost, if needing to transfer these data again and being serviced for other services,
The problem of these data can not be searched out.
It is an aspect of the present invention to provide a kind of data processing method of container, including:
By the data in container, shared memory corresponding with container is sent to, so that the shared memory stores institute
The data in container are stated, wherein, corresponding relation be present between single shared memory and at least one container;
Judge whether the memory data output in each shared memory is more than or equal to the first predetermined threshold value;
If it is determined that be more than or equal to the first predetermined threshold value, it is determined that more than or equal to the first predetermined threshold value shared memory no longer
The data transmitted by other containers are received, wherein, other described containers are the container for not being transmitted across data to the shared memory.
It is an aspect of the present invention to provide a kind of data processing equipment of container, including:
Sending module, for by the data in container, being sent to shared memory corresponding with container, so that described shared
Memory block stores the data in the container, wherein, corresponding relation be present between single shared memory and at least one container;
First judge module, for judging it is pre- whether the memory data output in each shared memory is more than or equal to first
If threshold value;
Determining module, for if it is determined that being more than or equal to the first predetermined threshold value, it is determined that more than or equal to the first predetermined threshold value
Shared memory no longer receives the data transmitted by other containers, wherein, other described containers is to shared memory hairs
Pass through the container of data.
The solution have the advantages that:By by the data in container, being sent to shared memory corresponding with container, with
Make the data in shared memory storage container, wherein, corresponding close between single shared memory and at least one container be present
System;Judge whether the memory data output in each shared memory is more than or equal to the first predetermined threshold value;If it is determined that it is more than or equal to
First predetermined threshold value, it is determined that the shared memory more than or equal to the first predetermined threshold value no longer receives number transmitted by other containers
According to, wherein, other containers are the container for not being transmitted across data to the shared memory.Provide a kind of bullet based on container technique
Property storage scheme, there is provided multiple shared memories, each shared memory can store the data at least one container;
And then can will service in use caused data storage in a reservoir, once container is destroyed, then in container
Data will not lost, if needing to transfer these data again and being serviced for other services, these can be searched out
Data.
Brief description of the drawings
Fig. 1 is the flow chart of the data processing method for the container that the embodiment of the present invention one provides;
Fig. 2 is the flow chart of the data processing method for the container that the embodiment of the present invention two provides;
Fig. 3 is the structural representation of the data processing equipment for the container that the embodiment of the present invention three provides;
Fig. 4 is the structural representation of the data processing equipment for the container that the embodiment of the present invention four provides.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
Part of the embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
Fig. 1 is the flow chart of the data processing method for the container that the embodiment of the present invention one provides, as shown in figure 1, this implementation
The method of example, including:
Step 101, by the data in container, shared memory corresponding with container is sent to, so that shared memory is deposited
Data in storage container, wherein, corresponding relation be present between single shared memory and at least one container.
In the present embodiment, specifically, the executive agent of the present embodiment can be the data processing equipment of container, Yi Jiren
Meaning can perform the device of the present embodiment method, equipment, system etc..Multiple shared memories are provided, each, which is shared, deposits
Storage area can store the data at least one container.The data of one container, it can only be stored in a shared storage.Container
It can be placed in same physical machine with shared memory, or container can be placed on different physical machines from shared memory
On, preferably container is placed on from shared memory in the different storage dishes of a physical machine.
Data in container can be sent to shared memory corresponding with container;Due to the data of a container
It can be stored in a shared storage, and a shared storage can store the data of multiple containers, by the data in container
It is sent to after shared memory, and then constitutes between single shared memory and at least one container and corresponding relation be present.
Step 102, judge whether the memory data output in each shared memory is more than or equal to the first predetermined threshold value.
In the present embodiment, specifically, being directed to each shared memory, it can remove to judge the number in shared memory
Whether it is more than or equal to the first predetermined threshold value according to amount of storage.Wherein, for different shared memories, the first predetermined threshold value of setting
Can be with identical, can also be different.
For example, shared memory 1 stores the data in the data and container B in container A;Shared memory 2 is deposited
The data in the data and container D in container C are stored up;Shared memory 3 store data in container E, the data of container F and
Container G data;Whether the memory data output that can go to judge shared memory 1 is more than or equal to corresponding with shared memory 1
First predetermined threshold value, whether the memory data output of shared memory 2 is more than or equal to is preset threshold with shared memory 2 corresponding first
Whether value, the memory data output of shared memory 3 are more than or equal to first predetermined threshold value corresponding with shared memory 3;Wherein, with
It is first predetermined threshold value corresponding to shared memory 1, first predetermined threshold value corresponding with shared memory 2, right with shared memory 3
The first predetermined threshold value answered can be with different.
Step 103, if it is determined that being more than or equal to the first predetermined threshold value, it is determined that shared more than or equal to the first predetermined threshold value is deposited
Storage area no longer receives the data transmitted by other containers, wherein, other containers are not to be transmitted across data to the shared memory
Container.
In the present embodiment, specifically, being directed to each shared memory, it is determined that the data in shared memory are deposited
When reserves are more than or equal to the first predetermined threshold value, determine that the shared memory no longer receives and be not transmitted across to current shared memory block
Data transmitted by the container of data.
For example, shared memory 1 stores the data in the data and container B in container A;Shared memory 2 is deposited
The data in the data and container D in container C are stored up;It can go to judge whether the memory data output of shared memory 1 is more than etc.
In first predetermined threshold value corresponding with shared memory 1, whether the memory data output of shared memory 2 is more than or equal to is deposited with shared
First predetermined threshold value corresponding to storage area 2;If it is determined that the memory data output of shared memory 1 is right more than or equal to shared memory 1
The first predetermined threshold value answered, then it can determine that shared memory 1 no longer receives other container institutes in addition to container A, container B
The data of generation.
The present embodiment is by by the data in container, being sent to shared memory corresponding with container, so that shared storage
Data in area's storage container, wherein, corresponding relation be present between single shared memory and at least one container;Judge each
Whether the memory data output in individual shared memory is more than or equal to the first predetermined threshold value;If it is determined that more than or equal to the first default threshold
Value, it is determined that the shared memory more than or equal to the first predetermined threshold value no longer receives data transmitted by other containers, wherein, its
His container is the container for not being transmitted across data to the shared memory.Provide a kind of elastic storage side based on container technique
Case, there is provided multiple shared memories, each shared memory can store the data at least one container;And then can be with
Will service in use caused data storage in a reservoir, once container is destroyed, then the data in container are not
It can lost, be that if other services are serviced, these data can be searched out if needing to transfer these data again.
Fig. 2 is the flow chart of the data processing method for the container that the embodiment of the present invention two provides, as shown in Fig. 2 this implementation
The method of example, including:
Step 201, by the data in container, shared memory corresponding with container is sent to, so that shared memory is deposited
Data in storage container, wherein, corresponding relation be present between single shared memory and at least one container.
In the present embodiment, specifically, may refer to Fig. 1 step 101, repeat no more.
Step 202, judge whether the memory data output in each shared memory is more than or equal to the first predetermined threshold value;If
It is determined that it is more than or equal to the first predetermined threshold value, it is determined that the shared memory more than or equal to the first predetermined threshold value no longer receives other appearances
Data transmitted by device, wherein, other containers are the container for not being transmitted across data to the shared memory.
In the present embodiment, specifically, may refer to Fig. 1 step 102 and step 103, repeat no more.
After step 201, can also comprise the following steps 203, at least one step.
Step 203, judge that single container is stored in the data in shared memory, if more than or equal to the second default threshold
Value;If it is determined that be more than or equal to the second predetermined threshold value, then create new shared memory, and will with more than or equal to the second predetermined threshold value
Single container corresponding to shared memory in data, be placed into new shared memory.
In a kind of optional embodiment, by with it is shared corresponding to the single container more than or equal to the second predetermined threshold value
Data in memory block, it is placed into new shared memory, including:It will be greater than the single container equal to the second predetermined threshold value
All data, it is placed into new shared memory;Or by with the single container more than or equal to the second predetermined threshold value corresponding to
Shared memory in the data that are stored of all containers, be placed into new shared memory.
In the present embodiment, specifically, being directed to each container, judge that container storage is deposited in share corresponding with the container
Data in storage area, if more than or equal to the second predetermined threshold value.For each container, however, it is determined that container storage with the container
Data in corresponding shared memory, more than or equal to the second predetermined threshold value, then a new shared memory is created, then will
Data in current shared memory block are placed into the new shared memory.
Specifically, the data in current shared memory block are placed into the new shared memory and included:It will be greater than
Equal to data corresponding to the container of the second predetermined threshold value, it is placed into the new shared memory;Or current shared is stored
The data of all containers stored in area, it is placed into the new shared memory.
For example, shared memory 1 stores the data in the data and container B in container A, and shared memory 2 is deposited
The data in the data and container D in container C are stored up;Judge the data that container A is stored in shared memory 1, if be more than
Equal to the second predetermined threshold value;Judge the data that container B is stored in shared memory 1, if more than or equal to the second predetermined threshold value;
Judge the data that container C is stored in shared memory 2, if more than or equal to the second predetermined threshold value;Judge that container D is stored in altogether
Enjoy the data in memory block 2, if more than or equal to the second predetermined threshold value;If it is determined that container A is stored in the number in shared memory 1
According to more than or equal to the second predetermined threshold value, then a new shared memory is created, then by the container A in shared memory 1
Data, it is placed into new shared memory, or by the data of the data of container A and container B in shared memory 1, all
It is placed into new shared memory.
Step 204, for each shared memory, judge that shared memory is fixed corresponding with shared memory first
When time for being characterized of device in, if there occurs read-write operation;If it is determined that there occurs read-write operation, it is determined that with being read and write
First timer corresponding to the shared memory of operation restarts timing;If it is determined that read-write operation does not occur, then first
After timer timing terminates, destroy without the shared memory that read-write operation occurs.
In the present embodiment, specifically, each shared memory can be directed to, a first timer is set respectively.
Specifically, for each shared memory, judge in the pre- of first timer corresponding with current shared memory block sign
If in the period, whether there occurs read-write operation for current shared memory block;If it is determined that there occurs read-write operation, it is determined that with it is current
First timer restarts timing corresponding to shared memory;If it is determined that read-write operation does not occur, then in first timer
After timing terminates, current memory area is destroyed.Wherein, for different sharing memory block, the timing time of first timer can be with
It is identical, can also be different.
For example, shared memory 1 stores the data in the data and container B in container A, and shared memory 1 has
There is first timer a;Shared memory 2 stores the data in data and container D in container C, and shared memory 2 has the
One timer b.Judge shared memory 1 within the time that first timer a is characterized, if there occurs read-write operation;If really
It is fixed there occurs read-write operation, then first timer a restarts timing;If it is determined that read-write operation does not occur, then it is fixed first
When device a timing terminate after, destroy shared memory 1.Shared memory 2 is judged within the time that first timer b is characterized,
Whether there occurs read-write operation;If it is determined that there occurs read-write operation, then first timer b restarts timing;If it is determined that do not have
Generation read-write operation, then after first timer b timing terminates, destroy shared memory 2.
Step 205, for each container, judge the time that container is characterized in second timer corresponding with container
It is interior, if to have carried out read-write operation into shared memory corresponding with container;If it is determined that carry out read-write operation, it is determined that with
There occurs second timer corresponding to the container of read-write operation to restart timing;If it is determined that not being written and read operation, then exist
After second timer timing terminates, all numbers stored without the container that read-write operation occurs in shared memory are destroyed
According to.
In the present embodiment, specifically, being directed to each container, a second timer is set respectively.Specifically, pin
To each container, judge in the preset time that is characterized in second timer corresponding with current container, current container whether to
Operation is written and read in shared memory corresponding to current container;If it is determined that read-write operation is carried out, it is determined that hold with current
Second timer restarts timing corresponding to device;If it is determined that not being written and read operation, then terminate in second timer timing
Afterwards, all data of the current container in memory block corresponding with current container are destroyed.Wherein, for different vessels, second
The timing time of timer can be with identical, can also be different.
For example, shared memory 1 stores the data in the data and container B in container A, and container A has second
Timer c, container B have second timer d.Judge container A within the time that second timer c is characterized, if to shared
Read-write operation has been carried out in memory block 1;If it is determined that read-write operation is carried out, it is determined that second timer c restarts timing;If
It is determined that not being written and read operation, then after second timer c timing terminates, destroy container A and stored in shared memory 1
All data.Judge container B within the time that second timer d is characterized, if to be read and write into shared memory 1
Operation;If it is determined that read-write operation is carried out, it is determined that second timer d restarts timing;If it is determined that behaviour it is not written and read
Make, then after second timer d timing terminates, destroy all data that container B stores in shared memory 1.
Wherein, step 204 and step 205 can be implemented simultaneously, can also only implement one of which.
Step 206, the shared memory being located at according to corresponding relation, the data inquired about in each container, and obtain
The data stored in the shared memory.
In the present embodiment, specifically, corresponding relation be present between single shared memory and at least one container;Can be with
Index path is established according to the corresponding relation, the index path characterizes all corresponding relations.Can according to the index path,
The shared memory where the data in each container is determined, and then being total to of being located at of the data inquired about in each container
Memory block is enjoyed, and obtains the data stored in the shared memory.And index path, according to the dynamic of first timer
Make, the action of second timer and the change of shared memory and be updated.Because a service is a container, servicing
Use during, shared storage corresponding with service is determined according to index path, and data are obtained from the shared storage.
The present embodiment is by by the data in container, being sent to shared memory corresponding with container, so that shared storage
Data in area's storage container, wherein, corresponding relation be present between single shared memory and at least one container;Judge each
Whether the memory data output in individual shared memory is more than or equal to the first predetermined threshold value;If it is determined that more than or equal to the first default threshold
Value, it is determined that the shared memory more than or equal to the first predetermined threshold value no longer receives data transmitted by other containers, wherein, its
His container is the container for not being transmitted across data to the shared memory.Provide a kind of elastic storage side based on container technique
Case, there is provided multiple shared memories, each shared memory can store the data at least one container;And then can be with
Will service in use caused data storage in a reservoir, once container is destroyed, then the data in container are not
It can lost, be that if other services are serviced, these data can be searched out if needing to transfer these data again.And
And one timer can be set for each shared memory respectively, after the preset time of timer sign is arrived at,
Destroy all data in shared memory;Or one timer is set respectively for each container, or destroy current
All data of the container in memory block corresponding with current container;So as to save the memory space of physical machine.According to institute
Corresponding relation between the single shared memory having and at least one container, establishes index path;In the use process of service
In, shared storage corresponding with service is determined according to index path, and data are obtained from the shared storage.It is easy to find number
According to.
Fig. 3 is the structural representation of the data processing equipment for the container that the embodiment of the present invention three provides, as shown in figure 3, this
The device of embodiment, including:
Sending module 31, for by the data in container, being sent to shared memory corresponding with container, so that shared deposit
Data in storage area storage container, wherein, corresponding relation be present between single shared memory and at least one container;
First judge module 32, for judging whether the memory data output in each shared memory is more than or equal to first
Predetermined threshold value;
Determining module 33, for if it is determined that being more than or equal to the first predetermined threshold value, it is determined that more than or equal to the first predetermined threshold value
Shared memory no longer receive data transmitted by other containers, wherein, other containers is do not send to the shared memory
Cross the container of data.
The data processing equipment of the container of the present embodiment can perform the data processing for the container that the embodiment of the present invention one provides
Method, its realization principle is similar, and here is omitted.
The present embodiment is by by the data in container, being sent to shared memory corresponding with container, so that shared storage
Data in area's storage container, wherein, corresponding relation be present between single shared memory and at least one container;Judge each
Whether the memory data output in individual shared memory is more than or equal to the first predetermined threshold value;If it is determined that more than or equal to the first default threshold
Value, it is determined that the shared memory more than or equal to the first predetermined threshold value no longer receives data transmitted by other containers, wherein, its
His container is the container for not being transmitted across data to the shared memory.Provide a kind of elastic storage side based on container technique
Case, there is provided multiple shared memories, each shared memory can store the data at least one container;And then can be with
Will service in use caused data storage in a reservoir, once container is destroyed, then the data in container are not
It can lost, be that if other services are serviced, these data can be searched out if needing to transfer these data again.
Fig. 4 is the structural representation of the data processing equipment for the container that the embodiment of the present invention four provides, in embodiment three
On the basis of, as shown in figure 4, the device of the present embodiment, in addition to:
Second judge module 41, for judging that single container is stored in the data in shared memory, if be more than or equal to
Second predetermined threshold value;
Creation module 42, for if it is determined that be more than or equal to the second predetermined threshold value, then creating new shared memory, and will be with
More than or equal to the data in the shared memory corresponding to the single container of the second predetermined threshold value, new shared memory is placed into
In.
In a kind of embodiment, creation module 42, it is specifically used for:
If it is determined that being more than or equal to the second predetermined threshold value, then new shared memory is created, and will be greater than default equal to second
All data of the single container of threshold value, are placed into new shared memory;
Or, however, it is determined that more than or equal to the second predetermined threshold value, then create new shared memory, and will with more than or equal to
The data that all containers in shared memory corresponding to the single container of two predetermined threshold values are stored, it is placed into new share
In memory block.
The device that the present embodiment provides, in addition to:
First time block 43, for for each shared memory, judge shared memory with shared memory
In the time that corresponding first timer is characterized, if there occurs read-write operation;If it is determined that there occurs read-write operation, it is determined that
With there occurs the corresponding first timer of the shared memory of read-write operation to restart timing;If it is determined that read-write behaviour does not occur
Make, then after first timer timing terminates, destroy without the shared memory that read-write operation occurs;
And/or
Second time block 44, for for each container, judging container in second timer institute corresponding with container
In the time of sign, if carried out read-write operation into shared memory corresponding with container;If it is determined that read-write behaviour is carried out
Make, it is determined that with there occurs the corresponding second timer of the container of read-write operation to restart timing;If it is determined that do not read
Write operation, then after second timer timing terminates, destroy and deposited without the container that read-write operation occurs in shared memory
All data of storage.
The device that the present embodiment provides, in addition to:
Enquiry module 45, for the shared memory being located at according to corresponding relation, the data inquired about in each container,
And obtain the data stored in the shared memory.
The data processing equipment of the container of the present embodiment can perform the data processing for the container that the embodiment of the present invention two provides
Method, its realization principle is similar, and here is omitted.
The present embodiment is by by the data in container, being sent to shared memory corresponding with container, so that shared storage
Data in area's storage container, wherein, corresponding relation be present between single shared memory and at least one container;Judge each
Whether the memory data output in individual shared memory is more than or equal to the first predetermined threshold value;If it is determined that more than or equal to the first default threshold
Value, it is determined that the shared memory more than or equal to the first predetermined threshold value no longer receives data transmitted by other containers, wherein, its
His container is the container for not being transmitted across data to the shared memory.Provide a kind of elastic storage side based on container technique
Case, there is provided multiple shared memories, each shared memory can store the data at least one container;And then can be with
Will service in use caused data storage in a reservoir, once container is destroyed, then the data in container are not
It can lost, be that if other services are serviced, these data can be searched out if needing to transfer these data again.And
And one timer can be set for each shared memory respectively, after the preset time of timer sign is arrived at,
Destroy all data in shared memory;Or one timer is set respectively for each container, or destroy current
All data of the container in memory block corresponding with current container;So as to save the memory space of physical machine.According to institute
Corresponding relation between the single shared memory having and at least one container, establishes index path;In the use process of service
In, shared storage corresponding with service is determined according to index path, and data are obtained from the shared storage.It is easy to find number
According to.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above-mentioned each method embodiment can lead to
The related hardware of programmed instruction is crossed to complete.Foregoing program can be stored in a computer read/write memory medium.The journey
Sequence upon execution, execution the step of including above-mentioned each method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or
Person's CD etc. is various can be with the medium of store program codes.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although
The present invention is described in detail with reference to the foregoing embodiments, it will be understood by those within the art that:It still may be used
To be modified to the technical scheme described in foregoing embodiments, or equivalent substitution is carried out to which part technical characteristic;
And these modification or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and
Scope.
Claims (10)
- A kind of 1. data processing method of container, it is characterised in that including:By the data in container, shared memory corresponding with container is sent to, so that the shared memory stores the appearance Data in device, wherein, corresponding relation be present between single shared memory and at least one container;Judge whether the memory data output in each shared memory is more than or equal to the first predetermined threshold value;If it is determined that it is more than or equal to the first predetermined threshold value, it is determined that the shared memory more than or equal to the first predetermined threshold value no longer receives Data transmitted by other containers, wherein, other described containers are the container for not being transmitted across data to the shared memory.
- 2. according to the method for claim 1, it is characterised in that methods described, in addition to:Judge that single container is stored in the data in shared memory, if more than or equal to the second predetermined threshold value;If it is determined that being more than or equal to the second predetermined threshold value, then new shared memory is created, and will be with presetting threshold more than or equal to second The data in shared memory corresponding to the single container of value, it is placed into the new shared memory.
- 3. according to the method for claim 2, it is characterised in that it is described by with the single appearance more than or equal to the second predetermined threshold value The data in shared memory corresponding to device, it is placed into the new shared memory, including:All data of the single container equal to the second predetermined threshold value are will be greater than, are placed into the new shared memory;Or it will be deposited with all containers in the shared memory corresponding to the single container more than or equal to the second predetermined threshold value The data of storage, it is placed into the new shared memory.
- 4. according to the method described in claim any one of 1-3, it is characterised in that methods described, in addition to:For each shared memory, judge what shared memory was characterized in first timer corresponding with shared memory In time, if there occurs read-write operation;If it is determined that there occurs read-write operation, it is determined that with there occurs the shared of read-write operation to deposit First timer restarts timing corresponding to storage area;If it is determined that read-write operation does not occur, then in the first timer meter When terminate after, destroy without generation read-write operation shared memory;And/orFor each container, judge container within the time that second timer corresponding with container is characterized, if Xiang Yurong Read-write operation has been carried out in shared memory corresponding to device;If it is determined that carried out read-write operation, it is determined that with there occurs read-write grasp Second timer corresponding to the container of work restarts timing;If it is determined that operation is not written and read, then in the described second timing After device timing terminates, all data stored without the container that read-write operation occurs in shared memory are destroyed.
- 5. according to the method described in claim any one of 1-3, it is characterised in that methods described, in addition to:The shared memory being located at according to the corresponding relation, the data inquired about in each container, and obtain this and shared deposit The data stored in storage area.
- A kind of 6. data processing equipment of container, it is characterised in that including:Sending module, for by the data in container, shared memory corresponding with container being sent to, so that the shared storage Area stores the data in the container, wherein, corresponding relation be present between single shared memory and at least one container;First judge module, for judging whether the memory data output in each shared memory is more than or equal to the first default threshold Value;Determining module, for if it is determined that being more than or equal to the first predetermined threshold value, it is determined that shared more than or equal to the first predetermined threshold value Memory block no longer receives the data transmitted by other containers, wherein, other described containers are not to be transmitted across to the shared memory The container of data.
- 7. device according to claim 6, it is characterised in that described device, in addition to:Second judge module, for judging that single container is stored in the data in shared memory, if pre- more than or equal to second If threshold value;Creation module, for if it is determined that be more than or equal to the second predetermined threshold value, then creating new shared memory, and will with more than etc. The data in the shared memory corresponding to single container in the second predetermined threshold value, are placed into the new shared memory In.
- 8. device according to claim 7, it is characterised in that the creation module, be specifically used for:If it is determined that being more than or equal to the second predetermined threshold value, then new shared memory is created, and will be greater than being equal to the second predetermined threshold value Single container all data, be placed into the new shared memory;Or, however, it is determined that more than or equal to the second predetermined threshold value, then create new shared memory, and will with it is pre- more than or equal to second If the data that all containers in the shared memory corresponding to the single container of threshold value are stored, described new share is placed into In memory block.
- 9. according to the device described in claim any one of 6-8, it is characterised in that described device, in addition to:First time block, for for each shared memory, judging shared memory corresponding with shared memory In the time that first timer is characterized, if there occurs read-write operation;If it is determined that there occurs read-write operation, it is determined that with generation First timer corresponding to the shared memory of read-write operation restarts timing;If it is determined that read-write operation does not occur, then After the first timer timing terminates, destroy without the shared memory that read-write operation occurs;And/orSecond time block, for for each container, judging what container was characterized in second timer corresponding with container In time, if carried out read-write operation into shared memory corresponding with container;If it is determined that read-write operation is carried out, then really It is fixed with there occurs the corresponding second timer of the container of read-write operation to restart timing;If it is determined that operation is not written and read, Then after the second timer timing terminates, destroy what is stored without the container that read-write operation occurs in shared memory All data.
- 10. according to the device described in claim any one of 6-8, it is characterised in that described device, in addition to:Enquiry module, for the shared memory being located at according to the corresponding relation, the data inquired about in each container, and Obtain the data stored in the shared memory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710619027.2A CN107463450B (en) | 2017-07-26 | 2017-07-26 | Data processing method and device for container |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710619027.2A CN107463450B (en) | 2017-07-26 | 2017-07-26 | Data processing method and device for container |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107463450A true CN107463450A (en) | 2017-12-12 |
CN107463450B CN107463450B (en) | 2020-01-31 |
Family
ID=60547302
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710619027.2A Active CN107463450B (en) | 2017-07-26 | 2017-07-26 | Data processing method and device for container |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107463450B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108089912A (en) * | 2017-12-19 | 2018-05-29 | 深信服科技股份有限公司 | A kind of virtual machine surpasses emerging system construction method and device with container |
CN108897839A (en) * | 2018-06-26 | 2018-11-27 | 中国联合网络通信集团有限公司 | Data receiver method and system |
CN108959046A (en) * | 2018-06-08 | 2018-12-07 | 联想(北京)有限公司 | A kind of information processing method, equipment and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1820262A (en) * | 2003-06-09 | 2006-08-16 | 范拉诺公司 | Event monitoring and management |
US20150150003A1 (en) * | 2013-11-26 | 2015-05-28 | Parallels | Method for targeted resource virtualization in containers |
CN106357432A (en) * | 2016-08-30 | 2017-01-25 | 厦门鑫点击网络科技股份有限公司 | Hybrid virtual host management platform based on web servers |
-
2017
- 2017-07-26 CN CN201710619027.2A patent/CN107463450B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1820262A (en) * | 2003-06-09 | 2006-08-16 | 范拉诺公司 | Event monitoring and management |
US20150150003A1 (en) * | 2013-11-26 | 2015-05-28 | Parallels | Method for targeted resource virtualization in containers |
CN106357432A (en) * | 2016-08-30 | 2017-01-25 | 厦门鑫点击网络科技股份有限公司 | Hybrid virtual host management platform based on web servers |
Non-Patent Citations (1)
Title |
---|
散尽浮华: "Docker容器数据卷-Volume小结", 《HTTPS://WWW.CNBLOGS.COM/KEVINGRACE/P/6238195.HTML》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108089912A (en) * | 2017-12-19 | 2018-05-29 | 深信服科技股份有限公司 | A kind of virtual machine surpasses emerging system construction method and device with container |
CN108959046A (en) * | 2018-06-08 | 2018-12-07 | 联想(北京)有限公司 | A kind of information processing method, equipment and device |
CN108959046B (en) * | 2018-06-08 | 2020-10-30 | 联想(北京)有限公司 | Information processing method, equipment and device |
CN108897839A (en) * | 2018-06-26 | 2018-11-27 | 中国联合网络通信集团有限公司 | Data receiver method and system |
CN108897839B (en) * | 2018-06-26 | 2020-10-27 | 中国联合网络通信集团有限公司 | Data receiving method and system |
Also Published As
Publication number | Publication date |
---|---|
CN107463450B (en) | 2020-01-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104978261B (en) | The test method of application program, apparatus and system | |
CN107463450A (en) | The data processing method and device of container | |
CN109743222A (en) | A kind of data test method and relevant device | |
CN104899049B (en) | File deletion method and device | |
CN104767655B (en) | A kind of analog result detection method and device | |
CN106815254A (en) | A kind of data processing method and device | |
CN114488843A (en) | Industrial network communication simulation | |
CN105491117A (en) | Flow chart data processing system and method for real time data analysis | |
CN109471843A (en) | A kind of metadata cache method, system and relevant apparatus | |
CN107341054A (en) | Task executing method, device and computer-readable recording medium | |
CN105224541B (en) | Uniqueness control method, information storage means and the device of data | |
CN107704310A (en) | A kind of method, apparatus and equipment for realizing container cluster management | |
CN105760109B (en) | Data migration method and storage array | |
CN110347593A (en) | Flow testing method and device | |
CN104598293B (en) | A kind of method and apparatus of online snapshot | |
CN106776891A (en) | A kind of method and apparatus of file storage | |
CN108241535A (en) | The method, apparatus and server apparatus of resource management | |
CN110019974A (en) | Implementation method and device are bored under chart | |
CN107733785A (en) | A kind of multiple terminals chat message synchronization removal method and device | |
CN107172222A (en) | A kind of date storage method and device based on distributed memory system | |
CN116800671A (en) | Data transmission method, apparatus, computer device, storage medium, and program product | |
CN110008074A (en) | The method, device and equipment of automatic test inquiry hardware information high-level interface | |
CN108306961A (en) | A kind of file block method for down loading and device | |
CN109062181A (en) | The update method and device of vehicle control instruction | |
KR101979161B1 (en) | Artificial Intelligence Learning Data Productivity Improvement System based on Label Type Data Management Using Block Chain, and Method thereof |
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 |