CN114629924B - Method for synchronous operation of service data by container - Google Patents

Method for synchronous operation of service data by container Download PDF

Info

Publication number
CN114629924B
CN114629924B CN202210386414.7A CN202210386414A CN114629924B CN 114629924 B CN114629924 B CN 114629924B CN 202210386414 A CN202210386414 A CN 202210386414A CN 114629924 B CN114629924 B CN 114629924B
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.)
Active
Application number
CN202210386414.7A
Other languages
Chinese (zh)
Other versions
CN114629924A (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

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

Abstract

The invention discloses a method for synchronously operating 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 to mount the second synchronous container on 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 performing large-scale wireless shared service data synchronous running.

Description

Method for synchronous operation of service data by container
Technical Field
The invention relates to the technical field of large data synchronization of container data, in particular to a method for synchronizing business data of a container.
Background
At present, the synchronous operation of general container data is usually carried out by adopting a single inter-container inheritance mode, and the wireless sharing of large-scale virtual data resources is difficult to realize; for constructing and making mirror image text files, a synchronous container and a container data volume are created and started, and a large-scale automatic detection scheme for mounting detection is less; how to share resources between the local container operation end and the server end and how to perform large-scale wireless sharing service data synchronous operation still need to be improved; therefore, there is a need for a method for performing service data synchronous operation by a container, so as to at least partially solve the problems in the prior art.
Disclosure of Invention
A series of concepts in simplified form are introduced in the summary section, which will be described in further detail in the detailed description section; the summary of the invention is not intended to define the key features and 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.
To at least partially solve the above problems, the present invention provides a method for performing service data synchronous operation by using a container, 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 to mount the second synchronous container on 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 performing large-scale wireless shared service data synchronous running.
Preferably, the S100 includes:
s101, selecting a container private warehouse to acquire an image abstract, and creating a first command designated basic image;
s102, after the basic mirror image is created, designating maintainer information and defining environment variable values;
s103, constructing a mirror image creation execution instruction and a container starting execution instruction, constructing a mirror image description and manufacturing a mirror image text file.
Preferably, the S200 includes:
s201, creating a first synchronous container according to a newly built father container of the mirror image text file, and starting the first synchronous container;
s202, a first starting file system is allocated, and a container running instruction is used for starting a first synchronous container;
s203, inputting a container data volume creation instruction, creating a first synchronous operation container data volume, and monitoring a mounting catalog to confirm whether the creation is successful.
Preferably, the S300 includes:
s301, creating a second synchronous container according to a new inheritance container of the mirror image text file;
s302, a second starting file system is allocated, and a second synchronous container is started by using a container running 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 running end;
s402, configuring a wireless shared container virtual server, and storing the effective wireless shared container virtual server configuration;
s403, carrying out service data resource sharing synchronous operation through a network packet wireless explorer.
Preferably, the S102 includes:
s1021, designating maintainer information and defining environment variable values after the basic image is created;
s1022, the step of defining the environment variable value comprises the following steps: using the initial variable value when the initial variable value is not empty; the set variable value is used when the initial variable value is empty.
Preferably, the step S202 includes:
s2021, distributing a first starting file system by using a container running instruction, and mounting a first read-write layer outside the mirror layer;
s2022, bridging a virtual interface from the network bridge interface configured by the virtual server of the wireless shared container to the first synchronous container; and allocating an IP address from the address pool to the first synchronous container, starting the first synchronous container, and executing the container instruction application program.
Preferably, the step S303 includes:
s3031, mounting a second synchronous container on the first synchronous container by using a data volume mounting, and testing a mounting state;
s3032, testing the mounting state comprises the following steps: connecting the test module to a wireless shared container virtual server, and constructing a virtual test machine for the test module through an operating system; separating the virtual testing machine from the first data volume; writing second synchronous container mounting state information into the first data volume; starting a second synchronous container, mounting the second synchronous container on the data volume, and granting the second synchronous container read permission; if the second synchronous container reads the information of the first synchronous container in the data volume, judging that the second synchronous container inherits the first synchronous container and the mounting state is normal; if the second synchronous container does not read the first synchronous container information in the data volume, judging that the second synchronous container does not inherit the first synchronous container, and replacing the data volume until the second synchronous container reads the first synchronous container information in the data volume, until the mounting state is normal; after the second synchronous container is started, a second container file is newly built in a second catalog in the container; and mounting the second catalog of the second synchronous container to the first catalog of the first synchronous container under the second catalog, checking the content under the first catalog, and finishing synchronous mounting if the second container file can be seen.
Preferably, the step S403 includes:
s4031, checking the IP of the local container running end and the wireless shared container virtual server to obtain IP address setting information;
s4032, setting the IP of the running end of the local container according to the IP address setting information, and connecting a wireless shared container virtual server through a network packet wireless explorer;
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 business data resource sharing synchronous operation is carried out.
Preferably, the S2022 includes:
s021, bridging a virtual interface from the network bridge interface configured by the virtual server of the wireless shared container to the first synchronous container; the wireless shared container virtual server is responsible for carrying out data detection, management and monitoring on the shared database, including carrying out shared operation deployment; the network bridge interface completes data exchange between each distributed subsystem and the sharing system of the sharing operation center, and realizes data consistency between each distributed subsystem and the sharing system of the sharing operation center;
s022, distributing an IP address from the address pool to a first synchronous container, starting the first synchronous container, and executing a container instruction application program; arranging a shared virtual machine for the container and the virtual server, wherein the shared 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 the shared virtual machine, setting the address adapter according to a data providing method of the existing system, and performing connectivity test; the data provided by the sharing operation center is used for accessing the IP address, so that the data access work is completed; the first synchronous container is accessed to an IP address through data, and the shared data is operated, wherein the operation comprises the steps of specifying a program for data sharing and setting a sharing mode of the data; the sharing operation center inquires a data sharing catalog shared to the sharing operation center; starting a second synchronous container, and providing a data sharing request for the first synchronous container to be acquired by the second synchronous container through a sharing operation center; the first synchronous container confirms the data sharing request and sets the effective time range of the sharing authority; the sharing operation center applies sharing data in the sharing authority effective time range; and carrying out service data sharing synchronous operation.
Compared with the prior art, the invention at least comprises the following beneficial effects:
the invention relates to a method for synchronously operating service data of a container, which constructs mirror image instructions and mirror image instructions through mirror image source code files to manufacture mirror image text files; 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 on the first synchronous container by adopting data volume mounting; the method comprises the steps of sharing resources between a local container running end and a wireless shared container virtual server through a wireless shared network file system, and performing large-scale wireless shared service data synchronous running; constructing a mirror image creation execution instruction and a container starting execution instruction, constructing a mirror image description and manufacturing a mirror image text file; a father container is newly built according to the mirror image text file, and a first synchronous operation container data volume is created, so that the mounting catalogue can be monitored; the wireless shared container virtual server is loaded at the local container operation end, so that service data resource sharing synchronous operation can be performed; the large-scale virtual data resource wireless sharing can be performed; the large-scale automatic detection of mounting detection can be performed; the method can share resources between the local container operation end and the server end, and can perform large-scale wireless sharing business 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 are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate the invention and together with the embodiments of the invention, serve to explain the invention. In the drawings:
fig. 1 is a step diagram 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 using 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 using a container according to the present invention.
Detailed Description
The present invention is described in further detail below with reference to the drawings and examples to enable those skilled in the art to practice the same and to refer to the description; as shown in fig. 1-3, the present invention provides a method for performing service data synchronous operation by a container, including:
s100, constructing a mirror image text file through a mirror image source code file construction mirror image instruction and a mirror image description;
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 on the first synchronous container by using the 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 text file is manufactured by constructing a mirror image instruction and a mirror image description through a 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 on the first synchronous container by adopting data volume mounting; the method comprises the steps of sharing resources between a local container running end and a wireless shared container virtual server through a wireless shared network file system, and performing large-scale wireless shared service data synchronous running; 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 on the first synchronous container by adopting data volume mounting; and sharing resources between the local container running end and the wireless shared container virtual server through the wireless shared network file system, and performing large-scale wireless shared service data synchronous running.
The technical scheme has the beneficial effects that the method for synchronously running the service data of the container constructs the mirror image instruction and the mirror image description to manufacture the mirror image text file 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 on the first synchronous container by adopting data volume mounting; the method comprises the steps of sharing resources between a local container running end and a wireless shared container virtual server through a wireless shared network file system, and performing large-scale wireless shared service data synchronous running; constructing a mirror image creation execution instruction and a container starting execution instruction, constructing a mirror image description and manufacturing a mirror image text file; a father container is newly built according to the mirror image text file, and a first synchronous operation container data volume is created, so that the mounting catalogue can be monitored; the wireless shared container virtual server is loaded at the local container operation end, so that service data resource sharing synchronous operation can be performed; the large-scale virtual data resource wireless sharing can be performed; the large-scale automatic detection of mounting detection can be performed; the method can share resources between the local container operation end and the server end, and can perform large-scale wireless sharing business data synchronous operation.
In one embodiment, the S100 includes:
s101, selecting a container private warehouse to acquire an image abstract, and creating a first command designated basic image;
s102, after the basic mirror image is created, designating maintainer information and defining environment variable values;
s103, constructing a mirror image creation execution instruction and a container starting execution instruction, constructing a mirror image description and manufacturing a mirror image text file.
The working principle of the technical scheme is that a container private warehouse is selected to acquire a mirror image abstract, and a first command designated basic mirror image is created; designating maintainer information and defining environment variable values after the basic image is created; and constructing a mirror image creation execution instruction and a container starting execution instruction, constructing a mirror image description, and manufacturing a mirror image text file.
The technical scheme has the advantages that the image abstract can be obtained by selecting the container private warehouse, and a first command designated basic image is created; designating maintainer information and defining environment variable values after the basic image is created; constructing a mirror image creation execution instruction and a container starting execution instruction, constructing a mirror image description and manufacturing a mirror image text file; specifying maintainer information and defining environment variables and building mirror descriptions provides a better basis for the container creation operation.
In one embodiment, the S200 includes:
s201, creating a first synchronous container according to a newly built father container of the mirror image text file, and starting the first synchronous container;
s202, a first starting file system is allocated, and a container running instruction is used for starting a first synchronous container;
s203, inputting a container data volume creation instruction, creating a first synchronous operation container data volume, and monitoring a mounting catalog to confirm whether the creation is successful.
The working principle of the technical scheme is that a father container is newly built according to a mirror image text file by utilizing the creation relation of the containers and the data volume mode, a first synchronous container is created, and the first synchronous container is started; distributing a first starting file system, and starting a first synchronous container by using a container running instruction; and inputting a container data volume creation 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 advantages that a father container is newly built according to the mirror image text file, a first synchronous container is created, and the first synchronous container is started; distributing a first starting file system, and starting a first synchronous container by using a container running instruction; inputting a container data volume creation instruction, creating a first synchronous operation container data volume, and monitoring a mounting catalog to confirm whether the creation is successful; creating a first synchronous container according to the creation relation of the containers and the data volume mode, and creating a parent container according to the mirror image text file, and starting the first synchronous container; distributing a first starting file system, and starting a first synchronous container by using a container running instruction; inputting a container data volume creation instruction, creating a first synchronous operation container data volume, and monitoring a mounting catalog to confirm whether the creation is successful; the creation success rate can be improved.
In one embodiment, the S300 includes:
s301, creating a second synchronous container according to a new inheritance container of the mirror image text file;
s302, a second starting file system is allocated, and a second synchronous container is started by using a container running instruction;
s303, mounting the second synchronous container on the first synchronous container by using the data volume mounting, and testing the mounting state.
The working principle of the technical scheme is that an inheritance container is newly built according to a mirror image text file by utilizing the inter-container inheritance principle, and a second synchronous container is created; distributing a second starting file system, and starting a second synchronous container by using a container running 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 an inheritance container is newly built through the mirror image text file, and a second synchronous container is created; distributing a second starting file system, and starting a second synchronous container by using a container running 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 the mounting success rate is improved.
In one embodiment, the S400 includes:
s401, loading a wireless shared container virtual server at a local container running end;
s402, configuring a wireless shared container virtual server, and storing the effective wireless shared container virtual server configuration;
s403, carrying out service data resource sharing synchronous operation through a 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 shared container virtual server, and storing the configuration of the effective wireless shared container virtual server; and carrying out service data resource sharing synchronous operation through the network packet wireless explorer.
The technical scheme has the beneficial effects that the wireless shared container virtual server is loaded at the local container running end through wireless transmission and sharing; configuring a wireless shared container virtual server, and storing the configuration of the effective wireless shared container virtual server; the service data resource sharing synchronous operation is carried out through a network packet wireless explorer; the service data resource sharing scale can be improved and wireless sharing can be performed.
In one embodiment, the S102 includes:
s1021, designating maintainer information and defining environment variable values after the basic image is created;
s1022, the step of defining the environment variable value comprises the following steps: using the initial variable value when the initial variable value is not empty; the set variable value is used when the initial variable value is empty.
The working principle of the technical scheme is that environment variable setting is utilized, maintainer information is designated after basic mirror image creation, and environment variable values are defined; the defining environmental variable value step includes: using the initial variable value when the initial variable value is not empty; the set variable value is used when the initial variable value is empty.
The technical scheme has the beneficial effects that maintainer information is appointed and environment variable values are defined after the basic mirror image is created; the defining environmental variable value step includes: using the initial variable value when the initial variable value is not empty; the set variable value is used when the initial variable value is empty.
In one embodiment, the step S202 includes:
s2021, distributing a first starting file system by using a container running instruction, and mounting a first read-write layer outside the mirror layer;
s2022, bridging a virtual interface from the network bridge interface configured by the virtual server of the wireless shared container to the first synchronous container; and allocating an IP address from the address pool to the first synchronous container, starting the first synchronous container, and executing the container instruction application program.
The working principle of the technical scheme is that a first starting file system is distributed by using a container running instruction by utilizing a network bridge bridging principle, and a first read-write layer is mounted outside a mirror image layer; bridging a virtual interface from a network bridge interface configured by a virtual server of the wireless shared container to the first synchronous container; and allocating an IP address from the address pool to the first synchronous container, 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 the mirror image layer by utilizing the bridge bridging principle, a virtual interface is bridged into a first synchronous container from a bridge interface configured by a virtual server of the wireless shared container, 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 step S303 includes:
s3031, mounting a second synchronous container on the first synchronous container by using a data volume mounting, and testing a mounting state;
s3032, testing the mounting state comprises the following steps: connecting the test module to a wireless shared container virtual server, and constructing a virtual test machine for the test module through an operating system; separating the virtual testing machine from the first data volume; writing second synchronous container mounting state information into the first data volume; starting a second synchronous container, mounting the second synchronous container on the data volume, and granting the second synchronous container read permission; if the second synchronous container reads the information of the first synchronous container in the data volume, judging that the second synchronous container inherits the first synchronous container and the mounting state is normal; if the second synchronous container does not read the first synchronous container information in the data volume, judging that the second synchronous container does not inherit the first synchronous container, and replacing the data volume until the second synchronous container reads the first synchronous container information in the data volume, until the mounting state is normal; after the second synchronous container is started, a second container file is newly built in a second catalog in the container; and mounting the second catalog of the second synchronous container to the first catalog of the first synchronous container under the second catalog, checking the content under the first catalog, 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 data volume mounting, and the mounting state is tested; the test mounting state includes: connecting the test module to a wireless shared container virtual server, and constructing a virtual test machine for the test module through an operating system; separating the virtual testing machine from the first data volume; writing second synchronous container mounting state information into the first data volume; starting a second synchronous container, mounting the second synchronous container on the data volume, and granting the second synchronous container read permission; if the second synchronous container reads the information of the first synchronous container in the data volume, judging that the second synchronous container inherits the first synchronous container and the mounting state is normal; if the second synchronous container does not read the first synchronous container information in the data volume, judging that the second synchronous container does not inherit the first synchronous container, and replacing the data volume until the second synchronous container reads the first synchronous container information in the data volume, until the mounting state is normal; after the second synchronous container is started, a second container file is newly built in a second catalog in the container; and mounting the second catalog of the second synchronous container to the first catalog of the first synchronous container under the second catalog, checking the content under the first catalog, and finishing synchronous mounting if the second container file can be seen.
The technical scheme has the beneficial effects that the data volume mounting and the mounting state testing can be carried out; connecting the test module to a wireless shared container virtual server, and constructing a virtual test machine for the test module through an operating system; separating the virtual testing machine from the first data volume; writing second synchronous container mounting state information into the first data volume; starting a second synchronous container, mounting the second synchronous container on the data volume, and granting the second synchronous container read permission; if the second synchronous container reads the information of the first synchronous container in the data volume, judging that the second synchronous container inherits the first synchronous container and the mounting state is normal; if the second synchronous container does not read the first synchronous container information in the data volume, judging that the second synchronous container does not inherit the first synchronous container, and replacing the data volume until the second synchronous container reads the first synchronous container information in the data volume, until the mounting state is normal; after the second synchronous container is started, a second container file is newly built in a second catalog in the container; mounting a second catalog of the second synchronous container to a first catalog of the first synchronous container under the second catalog, checking the content under the first catalog, and finishing synchronous mounting if the second container file can be seen; the automatic data volume mounting can be performed, and the mounting efficiency is improved.
In one embodiment, the S403 includes:
s4031, checking the IP of the local container running end and the wireless shared container virtual server to obtain IP address setting information;
s4032, setting the IP of the running end of the local container according to the IP address setting information, and connecting a wireless shared container virtual server through a network packet wireless explorer;
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 business data resource sharing synchronous operation is carried out; and calculating a data resource sharing utility value, wherein the calculation formula is as follows:
wherein, wgpxni is a data resource sharing utility value, gxni is a data resource policy utility value, P is a virtual server bandwidth value, qxi is a unit spectrum resource utility value, i is an i-th wireless sharing container virtual server value, and N is a wireless sharing container virtual server total value.
The working principle of the technical scheme is that wireless transmission data sharing is utilized to check the IP of a local container operation end and a wireless shared container virtual server, so as to obtain IP address setting information; 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 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 synchronous operation is carried out; and calculating a data resource sharing utility value, wherein the calculation formula is as follows:
wherein, wgpxni is a data resource sharing utility value, gxni is a data resource policy utility value, P is a virtual server bandwidth value, qxi is a unit spectrum resource utility value, i is an i-th wireless sharing container virtual server value, and N is a wireless sharing container virtual server total value; and the sharing efficiency and the utilization rate of the business data resources are improved by calculating the sharing utility of the data resources.
The technical scheme has the beneficial effects that the IP of the local container running end and the IP of the wireless shared container virtual server are checked to obtain IP address setting information; 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 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 synchronous operation is carried out; calculating a data resource sharing utility value, wherein Wgpxni is the data resource sharing utility value, gxni is a data resource policy utility value, P is a virtual server bandwidth value, qxi is a unit spectrum resource utility value, i is an i-th wireless sharing container virtual server value, and N is a wireless sharing container virtual server total 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 more optimized.
In one embodiment, the S2022 includes:
s021, bridging a virtual interface from the network bridge interface configured by the virtual server of the wireless shared container to the first synchronous container; the wireless shared container virtual server is responsible for carrying out data detection, management and monitoring on the shared database, including carrying out shared operation deployment; the network bridge interface completes data exchange between each distributed subsystem and the sharing system of the sharing operation center, and realizes data consistency between each distributed subsystem and the sharing system of the sharing operation center;
s022, distributing an IP address from the address pool to a first synchronous container, starting the first synchronous container, and executing a container instruction application program; arranging a shared virtual machine for the container and the virtual server, wherein the shared 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 the shared virtual machine, setting the address adapter according to a data providing method of the existing system, and performing connectivity test; the data provided by the sharing operation center is used for accessing the IP address, so that the data access work is completed; the first synchronous container is accessed to an IP address through data, and the shared data is operated, wherein the operation comprises the steps of specifying a program for data sharing and setting a sharing mode of the data; the sharing operation center inquires a data sharing catalog shared to the sharing operation center; starting a second synchronous container, and providing a data sharing request for the first synchronous container to be acquired by the second synchronous container through a sharing operation center; the first synchronous container confirms the data sharing request and sets the effective time range of the sharing authority; the sharing operation center applies sharing data in the sharing authority effective time range; and carrying out service data sharing synchronous operation.
The working principle of the technical scheme is that a virtual interface is bridged into a first synchronous container from a network bridge interface configured by a wireless shared container virtual server by utilizing a network bridge virtual interface and distributed sharing operation; the wireless shared container virtual server is responsible for carrying out data detection, management and monitoring on the shared database, including carrying out shared operation deployment; the network bridge interface completes data exchange between each distributed subsystem and the sharing system of the sharing operation center, and realizes data consistency between each distributed subsystem and the sharing system of the sharing operation center; distributing an IP address from the address pool to a first synchronous container, starting the first synchronous container, and executing a container instruction application program; arranging a shared virtual machine for the container and the virtual server, wherein the shared 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 the shared virtual machine, setting the address adapter according to a data providing method of the existing system, and performing connectivity test; the data provided by the sharing operation center is used for accessing the IP address, so that the data access work is completed; the first synchronous container is accessed to an IP address through data, and the shared data is operated, wherein the operation comprises the steps of specifying a program for data sharing and setting a sharing mode of the data; the sharing operation center inquires a data sharing catalog shared to the sharing operation center; starting a second synchronous container, and providing a data sharing request for the first synchronous container to be acquired by the second synchronous container through a sharing operation center; the first synchronous container confirms the data sharing request and sets the effective time range of the sharing authority; the sharing operation center applies sharing data in the sharing authority effective time range; and carrying out service data sharing synchronous operation.
The technical scheme has the beneficial effects that the virtual interface of the bridge in the network bridge interface can be configured from the virtual server of the wireless shared container; the wireless shared container virtual server can perform data detection, management and monitoring on the shared database, including sharing operation deployment; the network bridge interface completes data exchange between each distributed subsystem and the sharing system of the sharing operation center, and realizes data consistency between each distributed subsystem and the sharing system of the sharing operation center; distributing an IP address from the address pool to a first synchronous container, starting the first synchronous container, and executing a container instruction application program; arranging a shared virtual machine for the container and the virtual server, wherein the shared 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 the shared virtual machine, setting the address adapter according to a data providing method of the existing system, and performing connectivity test; the data provided by the sharing operation center is used for accessing the IP address, so that the data access work is completed; the first synchronous container is accessed to an IP address through data, and the shared data is operated, wherein the operation comprises the steps of specifying a program for data sharing and setting a sharing mode of the data; the sharing operation center inquires a data sharing catalog shared to the sharing operation center; starting a second synchronous container, and providing a data sharing request for the first synchronous container to be acquired by the second synchronous container through a sharing operation center; the first synchronous container confirms the data sharing request and sets the effective time range of the sharing authority; the sharing operation center applies sharing data in the sharing authority effective time range; carrying out service data sharing synchronous operation; the large-scale wireless sharing service data synchronous operation can be performed.
Although embodiments of the present invention have been disclosed above, it is not limited to the details and embodiments shown and described, it is well suited to various fields of use for which the invention would be readily apparent to those skilled in the art, and accordingly, the invention is not limited to the specific details and illustrations shown and described herein, without departing from the general concepts defined in the claims and their equivalents.

Claims (8)

1. A method for synchronizing operation of service data by a container, comprising:
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 to mount the second synchronous container on the first synchronous container by adopting data volume mounting;
s400, 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;
the S400 includes:
s401, loading a wireless shared container virtual server at a local container running end;
s402, configuring a wireless shared container virtual server, and storing the effective wireless shared container virtual server configuration;
s403, carrying out service data resource sharing synchronous operation through a network packet wireless explorer;
the S403 includes:
s4031, checking the IP of the local container running end and the wireless shared container virtual server to obtain IP address setting information;
s4032, setting the IP of the running end of the local container according to the IP address setting information, and connecting a wireless shared container virtual server through a network packet wireless explorer;
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 business data resource sharing synchronous operation is carried out.
2. The method for performing service data synchronization operation of a container according to claim 1, wherein S100 includes:
s101, selecting a container private warehouse to acquire an image abstract, and creating a first command designated basic image;
s102, after the basic mirror image is created, designating maintainer information and defining environment variable values;
s103, constructing a mirror image creation execution instruction and a container starting execution instruction, constructing a mirror image description and manufacturing a mirror image text file.
3. The method for performing service data synchronization operation of a container according to claim 1, wherein S200 includes:
s201, creating a first synchronous container according to a newly built father container of the mirror image text file, and starting the first synchronous container;
s202, a first starting file system is allocated, and a container running instruction is used for starting a first synchronous container;
s203, inputting a container data volume creation instruction, creating a first synchronous operation container data volume, and monitoring a mounting catalog to confirm whether the creation is successful.
4. The method for performing service data synchronization operation of a container according to claim 1, wherein the step S300 includes:
s301, creating a second synchronous container according to a new inheritance container of the mirror image text file;
s302, a second starting file system is allocated, and a second synchronous container is started by using a container running 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 performing service data synchronization operation by using a container according to claim 2, wherein S102 includes:
s1021, designating maintainer information and defining environment variable values after the basic image is created;
s1022, the step of defining the environment variable value comprises the following steps: using the initial variable value when the initial variable value is not empty; the set variable value is used when the initial variable value is empty.
6. A method for performing service data synchronization operation according to claim 3, wherein S202 includes:
s2021, distributing a first starting file system by using a container running instruction, and mounting a first read-write layer outside the mirror layer;
s2022, bridging a virtual interface from the network bridge interface configured by the virtual server of the wireless shared container to the first synchronous container; and allocating an IP address from the address pool to the first synchronous container, starting the first synchronous container, and executing the container instruction application program.
7. The method for performing service data synchronization operation according to claim 4, wherein S303 includes:
s3031, mounting a second synchronous container on the first synchronous container by using a data volume mounting, and testing a mounting state;
s3032, testing the mounting state comprises the following steps: connecting the test module to a wireless shared container virtual server, and constructing a virtual test machine for the test module through an operating system; separating the virtual testing machine from the first data volume; writing second synchronous container mounting state information into the first data volume; starting a second synchronous container, mounting the second synchronous container on the data volume, and granting the second synchronous container read permission; if the second synchronous container reads the information of the first synchronous container in the data volume, judging that the second synchronous container inherits the first synchronous container and the mounting state is normal; if the second synchronous container does not read the first synchronous container information in the data volume, judging that the second synchronous container does not inherit the first synchronous container, and replacing the data volume until the second synchronous container reads the first synchronous container information in the data volume, until the mounting state is normal; after the second synchronous container is started, a second container file is newly built in a second catalog in the container; and mounting the second catalog of the second synchronous container to the first catalog of the first synchronous container under the second catalog, checking the content under the first catalog, and finishing synchronous mounting if the second container file can be seen.
8. The method for performing service data synchronization operation according to claim 6, wherein said S2022 comprises:
s021, bridging a virtual interface from the network bridge interface configured by the virtual server of the wireless shared container to the first synchronous container; the wireless shared container virtual server is responsible for carrying out data detection, management and monitoring on the shared database, including carrying out shared operation deployment; the network bridge interface completes data exchange between each distributed subsystem and the sharing system of the sharing operation center, and realizes data consistency between each distributed subsystem and the sharing system of the sharing operation center;
s022, distributing an IP address from the address pool to a first synchronous container, starting the first synchronous container, and executing a container instruction application program; arranging a shared virtual machine for the container and the virtual server, wherein the shared 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 the shared virtual machine, setting the address adapter according to a data providing method of the existing system, and performing connectivity test; the data provided by the sharing operation center is used for accessing the IP address, so that the data access work is completed; the first synchronous container is accessed to an IP address through data, and the shared data is operated, wherein the operation comprises the steps of specifying a program for data sharing and setting a sharing mode of the data; the sharing operation center inquires a data sharing catalog shared to the sharing operation center; starting a second synchronous container, and providing a data sharing request for the first synchronous container to be acquired by the second synchronous container through a sharing operation center; the first synchronous container confirms the data sharing request and sets the effective time range of the sharing authority; the sharing operation center applies sharing data in the sharing authority effective time range; and carrying out service data sharing 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 CN114629924A (en) 2022-06-14
CN114629924B true 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 (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7810105B2 (en) * 2004-12-29 2010-10-05 Motorola, Inc. Method and apparatus for running different types of applications on a wireless mobile device
US8135748B2 (en) * 2009-04-10 2012-03-13 PHD Virtual Technologies Virtual machine data replication
US9084105B2 (en) * 2011-04-19 2015-07-14 Seven Networks, Inc. Device resources sharing for network resource conservation

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN114629924A (en) 2022-06-14

Similar Documents

Publication Publication Date Title
JP4377369B2 (en) Resource allocation arbitration device and resource allocation arbitration method
CN107566165B (en) Method and system for discovering and deploying available resources of power cloud data center
CA2637749C (en) Method, system, and program product for deploying a platform dependent application in a grid environment
CN103248667B (en) A kind of resource access method of distributed system and system
US20190050248A1 (en) Control apparatus, vnf deployment destination selection method and program
US20080184247A1 (en) Method and System for Resource Allocation
CN103516547B (en) A kind of network parameter distribution method and device
CN102014159A (en) Layered resource reservation system under cloud computing environment
CN102857370A (en) Resource allocating method and device
CN109413147B (en) Service node management method, device, equipment and computer readable storage medium
CN111290712B (en) Block device creating method and device, cloud computing management system and storage medium
CN112631780A (en) Resource scheduling method and device, storage medium and electronic equipment
CN111857951A (en) Containerized deployment platform and deployment method
CN114996750A (en) Data sharing method and device
CN114706690A (en) Method and system for sharing GPU (graphics processing Unit) by Kubernetes container
CN114629924B (en) Method for synchronous operation of service data by container
CN111562952B (en) Dynamic loading method and dynamic loading device for double-core intelligent ammeter management unit
CN113438295A (en) Container group address allocation method, device, equipment and storage medium
CN112433983B (en) File system management method supporting multi-job parallel IO performance isolation
CN115617744A (en) Mirror image warehouse access method, system and equipment
CN114173396A (en) Method and device for determining terminal networking time, electronic equipment and storage medium
EP4345615A1 (en) Storage resource management method, apparatus, and system for container cluster
US20240134701A1 (en) Method and apparatus for managing storage resources of container cluster, and system
CN109257201B (en) License sending method and device
CN114911618B (en) Heterogeneous resource allocation method and device, electronic equipment and storage medium

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