An example control method, device, equipment, storage medium and program product

By allocating an independent writing file area for each service instance in the edge node, the file information of the same service instance in the same writing file area is solved in the same writing file area, which improves the efficiency of the read and write files of the instance.

CN112506583BActive Publication Date: 2025-01-28BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202011521276.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-21
Publication Date
2025-01-28
Estimated Expiration
2040-12-21

AI Technical Summary

Technical Problem

In edge nodes, since different instances of the same service read and write files concurrently in the same write file area, the file information is inconsistent and the file area cannot store useful information.

Method used

Configure the instance information of the service in the edge node, allocate independent writing files for each instance, and store the file written in the area.

Benefits of technology

The problem of confusion of file information has been solved, the efficiency of instance reading and writing files is improved, and information can be effectively stored in the writing file area.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112506583B_ABST
    Figure CN112506583B_ABST
Patent Text Reader

Abstract

The present disclosure discloses an instance control method, device, equipment, storage medium and program product, which relate to the field of computer technology, and in particular to the field of the Internet of Things. The specific implementation scheme is: determining the instance configuration information of the service in the edge node; according to the instance configuration information of the service, allocating a write file area for the instance in the service; and storing the file written by the instance in the write file area allocated to the instance. The present disclosure can improve the efficiency of the edge node in providing services to a certain extent.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, in particular to the field of Internet of Things, and specifically to an example control method, device, equipment, storage medium and program product. Background Art

[0002] With the development of computer technology, more and more occasions use edge computing devices that provide the closest services nearby to achieve faster network service response and meet basic needs in real-time business, application intelligence, security and privacy protection, etc. Summary of the invention

[0003] The present disclosure provides an example control method, apparatus, device, storage medium, and program product.

[0004] According to one aspect of the present disclosure, there is provided an example control method, comprising:

[0005] Determine instance configuration information of services in edge nodes;

[0006] Allocate a file writing area for an instance in the service according to the instance configuration information of the service;

[0007] The files written by the instance are stored in the file write area allocated to the instance.

[0008] According to another aspect of the present disclosure, there is provided an example control device, comprising:

[0009] A configuration information determination module, used to determine instance configuration information of a service in an edge node;

[0010] A region allocation module, used to allocate a file writing region to an instance in the service according to instance configuration information of the service;

[0011] The file storage module is used to store the files written by the instance in the file writing area allocated to the instance.

[0012] According to a third aspect of the present disclosure, an electronic device is provided, the electronic device comprising:

[0013] at least one processor; and

[0014] a memory communicatively connected to the at least one processor; wherein,

[0015] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform any method described in the present disclosure.

[0016] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute any one of the methods of the present disclosure.

[0017] According to a fifth aspect of the present disclosure, a computer program product is provided, comprising a computer program, wherein the computer program implements the method according to any one of the present disclosure when executed by a processor.

[0018] The technology according to the present disclosure improves the efficiency of edge nodes in providing services.

[0019] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0021] Figure 1 is a schematic diagram of an example control method according to an embodiment of the present disclosure;

[0022] Figure 2 is a schematic diagram of an example control method according to an embodiment of the present disclosure;

[0023] Figure 3 is a schematic diagram of an example control method according to an embodiment of the present disclosure;

[0024] Figure 4 is a schematic diagram of an example control system according to an embodiment of the present disclosure;

[0025] Figure 5 is a schematic structural diagram of an example control device according to an embodiment of the present disclosure;

[0026] Figure 6 is a block diagram of an electronic device used to implement an example control method of an embodiment of the present disclosure. DETAILED DESCRIPTION

[0027] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0028] Figure 1is a schematic diagram of an example control method according to an embodiment of the present disclosure. This embodiment can be applied to edge computing. Typically, this embodiment can be applied to situations involving local edge computing. The method of this embodiment can be executed by an example control device, which can be implemented in software and / or hardware and can be integrated in an electronic device. Figure 1 , the example control method disclosed in this embodiment may include:

[0029] S101. Determine instance configuration information of a service in an edge node.

[0030] S102: Allocate a file writing area for an instance in the service according to the instance configuration information of the service.

[0031] S103: Store the file written by the instance in the file writing area allocated to the instance.

[0032] The edge node is a business platform built on the edge of the network close to the user, which is used to provide services nearby, process and store data near the node, and can be, for example, a computer room or a physical device. The services provided can be data supervision of traffic data, power data, face recognition, etc., which are not limited in this embodiment.

[0033] Each instance can implement the corresponding functions provided by the service. In order to support the simultaneous processing of more requests, a service can contain multiple instances. In the process of accessing any service, an access request carrying the service name can be sent to the proxy module. In response to the service access request, the proxy module finds the instance list of the service containing the instance according to the service name, and then forwards the traffic corresponding to the service access request to the specific instance according to the load balancing method to avoid conflicts in service access. The load balancing method may include: polling method, random method, instance name hash, minimum pressure, etc., which are not limited in this embodiment.

[0034] Instance configuration information is information required in the process of creating an instance corresponding to a service, such as the number of service instances, the instance's running directory, and the read and write permissions of instance files.

[0035] The instance configuration information may be obtained from the cloud, which is not limited in this embodiment. The edge node may be connected to the cloud, synchronize the data obtained by the edge node to the cloud, and obtain configuration information or data analysis results from the cloud.

[0036] The write file area is used to store read-write type files in the service, which may be a disk area. The file may be data obtained by the service, for example, traffic data obtained from sensors connected to edge nodes.

[0037] The manner of allocating the file writing area may be to divide the entire file writing area into a plurality of sub-areas according to the names of the instances in the service, and each sub-area corresponds to one instance, which is not limited in this embodiment.

[0038] All read-write files written by the instance are stored in the write file area corresponding to the instance. A mapping relationship between the instance and the sub-area can be established, and the mapping relationship is stored as a region mapping file and loaded into the memory so that when the instance configuration information changes, the changes can be synchronized to the memory in real time.

[0039] The technical solution of the disclosed embodiment allocates a write file area to an instance in a service; and stores the files written by the instance in the write file area, thereby solving the problem that different instances of the same service concurrently read and write files in the same write file area, resulting in confused file information and the inability of the write file area to store useful information, thereby improving the efficiency of instance reading and writing files.

[0040] Figure 2 is a schematic diagram of an example control method according to an embodiment of the present disclosure. This embodiment is an optional solution proposed based on the above embodiment. Figure 2 , the example control method provided in this embodiment includes:

[0041] S201. Determine instance configuration information of a service in an edge node.

[0042] S202: Allocate a file writing area for an instance in the service according to the instance configuration information of the service.

[0043] S203: Store the file written by the instance in the file writing area allocated to the instance.

[0044] S204: When the instance configuration information of the service is updated and there is a write file area pre-allocated to the original instance in the service, control the new instance in the service to reuse the write file area allocated to the original instance.

[0045] The updating of the instance configuration information is to adjust the specific parameters in the instance configuration, for example, to increase the number of instances or to reduce the number of instances. When the instance configuration information is updated, the original old instance can be terminated and a new instance can be started.

[0046] It is possible to determine whether there is a write file area pre-allocated for the original instance in the service based on the area mapping file. If so, the new instance can reuse the write file area allocated for the original instance. If the number of new instances is less than or equal to the original instance, the corresponding number of write file areas allocated for the original instance can be reused according to the number of new instances. If there are redundant write file areas, they will be returned. If the number of new instances is greater than the original instance, a new write file area can be applied for and allocated to the new instance without the allocated write file area on the basis of reusing the write file area of ​​the original instance.

[0047] Optionally, storing the file written by the instance in a file writing area allocated to the instance includes:

[0048] The write file area of ​​the instance is linked to the running directory of the instance, so that the instance is linked to the allocated write file area by accessing the running target and writes files in the write file area.

[0049] Among them, the running directory of the instance is the running address of the instance, and the write file area is linked to the running directory of the instance, so that the write file area associated with the instance can be directly accessed from the address to read files or write files in the write file area, thereby avoiding write file conflicts between different instances of the same service and improving the efficiency of instance reading and writing files.

[0050] Optionally, different instances of the service reuse the read-only file area.

[0051] The read-only file area is used to store read-only files of the service. The read-only files can be linked to the specified folder in the cloud in read-only mode so that different instances of the same service can access them. This is not limited in this embodiment. This enables sharing of read-only files and avoids allocating multiple file areas for the same file to be read by different instances, thereby improving resource utilization.

[0052] The technical solution of the disclosed embodiment improves the allocation efficiency of the write file area, avoids wasting resources by allocating a new write file area to the new instance, and improves resource utilization by controlling the new instance in the service to reuse the write file area allocated to the original instance when the instance configuration information of the service is updated and there is a write file area pre-allocated to the original instance in the service.

[0053] Figure 3 is a schematic diagram of an example control method according to an embodiment of the present disclosure. This embodiment is an optional solution proposed based on the above embodiment. Figure 3 , the example control method provided in this embodiment includes:

[0054] S301: Determine instance configuration information of a service in an edge node.

[0055] S302: Allocate ports to instances in the service according to instance configuration information of the service.

[0056] S303: Control the instance to listen to the allocated port.

[0057] The instance configuration information is information required in the process of creating a corresponding instance of the service, such as the number of instances of the service.

[0058] According to the instance configuration information of the service, ports are allocated to the instances in the service. For example, the number of instances can be obtained by parsing the instance configuration information, and a corresponding number of ports can be applied for according to the number of instances, so as to allocate ports to the instances according to the status information of the instances. The status information can be the running status of the instance, which is not limited in this embodiment.

[0059] The range of ports to be applied for can be set in advance, such as 30000-40000, and the efficiency of port application can be improved through batch application.

[0060] You can build a mapping relationship between services, instances, and ports through service names, instance names, port IDs, etc., store the mapping relationship as a port mapping file and load it into memory, so that when the instance configuration information changes, the changes can be synchronized to the memory in real time.

[0061] The allocated port information is passed to the instance so that the instance listens to the corresponding port, avoiding port conflicts caused by different instances using the same port.

[0062] Optionally, controlling the instance to listen to the assigned port includes:

[0063] The port information allocated to the instance is transmitted to the instance through an environment variable, so that the instance monitors the allocated port according to the port information.

[0064] The port information assigned to the instance is transmitted to the instance through the environment variable. The port information can be transmitted to the startup environment variable of the service. When the instance is started, it reads the startup environment variable required by the instance to obtain the corresponding port information and monitors the corresponding port according to the port information. This allows the instance to obtain the port information in time and monitor the corresponding port.

[0065] Optionally, after allocating a port to an instance in the service, the method further includes:

[0066] When the instance configuration information of the service is updated and there is a port pre-allocated to the original instance of the service, the new instance of the service is controlled to reuse the port allocated to the original instance.

[0067] The updating of the instance configuration information is to adjust the specific parameters in the instance configuration, for example, to increase the number of instances or to reduce the number of instances. When the instance configuration information is updated, the original old instance can be terminated and a new instance can be started.

[0068] It is possible to determine whether there are ports allocated to the original instance in the service based on the port mapping file. If so, the new instance can reuse the ports allocated to the original instance. If the number of new instances is less than or equal to the original instances, the corresponding number of ports allocated to the original instance can be reused according to the number of new instances. If there are redundant ports, they will be returned. If the number of new instances is greater than the original instance, new ports can be applied for and allocated to the new instance without allocated ports based on the reuse of the ports of the original instance.

[0069] This improves the port allocation efficiency, avoids resource waste caused by allocating new ports for new instances, and improves resource utilization.

[0070] The technical solution of the disclosed embodiment allocates ports to instances in the service according to the instance configuration information of the service, and controls the instances to listen to the allocated ports, thereby solving the problem that the same service contains multiple instances, which easily leads to port conflicts at startup and makes the service unable to correctly provide business functions to the outside world, and improves the efficiency of edge nodes in providing services.

[0071] Figure 4 is a schematic diagram of an example control system according to an embodiment of the present disclosure.

[0072] The instance control system includes a cloud, an end-cloud synchronization module, a main control module, a service instance module, an agent module, and a mapping file module. The cloud is connected to the end-cloud synchronization module, the end-cloud synchronization module is connected to the main control module, the main control module is connected to the service instance module and the mapping file module, and the agent module is connected to the mapping file module and the service instance module.

[0073] The end-cloud synchronization module is used to forward the instance configuration information of the cloud that is synchronously obtained to the main control module. It can be a timed synchronization, which is not limited in this embodiment. The main control module is used to implement any instance control method in the above embodiments, and is used to start or stop the service instance module and update the mapping file module. The mapping file module is used to store mapping files, such as the above-mentioned area mapping files and port mapping files. The service instance module is used to provide a service name to the proxy module. The proxy module is used to listen to the mapping file module and load the mapping relationship into the memory. The proxy module is also used to find the instance list of the service containing the instance according to the service name, and then forward the traffic corresponding to the service access request to the specific instance in the service instance module according to the load balancing method.

[0074] Figure 5is a schematic diagram of a control device according to an example of the disclosed embodiment. Figure 5 , the example control device 500 provided by the embodiment of the present disclosure may include:

[0075] Configuration information determination module 501, used to determine instance configuration information of a service in an edge node;

[0076] The area allocation module 502 is used to allocate a file writing area to an instance in the service according to the instance configuration information of the service;

[0077] The file storage module 503 is used to store the files written by the instance in the file writing area allocated to the instance.

[0078] The technical solution of the disclosed embodiment allocates a write file area to an instance in a service; and stores the files written by the instance in the write file area, thereby solving the problem that different instances of the same service concurrently read and write files in the same write file area, resulting in confused file information and the inability of the write file area to store useful information, thereby improving the efficiency of instance reading and writing files.

[0079] Optionally, the file storage module includes:

[0080] The running directory linking unit is used to link the write file area of ​​the instance to the running directory of the instance, so that the instance links to the allocated write file area by accessing the running target and writes files in the write file area.

[0081] Optionally, the device further comprises:

[0082] The area reuse module is used after the area allocation module to control the new instance in the service to reuse the write file area allocated to the original instance when the instance configuration information of the service is updated and there is a write file area pre-allocated to the original instance in the service.

[0083] Optionally, different instances of the service reuse the read-only file area.

[0084] Optionally, the device further comprises:

[0085] A port allocation module, configured to allocate ports to instances in the service according to instance configuration information of the service;

[0086] The port monitoring module is used to control the instance to monitor the allocated port.

[0087] Optionally, the port monitoring module includes:

[0088] The port information transmission unit is used to transmit the port information allocated to the instance to the instance through the environment variable, so that the instance monitors the allocated port according to the port information.

[0089] Optionally, the device further comprises:

[0090] The port multiplexing module is used after the port allocation module to control the new instance in the service to reuse the port allocated to the original instance when the instance configuration information of the service is updated and there is a port pre-allocated to the original instance in the service.

[0091] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0092] Figure 6 A schematic block diagram of an example electronic device 600 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0093] like Figure 6 As shown, the device 600 includes a computing unit 601, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 602 or a computer program loaded from a storage unit 606 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the device 600 can also be stored. The computing unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 606. An input / output (I / O) interface 605 is also connected to the bus 606.

[0094] A number of components in the device 600 are connected to the I / O interface 605, including: an input unit 606, such as a keyboard, a mouse, etc.; an output unit 607, such as various types of displays, speakers, etc.; a storage unit 606, such as a disk, an optical disk, etc.; and a communication unit 609, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0095] The computing unit 601 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 601 performs the various methods and processes described above, such as the example control method. For example, in some embodiments, the example control method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 606. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 600 via ROM 602 and / or communication unit 609. When the computer program is loaded into RAM 603 and executed by the computing unit 601, one or more steps of the example control method described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured to perform the example control method in any other appropriate manner (e.g., by means of firmware).

[0096] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0097] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0098] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0099] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0100] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0101] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0102] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0103] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. An example control method, comprising: Determine instance configuration information of services in edge nodes; Allocate a write file area for an instance in the service according to the instance configuration information of the service; wherein the manner of allocating the write file area is to divide the entire write file area into a plurality of sub-areas according to the name of the instance in the service, each sub-area corresponding to an instance; a service includes a plurality of instances, and the write file area is a disk area; The files written by the instance are stored in the file write area allocated to the instance.

2. The method according to claim 1, wherein: The storing the file written by the instance in the file writing area allocated to the instance includes: The write file area of ​​the instance is linked to the running directory of the instance, so that the instance is linked to the allocated write file area by accessing the running directory and writes files in the write file area.

3. The method according to claim 1, after allocating a write file area for the instance in the service, further comprising: When the instance configuration information of the service is updated and there is a write file area pre-allocated to the original instance in the service, the new instance in the service is controlled to reuse the write file area allocated to the original instance.

4. The method according to claim 1, wherein different instances of the service reuse read-only file areas.

5. The method according to claim 1, further comprising: Allocating ports to instances in the service according to instance configuration information of the service; Controls the instance to listen on the assigned port.

6. The method according to claim 5, wherein: The controlling the instance to monitor the allocated port includes: The port information allocated to the instance is transmitted to the instance through an environment variable, so that the instance monitors the allocated port according to the port information.

7. The method according to claim 5, after allocating ports to the instances in the service, further comprising: When the instance configuration information of the service is updated and there is a port pre-allocated to the original instance of the service, the new instance of the service is controlled to reuse the port allocated to the original instance.

8. An example control device, comprising: A configuration information determination module, used to determine instance configuration information of a service in an edge node; A region allocation module, configured to allocate a write file region to an instance in the service according to the instance configuration information of the service; wherein the manner of allocating the write file region is to divide the entire write file region into a plurality of sub-regions according to the name of the instance in the service, each sub-region corresponding to an instance; a service includes a plurality of instances, and the write file region is a disk region; The file storage module is used to store the files written by the instance in the file writing area allocated to the instance.

9. The device according to claim 8, wherein: The file storage module includes: The running directory linking unit is used to link the write file area of ​​the instance to the running directory of the instance, so that the instance links to the allocated write file area by accessing the running directory and writes files in the write file area.

10. The apparatus according to claim 8, further comprising: The area reuse module is used after the area allocation module to control the new instance in the service to reuse the write file area allocated to the original instance when the instance configuration information of the service is updated and there is a write file area pre-allocated to the original instance in the service. The apparatus according to claim 8 , wherein different instances of the service reuse read-only file areas.

12. The apparatus according to claim 8, further comprising: A port allocation module, configured to allocate ports to instances in the service according to instance configuration information of the service; The port monitoring module is used to control the instance to monitor the allocated port.

13. The device according to claim 12, wherein: The port monitoring module includes: The port information transmission unit is used to transmit the port information allocated to the instance to the instance through the environment variable, so that the instance monitors the allocated port according to the port information.

14. The apparatus according to claim 12, further comprising: The port multiplexing module is used after the port allocation module to control the new instance in the service to reuse the port allocated to the original instance when the instance configuration information of the service is updated and there is a port pre-allocated to the original instance in the service.

15. An electronic device, wherein: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 7.

16. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 7.

17. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Resource scheduling method, device, equipment and system

    CN110022337A