CN114629924A - Method for synchronous operation of business data by container - Google Patents

Method for synchronous operation of business data by container Download PDF

Info

Publication number
CN114629924A
CN114629924A CN202210386414.7A CN202210386414A CN114629924A CN 114629924 A CN114629924 A CN 114629924A CN 202210386414 A CN202210386414 A CN 202210386414A CN 114629924 A CN114629924 A CN 114629924A
Authority
CN
China
Prior art keywords
container
synchronous
sharing
data
mirror image
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
Application number
CN202210386414.7A
Other languages
Chinese (zh)
Other versions
CN114629924B (en
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.)
Beijing Saibo Yunrui Intelligent Technology Co ltd
Original Assignee
Beijing Saibo Yunrui Intelligent Technology 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 Beijing Saibo Yunrui Intelligent Technology Co ltd filed Critical Beijing Saibo Yunrui Intelligent Technology Co ltd
Priority to CN202210386414.7A priority Critical patent/CN114629924B/en
Publication of CN114629924A publication Critical patent/CN114629924A/en
Application granted granted Critical
Publication of CN114629924B publication Critical patent/CN114629924B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method for synchronous operation of service data by a container, which comprises the following steps: s100, constructing a mirror image instruction and a mirror image description through a mirror image source code file to manufacture a mirror image text file; s200, creating and starting a first synchronous container according to the mirror image text file, and creating a first synchronous operation container data volume; s300, creating and starting a second synchronous container, and mounting the second synchronous container to the first synchronous container by adopting data volume mounting; s400, sharing resources between the local container running end and the wireless shared container virtual server through the wireless shared network file system, and synchronously running large-scale wireless shared service data.

Description

Method for synchronous operation of business data by container
Technical Field
The invention relates to the technical field of container data synchronization big data, in particular to a method for a container to perform service data synchronization operation.
Background
At present, the synchronous operation of the common container data is usually performed by adopting a inheritance mode among single containers, and the wireless sharing of large-scale virtual data resources is difficult to realize; for constructing and manufacturing a mirror image text file, a large-scale automatic detection scheme for establishing and starting a synchronous container and a container data volume and carrying out mounting detection is less; how to share resources between the local container operation end and the server end is carried out, and how to carry out large-scale wireless shared service data synchronous operation still needs to be improved; therefore, there is a need for a method for performing service data synchronization operation by a container, so as to at least partially solve the problems in the prior art.
Disclosure of Invention
In the summary section, a series of concepts in a simplified form are introduced, which will be described in further detail in the detailed description section; this summary of the invention is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter.
In order to at least partially solve the above problem, the present invention provides a method for a container to perform service data synchronous operation, including:
s100, constructing a mirror image instruction and a mirror image description through a mirror image source code file to manufacture a mirror image text file;
s200, creating and starting a first synchronous container according to the mirror image text file, and creating a first synchronous operation container data volume;
s300, creating and starting a second synchronous container, and mounting the second synchronous container to the first synchronous container by adopting data volume mounting;
s400, sharing resources between the local container running end and the wireless shared container virtual server through the wireless shared network file system, and synchronously running large-scale wireless shared service data.
Preferably, the S100 includes:
s101, selecting a container private warehouse to obtain a mirror image abstract, and creating a first command designated basic mirror image;
s102, appointing maintainer information and defining environment variable values after the basic mirror image is created;
s103, constructing a mirror image creation execution instruction and a container starting execution instruction, constructing a mirror image description, and making a mirror image text file.
Preferably, the S200 includes:
s201, creating a parent container according to the mirror image text file, creating a first synchronization container, and starting the first synchronization container;
s202, distributing a first starting file system, and starting a first synchronous container by using a container operation instruction;
s203, inputting a container data volume creating instruction, creating a first synchronous operation container data volume, and monitoring the mounting catalog to confirm whether the creation is successful.
Preferably, the S300 includes:
s301, creating a new inheritance container according to the mirror image text file, and creating a second synchronization container;
s302, distributing a second starting file system, and starting a second synchronous container by using a container operation instruction;
s303, mounting the second synchronous container on the first synchronous container by using the data volume mounting, and testing the mounting state.
Preferably, the S400 includes:
s401, loading a wireless shared container virtual server at a local container operation end;
s402, configuring a wireless sharing container virtual server, and storing the configuration of the effective wireless sharing container virtual server;
and S403, performing service data resource sharing and synchronous operation through the network packet wireless explorer.
Preferably, the S102 includes:
s1021, appointing maintainer information and defining environment variable values after the basic mirror image is created;
s1022, the defining the environment variable value step includes: using the initial variable value when the initial variable value is not null; the set variable value is used when the initial variable value is null.
Preferably, the S202 includes:
s2021, distributing a first starting file system by using a container operation instruction, and mounting a first reading-writing layer on the outer surface of the mirror layer;
s2022, bridging a virtual interface from the bridge interface configured by the wireless shared container virtual server to the first synchronous container; and allocating an IP address to the first synchronous container from the address pool, starting the first synchronous container, and executing the container instruction application program.
Preferably, the S303 includes:
s3031, mounting a second synchronous container on the first synchronous container by using data volume mounting, and testing the mounting state;
s3032, the testing the mount state includes: connecting the test module to a virtual server of the wireless shared container, and constructing a virtual test machine for the test module through an operating system; separating a first data volume from a virtual test machine; writing the mounting state information of the second synchronous container into the first data volume; starting a second synchronous container, mounting the second synchronous container on the data volume, and granting a read permission to the second synchronous container; if the second synchronization container reads the first synchronization container information in the data volume, judging that the second synchronization container inherits the first synchronization container and the mounting state is normal; if the second synchronization container does not read the first synchronization container information in the data volume, judging that the second synchronization container does not inherit the first synchronization container, and replacing the data volume until the second synchronization container reads the first synchronization container information in the data volume until the mounting state is normal; after a second synchronous container is started, entering a second directory in the container to newly create a second container file; and mounting the second directory of the second synchronous container to the first directory under the second directory of the first synchronous container, viewing the content under the first directory, and finishing synchronous mounting if the second container file can be seen.
Preferably, the S403 includes:
s4031, look over local container operation end and wireless share container virtual server IP, obtain IP address setting information;
s4032, according to IP address setting information, setting IP of the local container operation end, and connecting a wireless shared container virtual server through a network packet wireless explorer;
s4033, after the wireless shared container virtual server is connected, share resources between the local container operation end and the wireless shared container virtual server, and perform service data resource sharing and synchronous operation.
Preferably, the S2022 includes:
s021, bridging a virtual interface from the bridge interfaces configured by the virtual server of the wireless shared container to the first synchronous container; the wireless sharing container virtual server is responsible for carrying out data detection management monitoring on the sharing database, including carrying out sharing operation deployment; the network bridge interface completes data exchange between each distributed subsystem and the shared system of the shared operation center, and data consistency between each distributed subsystem and the shared system of the shared operation center is realized;
s022, an IP address is distributed to a first synchronous container from the address pool, the first synchronous container is started, and a container instruction application program is executed; arranging a sharing virtual machine for the container and the virtual server, wherein the sharing virtual machine comprises a remote idle virtual machine, a local area network virtual machine or a mobile terminal virtual machine; deploying an address adapter on a shared virtual machine, setting the address adapter according to a data providing method of the existing system, and carrying out connectivity test; the data access IP address provided by the shared operation center is used for completing the data access work; the first synchronization container accesses the IP address through data, and operates shared data, wherein the shared data comprises a designated program for data sharing and a data sharing mode; the sharing operation center inquires a data sharing catalog shared to the sharing operation center; starting a second synchronous container, and making a data sharing request for the first synchronous container shared data to be acquired by the second synchronous container through a sharing operation center; the first synchronization container confirms the data sharing request and sets the effective time range of the sharing authority; the sharing operation center applies the sharing data within the effective time range of the sharing authority; and carrying out service data sharing and synchronous operation.
Compared with the prior art, the invention at least comprises the following beneficial effects:
the invention relates to a method for synchronous operation of business data by a container, which comprises the steps of constructing a mirror image instruction and a mirror image description through a mirror image source code file to manufacture a mirror image text file; creating and starting a first synchronous container according to the mirror image text file, and creating a first synchronous operation container data volume; creating and starting a second synchronous container, and mounting the second synchronous container to the first synchronous container by adopting data volume mounting; sharing resources between a local container operation end and a wireless shared container virtual server through a wireless shared network file system, and performing large-scale wireless shared service data synchronous operation; constructing a mirror image creation execution instruction and a container starting execution instruction, constructing a mirror image description, and making a mirror image text file; according to the mirror image text file, a father container is newly built, a first synchronous operation container data volume is built, and a mounting directory can be monitored; a wireless shared container virtual server is loaded at a local container operation end to perform service data resource sharing synchronous operation; large-scale virtual data resource wireless sharing can be carried out; large-scale automatic detection of mounting detection can be carried out; the method can be used for sharing resources between the local container operation end and the server end and carrying out large-scale wireless shared service data synchronous operation.
Additional advantages, objects, and features of the invention will be set forth in part in the description which follows and in part will become apparent to those having ordinary skill in the art upon examination of the following or may be learned from practice of the invention.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
fig. 1 is a diagram illustrating steps of a method for performing service data synchronous operation by a container according to the present invention.
Fig. 2 is a diagram of an embodiment 2 of a method for performing service data synchronous operation by a container according to the present invention.
Fig. 3 is a diagram of an embodiment 3 of a method for performing service data synchronous operation by a container according to the present invention.
Detailed Description
The present invention is further described in detail below with reference to the drawings and examples so that those skilled in the art can implement the invention with reference to the description; as shown in fig. 1-3, the present invention provides a method for a container to perform service data synchronous operation, including:
s100, constructing a mirror image instruction and a mirror image description through a mirror image source code file to construct and manufacture a mirror image text file;
s200, creating and starting a first synchronous container according to the mirror image text file, and creating a first synchronous operation container data volume;
s300, creating and starting a second synchronous container, and mounting the second synchronous container to the first synchronous container by using data volume mounting;
s400, sharing resources between the local container running end and the wireless shared container virtual server through the wireless shared network file system, and performing service data synchronous running.
The working principle of the technical scheme is that a mirror image instruction and a mirror image description are constructed through a mirror image source code file to manufacture a mirror image text file; creating and starting a first synchronous container according to the mirror image text file, and creating a first synchronous operation container data volume; creating and starting a second synchronous container, and mounting the second synchronous container to the first synchronous container by adopting data volume mounting; sharing resources between a local container operation end and a wireless shared container virtual server through a wireless shared network file system, and performing large-scale wireless shared service data synchronous operation; creating and starting a first synchronous container according to the mirror image text file, and creating a first synchronous operation container data volume; creating and starting a second synchronous container, and mounting the second synchronous container to the first synchronous container by adopting data volume mounting; and sharing resources between the local container operation end and the wireless shared container virtual server through a wireless shared network file system, and performing large-scale wireless shared service data synchronous operation.
The method for the synchronous operation of the service data by the container has the advantages that the mirror image text file is manufactured by constructing the mirror image instruction and the mirror image description through the mirror image source code file; creating and starting a first synchronous container according to the mirror image text file, and creating a first synchronous operation container data volume; creating and starting a second synchronous container, and mounting the second synchronous container to the first synchronous container by adopting data volume mounting; sharing resources between a local container operation end and a wireless shared container virtual server through a wireless shared network file system, and performing large-scale wireless shared service data synchronous operation; constructing a mirror image creation execution instruction and a container starting execution instruction, constructing a mirror image description, and making a mirror image text file; according to the mirror image text file, a father container is newly built, a first synchronous operation container data volume is built, and a mounting directory can be monitored; a wireless shared container virtual server is loaded at a local container operation end to perform service data resource sharing synchronous operation; large-scale virtual data resource wireless sharing can be carried out; large-scale automatic detection of mounting detection can be carried out; the method can share resources between the local container operation end and the server end, and perform large-scale wireless shared service data synchronous operation.
In one embodiment, the S100 includes:
s101, selecting a container private warehouse to obtain a mirror image abstract, and creating a first command designated basic mirror image;
s102, appointing maintainer information and defining environment variable values after the basic mirror image is created;
s103, constructing a mirror image creation execution instruction and a container starting execution instruction, constructing a mirror image description, and making a mirror image text file.
The working principle of the technical scheme is that a container private warehouse is selected to obtain a mirror image abstract, and a first command designated basic mirror image is created; appointing maintainer information and defining environment variable values after the basic mirror image is created; and constructing an image creating execution instruction and a container starting execution instruction, constructing an image description, and making an image text file.
The technical scheme has the advantages that the mirror image abstract can be obtained by selecting the container private warehouse, and the first command appointed basic mirror image is created; appointing maintainer information and defining environment variable values after the basic mirror image is created; constructing a mirror image creation execution instruction and a container starting execution instruction, constructing a mirror image description, and making a mirror image text file; specifying maintainer information and defining environment variables and building mirror specifications provides a better basis for container creation operations.
In one embodiment, the S200 includes:
s201, creating a parent container according to the mirror image text file, creating a first synchronization container, and starting the first synchronization container;
s202, distributing a first starting file system, and starting a first synchronous container by using a container operation instruction;
s203, inputting a container data volume creating instruction, creating a first synchronous operation container data volume, and monitoring the mount directory to confirm whether the creation is successful.
The working principle of the technical scheme is that a father container is newly built according to the mirror image text file by utilizing the creation relation of the container and the data volume mode, a first synchronization container is created, and the first synchronization container is started; allocating a first starting file system, and starting a first synchronous container by using a container operation instruction; and inputting a container data volume creating instruction, creating a first synchronous operation container data volume, and monitoring the mounting catalog to confirm whether the creation is successful.
The technical scheme has the beneficial effects that a father container is newly built according to the mirror image text file, a first synchronization container is created, and the first synchronization container is started; allocating a first starting file system, and starting a first synchronous container by using a container operation instruction; inputting a container data volume creating instruction, creating a first synchronous operation container data volume, and monitoring a mount directory to confirm whether the creation is successful; creating a parent container according to the mirror image text file by using the creation relationship of the container and the data volume mode, creating a first synchronous container, and starting the first synchronous container; allocating a first starting file system, and starting a first synchronous container by using a container operation instruction; inputting a container data volume creating instruction, creating a first synchronous operation container data volume, and monitoring a mount directory to confirm whether the creation is successful; the creation power can be improved.
In one embodiment, the S300 includes:
s301, creating a second synchronization container according to the new inheritance container of the mirror image text file;
s302, distributing a second starting file system, and starting a second synchronous container by using a container operation instruction;
s303, mounting the second synchronous container on the first synchronous container by using the data volume mounting, and testing the mounting state.
The technical scheme has the working principle that by utilizing the inheritance principle among containers, an inheritance container is newly established according to the mirror image text file, and a second synchronization container is established; allocating a second starting file system, and starting a second synchronous container by using a container operation instruction; and mounting the second synchronous container on the first synchronous container by using the data volume mounting, and testing the mounting state.
The technical scheme has the beneficial effects that a inheritance container is newly established through the mirror image text file, and a second synchronization container is established; allocating a second starting file system, and starting a second synchronous container by using a container operation instruction; mounting the second synchronous container on the first synchronous container by using the data volume mounting, and testing the mounting state; inheritance association can be established and mount success rate can be improved.
In one embodiment, the S400 includes:
s401, loading a wireless shared container virtual server at a local container operation end;
s402, configuring a wireless sharing container virtual server, and storing the configuration of the effective wireless sharing container virtual server;
and S403, performing service data resource sharing and synchronous operation through the network packet wireless explorer.
The working principle of the technical scheme is that a wireless shared container virtual server is loaded at a local container running end by utilizing wireless transmission and sharing; configuring a wireless sharing container virtual server, and storing the configuration of the effective wireless sharing container virtual server; and performing service data resource sharing and synchronous operation through the network packet wireless explorer.
The technical scheme has the advantages that the wireless sharing container virtual server is loaded at the running end of the local container through wireless transmission and sharing; configuring a wireless sharing container virtual server, and storing the configuration of the effective wireless sharing container virtual server; performing service data resource sharing and synchronous operation through a network packet wireless explorer; the method can improve the sharing scale of the service data resources and can carry out wireless sharing.
In one embodiment, the S102 includes:
s1021, appointing maintainer information and defining environment variable values after the basic mirror image is created;
s1022, the defining the environment variable value step includes: using the initial variable value when the initial variable value is not null; the set variable value is used when the initial variable value is null.
The working principle of the technical scheme is that setting of environment variables is utilized, maintainer information is designated after a basic mirror image is created, and environment variable values are defined; the defining of the environment variable values comprises: using the initial variable value when the initial variable value is not null; the set variable value is used when the initial variable value is null.
The technical scheme has the advantages that maintainer information is designated and environment variable values are defined after the basic mirror image is created; the defining of the environment variable values comprises: using the initial variable value when the initial variable value is not null; the set variable value is used when the initial variable value is null.
In one embodiment, the S202 includes:
s2021, distributing a first starting file system by using a container operation instruction, and mounting a first reading-writing layer on the outer surface of the mirror layer;
s2022, bridging a virtual interface from the bridge interfaces configured by the wireless shared container virtual server to the first synchronous container; and allocating an IP address to the first synchronous container from the address pool, starting the first synchronous container, and executing the container instruction application program.
The working principle of the technical scheme is that a bridge bridging principle is utilized, a container operation instruction is used for distributing a first starting file system, and a first read-write layer is mounted on the outer surface of a mirror layer; bridging a virtual interface from a bridge interface configured by a wireless shared container virtual server to a first synchronization container; and allocating an IP address to the first synchronous container from the address pool, starting the first synchronous container, and executing the container instruction application program.
The technical scheme has the advantages that a first read-write layer is mounted outside a mirror image layer by utilizing a bridge bridging principle, a virtual interface is bridged into a first synchronous container from a bridge interface configured by a wireless shared container virtual server, an IP address is distributed to the first synchronous container from an address pool, the first synchronous container is started, and a container instruction application program is executed; the efficiency of interface configuration and IP address allocation is improved.
In one embodiment, the S303 includes:
s3031, mounting a second synchronous container on the first synchronous container by using data volume mounting, and testing the mounting state;
s3032, the testing the mount state includes: connecting the test module to a virtual server of the wireless shared container, and constructing a virtual test machine for the test module through an operating system; separating a first data volume from a virtual test machine; writing the mounting state information of the second synchronous container into the first data volume; starting a second synchronous container, mounting the second synchronous container on the data volume, and granting a read permission to the second synchronous container; if the second synchronization container reads the first synchronization container information in the data volume, judging that the second synchronization container inherits the first synchronization container and the mounting state is normal; if the second synchronization container does not read the first synchronization container information in the data volume, judging that the second synchronization container does not inherit the first synchronization container, and replacing the data volume until the second synchronization container reads the first synchronization container information in the data volume until the mounting state is normal; after a second synchronous container is started, entering a second directory in the container to newly create a second container file; and mounting the second directory of the second synchronous container to the first directory under the second directory of the first synchronous container, viewing the content under the first directory, and finishing synchronous mounting if the second container file can be seen.
The working principle of the technical scheme is that the second synchronous container is mounted on the first synchronous container by using the mounting of the data volume, and the mounting state is tested; the test mounting state comprises the following steps: connecting the test module to a virtual server of the wireless shared container, and constructing a virtual test machine for the test module through an operating system; separating a first data volume from a virtual test machine; writing the mounting state information of the second synchronous container into the first data volume; starting a second synchronous container, mounting the second synchronous container on the data volume, and granting a read permission to the second synchronous container; if the second synchronization container reads the first synchronization container information in the data volume, judging that the second synchronization container inherits the first synchronization container and the mounting state is normal; if the second synchronization container does not read the first synchronization container information in the data volume, judging that the second synchronization container does not inherit the first synchronization container, and replacing the data volume until the second synchronization container reads the first synchronization container information in the data volume until the mounting state is normal; after a second synchronous container is started, entering a second directory in the container to newly create a second container file; and mounting the second directory of the second synchronous container to the first directory under the second directory of the first synchronous container, viewing the content under the first directory, and finishing synchronous mounting if the second container file can be seen.
The technical scheme has the advantages that the data volume mounting and the mounting state testing can be carried out; connecting the test module to a virtual server of the wireless shared container, and constructing a virtual test machine for the test module through an operating system; separating a first data volume from the virtual test machine; writing the mounting state information of the second synchronous container into the first data volume; starting a second synchronous container, mounting the second synchronous container on the data volume, and granting a read permission to the second synchronous container; if the second synchronization container reads the first synchronization container information in the data volume, judging that the second synchronization container inherits the first synchronization container and the mounting state is normal; if the second synchronization container does not read the first synchronization container information in the data volume, judging that the second synchronization container does not inherit the first synchronization container, and replacing the data volume until the second synchronization container reads the first synchronization container information in the data volume until the mounting state is normal; after a second synchronous container is started, entering a second directory in the container to newly create a second container file; mounting a second directory of a second synchronous container to a first directory under a second directory of the first synchronous container, checking the content under the first directory, and finishing synchronous mounting if a second container file can be seen; the automatic mounting of the data volume can be carried out, and the mounting efficiency is improved.
In one embodiment, the S403 includes:
s4031, checking the IP of the local container operation end and the virtual server of the wireless shared container to obtain IP address setting information;
s4032, set up the local container run end IP according to IP address setting information, and put through the virtual server of wireless shared container through the wireless explorer of network packet;
s4033, after the wireless shared container virtual server is connected, sharing resources between the local container operation end and the wireless shared container virtual server is carried out, and service data resource sharing and synchronous operation are carried out; calculating a data resource sharing utility value, wherein the calculation formula is as follows:
Figure BDA0003593926770000081
wherein, Wgpxni is a data resource sharing utility value, Gxni is a data resource strategy utility value, P is a virtual server bandwidth value, Qxi is a unit spectrum resource utility value, i is an ith wireless sharing container virtual server value, and N is a total wireless sharing container virtual server value.
The working principle of the technical scheme is that the IP address setting information is obtained by checking the IP of the local container operation end and the IP of the wireless sharing container virtual server by utilizing wireless transmission data sharing; setting the IP of a local container running end according to the IP address setting information, and connecting a wireless shared container virtual server through a network packet wireless explorer; after the wireless sharing container virtual server is connected, sharing resources between the local container operation end and the wireless sharing container virtual server, and performing service data resource sharing and synchronous operation; calculating a data resource sharing utility value, wherein the calculation formula is as follows:
Figure BDA0003593926770000091
wherein, Wgpxni is a data resource sharing utility value, Gxni is a data resource strategy utility value, P is a virtual server bandwidth value, Qxi is a unit spectrum resource utility value, i is an ith wireless sharing container virtual server value, and N is a total wireless sharing container virtual server value; by calculating the sharing utility of the data resources, the sharing efficiency and the utilization rate of the service data resources are improved.
The technical scheme has the advantages that IP of the local container operation end and the wireless shared container virtual server are checked, and IP address setting information is obtained; setting IP of a local container operation end according to the IP address setting information, and connecting a wireless sharing container virtual server through a network packet wireless explorer; after the wireless sharing container virtual server is connected, sharing resources between the local container operation end and the wireless sharing container virtual server, and performing service data resource sharing and synchronous operation; calculating a data resource sharing utility value, wherein Wgpxni is the data resource sharing utility value, Gxni is the data resource strategy utility value, P is the virtual server bandwidth value, Qxi is the unit spectrum resource utility value, i is the ith wireless sharing container virtual server value, and N is the total wireless sharing container virtual server value; by calculating the sharing utility of the data resources, the sharing efficiency and the utilization rate of the service data resources are improved, and the sharing utility of the service data resources can be optimized.
In one embodiment, the S2022 includes:
s021, bridging a virtual interface from the bridge interfaces configured by the virtual server of the wireless shared container to the first synchronous container; the wireless sharing container virtual server is responsible for carrying out data detection management monitoring on the sharing database, including carrying out sharing operation deployment; the network bridge interface completes data exchange between each distributed subsystem and the shared system of the shared operation center, and data consistency between each distributed subsystem and the shared system of the shared operation center is realized;
s022, an IP address is distributed to a first synchronous container from the address pool, the first synchronous container is started, and a container instruction application program is executed; arranging a sharing virtual machine for the container and the virtual server, wherein the sharing virtual machine comprises a remote idle virtual machine, a local area network virtual machine or a mobile terminal virtual machine; deploying an address adapter on a shared virtual machine, setting the address adapter according to a data providing method of the existing system, and carrying out connectivity test; the data access IP address provided by the shared operation center is used for completing the data access work; the first synchronization container accesses the IP address through data, and operates shared data, wherein the shared data comprises a designated program for data sharing and a data sharing mode; the sharing operation center inquires a data sharing catalog shared to the sharing operation center; starting a second synchronous container, and making a data sharing request for the first synchronous container shared data to be acquired by the second synchronous container through a sharing operation center; the first synchronization container confirms the data sharing request and sets the effective time range of the sharing authority; the sharing operation center applies sharing data within the effective time range of the sharing authority; and carrying out service data sharing and synchronous operation.
The working principle of the technical scheme is that a virtual interface is bridged to a first synchronization container from a bridge interface configured by a wireless sharing container virtual server by utilizing a bridge bridging virtual interface and distributed sharing operation; the wireless sharing container virtual server is responsible for carrying out data detection management monitoring on the sharing database, including carrying out sharing operation deployment; the network bridge interface completes data exchange between each distributed subsystem and the shared system of the shared operation center, and data consistency between each distributed subsystem and the shared system of the shared operation center is realized; allocating an IP address from the address pool to the first synchronous container, starting the first synchronous container, and executing a container instruction application program; arranging a sharing virtual machine for the container and the virtual server, wherein the sharing virtual machine comprises a remote idle virtual machine, a local area network virtual machine or a mobile terminal virtual machine; deploying an address adapter on a shared virtual machine, setting the address adapter according to a data providing method of the existing system, and carrying out connectivity test; the data access IP address provided by the shared operation center is used for completing the data access work; the first synchronization container accesses the IP address through data, and operates shared data, wherein the shared data comprises a designated program for data sharing and a data sharing mode; the sharing operation center inquires a data sharing directory shared to the sharing operation center; starting a second synchronous container, and making a data sharing request for the first synchronous container shared data to be acquired by the second synchronous container through a sharing operation center; the first synchronization container confirms the data sharing request and sets the effective time range of the sharing authority; the sharing operation center applies sharing data within the effective time range of the sharing authority; and carrying out service data sharing and synchronous operation.
The technical scheme has the advantages that the bridge virtual interface can be selected from bridge interfaces configured by the wireless shared container virtual server; the wireless sharing container virtual server can carry out data detection management monitoring on the sharing database, including sharing operation deployment; the network bridge interface completes data exchange between each distributed subsystem and the shared system of the shared operation center, and data consistency between each distributed subsystem and the shared system of the shared operation center is realized; allocating an IP address from the address pool to the first synchronous container, starting the first synchronous container, and executing a container instruction application program; arranging a sharing virtual machine for the container and the virtual server, wherein the sharing virtual machine comprises a remote idle virtual machine, a local area network virtual machine or a mobile terminal virtual machine; deploying an address adapter on a shared virtual machine, setting the address adapter according to a data providing method of the existing system, and carrying out connectivity test; the data access IP address provided by the shared operation center is used for completing the data access work; the first synchronization container accesses the IP address through data, and operates shared data, wherein the shared data comprises a designated program for data sharing and a data sharing mode; the sharing operation center inquires a data sharing directory shared to the sharing operation center; starting a second synchronous container, and making a data sharing request for the first synchronous container shared data to be acquired by the second synchronous container through a sharing operation center; the first synchronization container confirms the data sharing request and sets the effective time range of the sharing authority; the sharing operation center applies sharing data within the effective time range of the sharing authority; carrying out service data sharing and synchronous operation; and large-scale wireless sharing service data synchronous operation can be performed.
While embodiments of the invention have been described above, it is not intended to be limited to the details shown, described and illustrated herein, but is to be accorded the widest scope consistent with the principles and novel features herein disclosed, and to such extent that such modifications are readily available to those skilled in the art, and it is not intended to be limited to the details shown and described herein without departing from the general concept as defined by the appended claims and their equivalents.

Claims (10)

1. A method for a container to perform service data synchronous operation is characterized by comprising the following steps:
s100, constructing a mirror image instruction and a mirror image description through a mirror image source code file to manufacture a mirror image text file;
s200, creating and starting a first synchronous container according to the mirror image text file, and creating a first synchronous operation container data volume;
s300, creating and starting a second synchronous container, and mounting the second synchronous container to the first synchronous container by adopting data volume mounting;
s400, sharing resources between the local container running end and the wireless shared container virtual server through the wireless shared network file system, and synchronously running large-scale wireless shared service data.
2. The method for the container to perform the service data synchronous operation according to claim 1, wherein the S100 comprises:
s101, selecting a container private warehouse to obtain a mirror image abstract, and creating a first command designated basic mirror image;
s102, appointing maintainer information and defining environment variable values after the basic mirror image is created;
s103, constructing a mirror image creation execution instruction and a container starting execution instruction, constructing a mirror image description, and making a mirror image text file.
3. The method for the container to perform the service data synchronous operation according to claim 1, wherein the S200 includes:
s201, creating a parent container according to the mirror image text file, creating a first synchronization container, and starting the first synchronization container;
s202, distributing a first starting file system, and starting a first synchronous container by using a container operation instruction;
s203, inputting a container data volume creating instruction, creating a first synchronous operation container data volume, and monitoring the mount directory to confirm whether the creation is successful.
4. The method for the container to perform the service data synchronous operation according to claim 1, wherein the S300 comprises:
s301, creating a new inheritance container according to the mirror image text file, and creating a second synchronization container;
s302, distributing a second starting file system, and starting a second synchronous container by using a container operation instruction;
s303, mounting the second synchronous container on the first synchronous container by using the data volume mounting, and testing the mounting state.
5. The method for the container to perform the service data synchronous operation according to claim 1, wherein the S400 comprises:
s401, loading a wireless shared container virtual server at a local container operation end;
s402, configuring a wireless sharing container virtual server, and storing the configuration of the effective wireless sharing container virtual server;
and S403, performing service data resource sharing and synchronous operation through the network packet wireless explorer.
6. The method for performing service data synchronous operation on a container according to claim 2, wherein the S102 includes:
s1021, appointing maintainer information and defining environment variable values after the basic mirror image is created;
s1022, the defining the environment variable value step includes: using the initial variable value when the initial variable value is not null; the set variable value is used when the initial variable value is null.
7. The method for the container to perform the service data synchronous operation according to claim 3, wherein the S202 includes:
s2021, distributing a first starting file system by using a container operation instruction, and mounting a first reading-writing layer outside the mirror image layer;
s2022, bridging a virtual interface from the bridge interface configured by the wireless shared container virtual server to the first synchronous container; and allocating an IP address to the first synchronous container from the address pool, starting the first synchronous container, and executing the container instruction application program.
8. The method of claim 4, wherein the S303 includes:
s3031, mounting a second synchronous container on the first synchronous container by using data volume mounting, and testing the mounting state;
s3032, the testing the mount state includes: connecting the test module to a virtual server of the wireless shared container, and constructing a virtual test machine for the test module through an operating system; separating a first data volume from a virtual test machine; writing the mounting state information of the second synchronous container into the first data volume; starting a second synchronous container, mounting the second synchronous container on the data volume, and granting a read permission to the second synchronous container; if the second synchronization container reads the first synchronization container information in the data volume, judging that the second synchronization container inherits the first synchronization container and the mounting state is normal; if the second synchronization container does not read the first synchronization container information in the data volume, judging that the second synchronization container does not inherit the first synchronization container, and replacing the data volume until the second synchronization container reads the first synchronization container information in the data volume until the mounting state is normal; after a second synchronous container is started, entering a second directory in the container to newly create a second container file; and mounting the second directory of the second synchronous container to the first directory under the second directory of the first synchronous container, viewing the content under the first directory, and finishing synchronous mounting if the second container file can be seen.
9. The method for performing service data synchronous operation on a container according to claim 5, wherein the S403 includes:
s4031, checking the IP of the local container operation end and the virtual server of the wireless shared container to obtain IP address setting information;
s4032, according to IP address setting information, setting IP of the local container operation end, and connecting a wireless shared container virtual server through a network packet wireless explorer;
s4033, after the wireless shared container virtual server is connected, share resources between the local container operation end and the wireless shared container virtual server, and perform service data resource sharing and synchronous operation.
10. The method for the container to perform the service data synchronous operation according to claim 7, wherein the S2022 comprises:
s021, bridging a virtual interface from the bridge interfaces configured by the virtual server of the wireless shared container to the first synchronous container; the wireless sharing container virtual server is responsible for carrying out data detection management monitoring on the sharing database, including carrying out sharing operation deployment; the network bridge interface completes data exchange between each distributed subsystem and the shared system of the shared operation center, and data consistency between each distributed subsystem and the shared system of the shared operation center is realized;
s022, an IP address is distributed to a first synchronous container from an address pool, the first synchronous container is started, and a container instruction application program is executed; arranging a sharing virtual machine for the container and the virtual server, wherein the sharing virtual machine comprises a remote idle virtual machine, a local area network virtual machine or a mobile terminal virtual machine; deploying an address adapter on a shared virtual machine, setting the address adapter according to a data providing method of the existing system, and carrying out connectivity test; the data access IP address provided by the shared operation center is used for completing the data access work; the first synchronization container accesses the IP address through data, and operates shared data, wherein the shared data comprises a designated program for data sharing and a data sharing mode; the sharing operation center inquires a data sharing catalog shared to the sharing operation center; starting a second synchronous container, and the second synchronous container provides a data sharing request for the first synchronous container shared data to be acquired through a sharing operation center; the first synchronization container confirms the data sharing request and sets the effective time range of the sharing authority; the sharing operation center applies sharing data within the effective time range of the sharing authority; and carrying out service data sharing and synchronous operation.
CN202210386414.7A 2022-04-13 2022-04-13 Method for synchronous operation of service data by container Active CN114629924B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210386414.7A CN114629924B (en) 2022-04-13 2022-04-13 Method for synchronous operation of service data by container

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210386414.7A CN114629924B (en) 2022-04-13 2022-04-13 Method for synchronous operation of service data by container

Publications (2)

Publication Number Publication Date
CN114629924A true CN114629924A (en) 2022-06-14
CN114629924B CN114629924B (en) 2024-02-13

Family

ID=81905604

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210386414.7A Active CN114629924B (en) 2022-04-13 2022-04-13 Method for synchronous operation of service data by container

Country Status (1)

Country Link
CN (1) CN114629924B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060143622A1 (en) * 2004-12-29 2006-06-29 Motorola, Inc. Method and apparatus for running different types of applications on a wireless mobile device
US20100262586A1 (en) * 2009-04-10 2010-10-14 PHD Virtual Technologies Virtual machine data replication
US20120271903A1 (en) * 2011-04-19 2012-10-25 Michael Luna Shared resource and virtual resource management in a networked environment
CN105681933A (en) * 2016-04-21 2016-06-15 北京电信规划设计院有限公司 Base station wireless resource sharing realization method based on passive optical network
WO2018001030A1 (en) * 2016-06-27 2018-01-04 中兴通讯股份有限公司 Method and device for controlling virtualized broadband remote access server (vbras), and communication system
WO2019100605A1 (en) * 2017-11-21 2019-05-31 平安科技(深圳)有限公司 Platform-as-a-service paas container platform construction method, server, system, and storage medium
CN111542064A (en) * 2020-04-22 2020-08-14 中国科学院计算技术研究所 Container arrangement management system and arrangement method for wireless access network
CN111708605A (en) * 2020-05-29 2020-09-25 北京赛博云睿智能科技有限公司 Intelligent operation and maintenance supporting method and system
CN112882793A (en) * 2021-02-19 2021-06-01 杭州谐云科技有限公司 Method and system for sharing container resources
CN114026878A (en) * 2019-05-23 2022-02-08 Vid拓展公司 Video-based point cloud streaming

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060143622A1 (en) * 2004-12-29 2006-06-29 Motorola, Inc. Method and apparatus for running different types of applications on a wireless mobile device
US20100262586A1 (en) * 2009-04-10 2010-10-14 PHD Virtual Technologies Virtual machine data replication
US20120271903A1 (en) * 2011-04-19 2012-10-25 Michael Luna Shared resource and virtual resource management in a networked environment
CN105681933A (en) * 2016-04-21 2016-06-15 北京电信规划设计院有限公司 Base station wireless resource sharing realization method based on passive optical network
WO2018001030A1 (en) * 2016-06-27 2018-01-04 中兴通讯股份有限公司 Method and device for controlling virtualized broadband remote access server (vbras), and communication system
WO2019100605A1 (en) * 2017-11-21 2019-05-31 平安科技(深圳)有限公司 Platform-as-a-service paas container platform construction method, server, system, and storage medium
CN114026878A (en) * 2019-05-23 2022-02-08 Vid拓展公司 Video-based point cloud streaming
CN111542064A (en) * 2020-04-22 2020-08-14 中国科学院计算技术研究所 Container arrangement management system and arrangement method for wireless access network
CN111708605A (en) * 2020-05-29 2020-09-25 北京赛博云睿智能科技有限公司 Intelligent operation and maintenance supporting method and system
CN112882793A (en) * 2021-02-19 2021-06-01 杭州谐云科技有限公司 Method and system for sharing container resources

Also Published As

Publication number Publication date
CN114629924B (en) 2024-02-13

Similar Documents

Publication Publication Date Title
CN107566165B (en) Method and system for discovering and deploying available resources of power cloud data center
US7730488B2 (en) Computer resource management method in distributed processing system
US8056084B2 (en) Method and system for dynamically reallocating a resource among operating systems without rebooting of the computer system
CN103516547B (en) A kind of network parameter distribution method and device
US20190050248A1 (en) Control apparatus, vnf deployment destination selection method and program
CN102014159A (en) Layered resource reservation system under cloud computing environment
CN111290712B (en) Block device creating method and device, cloud computing management system and storage medium
CN110719209A (en) Cluster network configuration method, system, equipment and readable storage medium
CN111857951A (en) Containerized deployment platform and deployment method
CN113438295A (en) Container group address allocation method, device, equipment and storage medium
CN102866948A (en) Testing platform and testing method for embedded basic software
CN114996750A (en) Data sharing method and device
CN114443223A (en) Bare computer disk management method, device and medium
CN114629924B (en) Method for synchronous operation of service data by container
CN112433983B (en) File system management method supporting multi-job parallel IO performance isolation
CN104281587A (en) Connection establishing method and device
CN115129250A (en) Object storage method and device and readable storage medium
CN113742030B (en) Cross-zone service configuration method, device and storage medium
CN115048222A (en) Hardware logic recombination method, device, system, electronic equipment and storage medium
CN109257201B (en) License sending method and device
CN108762883B (en) Configuration structure and configuration method for realizing virtualization management scheduling of physical platform
CN107294765B (en) Network function virtualization self-adaptive trust management method
EP4345615A1 (en) Storage resource management method, apparatus, and system for container cluster
CN1659486A (en) Measuring device for process engineering and operating method for a measuring device
CN113568708B (en) Platform creation method, device and equipment

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