WO2021051880A1 - Resource data acquisition method and apparatus, computer device and storage medium - Google Patents

Resource data acquisition method and apparatus, computer device and storage medium Download PDF

Info

Publication number
WO2021051880A1
WO2021051880A1 PCT/CN2020/093609 CN2020093609W WO2021051880A1 WO 2021051880 A1 WO2021051880 A1 WO 2021051880A1 CN 2020093609 W CN2020093609 W CN 2020093609W WO 2021051880 A1 WO2021051880 A1 WO 2021051880A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
address
node instance
service server
service
Prior art date
Application number
PCT/CN2020/093609
Other languages
French (fr)
Chinese (zh)
Inventor
孙骥千
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2021051880A1 publication Critical patent/WO2021051880A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • G06F9/5077Logical partitioning of resources; Management or configuration of virtualized resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances

Definitions

  • This application relates to the field of cloud computing technology, and in particular to a method, device, computer equipment, and storage medium for acquiring resource data.
  • the cloud platform can provide users with sufficient computing resources and network resources. Users can build multiple private networks on the cloud platform and access public service resources on the cloud platform through the private network, such as file storage, databases, etc.
  • IP Internet Protocol Address
  • a method for obtaining resource data includes:
  • target node instance Through the target node instance, perform address mapping according to the target virtual IP address to obtain the service source address;
  • a device for acquiring resource data comprising:
  • the receiving module is configured to receive the first access request carrying the client source address and the target virtual IP address;
  • the obtaining module is used to determine the target node instance according to the target virtual IP address, and obtain the target business server corresponding to the target node instance;
  • the address mapping module is used to perform address mapping according to the target virtual IP address through the target node instance to obtain the service source address;
  • a sending module configured to send a second access request carrying the service source address to the target service server, and the second access request is used to obtain resource data from the target service server;
  • the push module is used to send resource data to the terminal pointed to by the source address of the client.
  • a computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when the processor executes the computer program:
  • target node instance Through the target node instance, perform address mapping according to the target virtual IP address to obtain the service source address;
  • a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the following steps are implemented:
  • target node instance Through the target node instance, perform address mapping according to the target virtual IP address to obtain the service source address;
  • the above method, device, computer equipment and storage medium for acquiring resource data map the target virtual IP address to the service source address through address mapping, so as to send a second access request carrying the service source address to the target service server.
  • the service server obtains the resource data, and after obtaining the resource data, pushes the obtained resource data to the client source address carried in the first access request, so that when the user accesses the target service server to obtain the resource data by sending the first access request,
  • the user can be identified through the target virtual IP address, the service source address, and the client source address, and the resource data can be fed back through the client source address to achieve accurate push of the resource data.
  • Fig. 1 is an application scenario diagram of a method for acquiring resource data in an embodiment
  • Fig. 2 is a schematic flowchart of a method for acquiring resource data in an embodiment
  • FIG. 3 is a schematic flowchart of a method for acquiring resource data in another embodiment
  • FIG. 4 is a schematic flowchart of a method for acquiring resource data in another embodiment
  • FIG. 5 is a schematic diagram of a sub-flow of step S204 in FIG. 2 in an embodiment
  • FIG. 6 is a schematic diagram of the sub-flow of step S204 in FIG. 2 in another embodiment
  • FIG. 7 is a schematic diagram of the sub-flow of step S506 in FIG. 5 in an embodiment
  • Fig. 8 is a structural block diagram of an apparatus for acquiring resource data in an embodiment
  • Fig. 9 is an internal structure diagram of a computer device in an embodiment.
  • the method for acquiring resource data provided in this application can be applied to the application environment as shown in FIG. 1.
  • the terminal 102 communicates with the server 104 through the network, and the server 104 communicates with the target service server 106 through the network.
  • the server 104 receives the first access request sent by the terminal 102 and carries the source address of the client and the target virtual IP address, determines the target node instance according to the target virtual IP address, and obtains the target business server 106 corresponding to the target node instance, through the target node For example, address mapping is performed according to the target virtual IP address to obtain the service source address, and a second access request carrying the service source address is sent to the target service server 106.
  • the second access request is used to obtain resource data from the target service server and transfer the resource data Send to the terminal 102 pointed to by the source address of the client.
  • the terminal 102 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices.
  • the server 104 may be implemented by an independent server or a server cluster composed of multiple servers.
  • a method for obtaining resource data is provided. Taking the method applied to the server in FIG. 1 as an example for description, the method includes the following steps:
  • S202 Receive a first access request that carries a source address and a target virtual IP address of the client.
  • a first access request is sent to the server through the client, and the first access request carries the target virtual IP address and the source address of the client.
  • the client source address is the address corresponding to the client to issue the first access request
  • the target virtual IP address is the address corresponding to the target node instance to receive the first access request.
  • S204 Determine the target node instance according to the target virtual IP address, and obtain the target service server corresponding to the target node instance.
  • the target node instance refers to the node instance corresponding to the target virtual IP address.
  • the corresponding relationship table of each node instance in the server and the virtual private cloud (virtual IP address) is recorded in the preset database.
  • the server searches according to the target virtual IP address Correspondence table, you can determine the target node instance.
  • a node instance is actually a set of containers, and the specification parameters of this set of containers (such as CPU (central processing unit, central Processing unit), memory, hard disk, etc.) are configured in advance.
  • the first access request also includes a resource data acquisition request.
  • the server can determine the business service area from which the user wants to acquire resources by analyzing the resource data acquisition request and querying the preset business service table. In the business service table, each service area is stored. Correspondence between resource data acquisition request and business service area.
  • the business server set is included in the business service area, and the server can determine the target business server corresponding to the target node instance in the business server set according to the preset relationship list. Among them, the relationship list is used to describe the corresponding relationship between the node instance and the business server.
  • S206 Perform address mapping according to the target virtual IP address through the target node instance to obtain the service source address.
  • Address mapping refers to address translation.
  • address translation is performed between the target virtual IP address and the service source address.
  • the target virtual IP address is the address that is carried by the first access request and is in the same network segment as the source address of the client, and is used to point to the target node instance.
  • Address mapping converts the target virtual IP address to the service source address.
  • the service source address refers to the server’s internal network IP address. Specifically, the server’s internal network IP address and the target business server’s IP address are also IP addresses in the same network segment. After the address conversion is completed, the server will send a second access request carrying the service source address to the target service server to request resource data. Because the address conversion is performed here, the target service server can accurately convert the resource data according to the service source address. Feedback to the server.
  • S208 Send a second access request carrying the service source address to the target service server, where the second access request is used to obtain resource data from the target service server.
  • the service source address refers to the intranet IP address of the server. After determining the target business server and completing the address mapping, the server will send a second access request carrying the service source address to the target business server, and the second access request is used to send from the target business server Get resource data in. When the target service server receives the second access request, it will feed back the resource data to the server according to the service source address carried in the second access request.
  • S210 Send the resource data to the terminal pointed to by the source address of the client.
  • the server After receiving the resource data fed back by the target service server, the server sends the obtained resource data to the terminal pointed to by the client source address carried in the first access request.
  • the client source address can be used to locate the user's terminal. In this way, the resource data can be accurately pushed, that is, the server can accurately send the resource data to the user's terminal.
  • the target virtual IP address is mapped to the service source address through address mapping, thereby sending a second access request carrying the service source address to the target service server, and obtaining resource data from the target service server.
  • the acquired resource data is pushed to the client source address carried in the first access request, so that when the user sends the first access request to the target service server to obtain resource data, he can use the target virtual IP address and service
  • the source address and the client source address identify the user, and the resource data is fed back through the client source address to achieve accurate push of the resource data.
  • the method before S204, the method further includes:
  • S302 Receive a node instance creation request, and determine the required node instance specifications according to the private network parameters in the node instance creation request;
  • the server includes a preset physical machine cluster, and the node instance is actually a group of containers.
  • the specifications of this group of containers (such as CPU, memory, and hard disk, etc.) are configured in the physical machine cluster in advance.
  • the request for creating a node instance includes the private network parameters, and the private network parameters include the private network ID (Identity document, identification number) and an IP address in the private network.
  • the server receives a request to create a node instance, it will determine the required node instance specifications according to the proprietary network parameters, and then pull up a set of containers on the physical machine cluster according to the required node instance rules, and set it in the preset database
  • the corresponding relationship table records the corresponding relationship between the node instance and an IP address in the private network.
  • the target virtual IP address is the IP that belongs to the same network segment as the source address of the client. Address, so that the user feels that the node instance and the service for obtaining resource data are exclusive, and the user experience is improved. Further, the use of multiple physical machines to build a physical machine cluster can ensure that when one physical machine fails, there are still other standby physical machines that can work.
  • the server will create a node instance for the user's private network according to the node instance creation request.
  • the node instance is embodied as a set of containers on the preset physical machine cluster. The container belongs to the private network and is isolated from other private network containers. . The container is in all active mode to achieve high throughput between virtual machines and business servers.
  • the required node instance specification is determined according to the request for creating a node instance, and the node instance is created according to the required node instance specification, thereby realizing the creation of the node instance.
  • S206 includes:
  • S404 Through the target node instance, perform fullnat on the target virtual IP address according to the intranet IP address to obtain the service source address.
  • LVS Network Address Translation, network address translation
  • business server must be in the same VLAN (Virtual Local Area) Network, virtual local area network), otherwise LVS cannot be used as the gateway of the business server, which will cause the cross-VLAN business server to be unable to access, and the horizontal expansion of LVS is restricted.
  • VLAN Virtual Local Area
  • Using the fullnat mode can solve the problem of cross-VLAN between LVS and business servers. After the cross-VLAN problem is solved, LVS and business servers no longer have a VLAN subordination relationship, and multiple LVSs can correspond to multiple business servers to solve horizontal expansion. The problem.
  • the target virtual IP address communicates with the user's private network (that is, the client source address), is exposed to the user, and belongs to the same network segment as the user's private network.
  • the service source address communicates with the target business server in the business service area. Specifically, the service source address is the intranet IP address of the server.
  • the address mapping conversion is realized through LVS fullnat.
  • the client sends the first access request carrying the target virtual IP address to the server, and the server modifies the destination address of the first access request to the IP address of the target business server through the target node instance, and the source address is changed
  • the service source address that is, your own intranet IP address
  • send a second access request carrying the service source address to the target service server and after receiving the resource data fed back by the target service server, change the destination address to the client source address ,
  • the source address is changed to your own IP address, and the obtained resource data is pushed to the client source address.
  • the intranet IP address is obtained, and the target virtual IP address is fullynatted according to the intranet IP address through the target node instance to obtain the service source address, which realizes the acquisition of the service source address.
  • S204 includes:
  • S502 Query a preset business service table according to the resource data acquisition request in the first access request, and determine a business service area;
  • S504 Determine a corresponding set of business servers according to the business service area
  • S506 Determine the target service server corresponding to the target node instance in the service server set according to the preset relationship list, where the relationship list is used to describe the corresponding relationship between the node instance and the service server.
  • the server queries a preset business service table according to the resource data acquisition request in the first access request to determine the business service area.
  • the correspondence between each resource data acquisition request and the business service area is stored.
  • Each business service area includes multiple business servers.
  • the server can determine the corresponding business server set according to the business service area, and then determine the business server set corresponding to the target node instance according to the preset relationship list The target business server.
  • the preset relationship list is used to describe the corresponding relationship between the node instance and the business server. In the relationship list, multiple node instances correspond to multiple business servers, respectively.
  • the business service area is determined according to the resource data acquisition request in the first access request
  • the target business server corresponding to the target node instance is determined according to the business service area and the preset relationship list, so as to realize the correspondence between the target node instance and the target node instance. Determine the target business server.
  • the method further includes:
  • S604 Determine the business server corresponding to each node instance according to the binding request
  • S608 Configure IP information on each node instance according to the IP address information to obtain a relationship list.
  • a binding request refers to a request from a user to bind each node instance and each service server. After the server receives the binding request, it will first determine the service that the user has purchased according to the binding request, thereby determining the business service area corresponding to the service, obtaining the IP address information of the business service area, and determining the service area in the business service area. Unbound IP address collection, and then randomly select an IP address from the unbound IP address collection as the IP address of the business server corresponding to each node instance, and obtain the IP address information of the business server. Configure IP information on each node instance to obtain a list of relationships.
  • the business server corresponding to each node instance is determined, the IP address information of the business server is obtained, and the IP information is configured on each node instance according to the IP address information to obtain the relationship list, and the relationship list is realized Obtain.
  • S506 includes:
  • S702 Determine a set of candidate business servers corresponding to the target node instance in the set of business servers according to the preset relationship list;
  • S704 Obtain the client source address in the first access request, and obtain the client address value according to the client source address and a preset hash algorithm;
  • the server can determine the candidate service server set corresponding to the target node instance in the service server set according to the preset relationship list.
  • Each service server in the candidate service server set can receive the second access request and feed back the corresponding resource data.
  • the server needs to further select the target service server from the candidate service server set.
  • the server will obtain the client in the first access request
  • the source address according to the client source address and the preset hash algorithm, obtain the client address value, according to the client address value, query the preset address list, when there is a corresponding target address value in the address list, according to the target address Value, determine the target service server corresponding to the target node instance, and when there is no corresponding target address value in the address list, randomly select the service server from the candidate service server set as the target service server corresponding to the target node instance.
  • the preset hash algorithm can be set as needed.
  • the purpose of querying the preset address list is to distribute the second access request corresponding to the same client to the same service server, that is, the server supports the session maintenance service of source address hashing. If the client has previously sent the first access request to the server to obtain resource data, the server will obtain the corresponding relationship between the client and the business server based on the source address of the client and the IP address of the target business server, and will correspond The relationship is stored in the address list.
  • the client address value is obtained according to the client source address and the preset hash algorithm
  • the preset address list is queried according to the client address value
  • the target service server is determined according to the query situation and the set of candidate service servers, Realize the determination of the target business server.
  • a device for acquiring resource data including: a receiving module 802, an acquiring module 804, an address mapping module 806, a sending module 808, and a pushing module 810, wherein:
  • the receiving module 802 is configured to receive the first access request carrying the client source address and the target virtual IP address;
  • the obtaining module 804 is configured to determine the target node instance according to the target virtual IP address, and obtain the target business server corresponding to the target node instance;
  • the address mapping module 806 is configured to perform address mapping according to the target virtual IP address through the target node instance to obtain the service source address;
  • the sending module 808 is configured to send a second access request carrying the service source address to the target service server, and the second access request is used to obtain resource data from the target service server;
  • the push module 810 is used to send resource data to the terminal pointed to by the source address of the client.
  • the above-mentioned resource data acquisition device maps the target virtual IP address to the service source address through address mapping, thereby sending a second access request carrying the service source address to the target service server, and obtains the resource data from the target service server.
  • the acquired resource data is pushed to the client source address carried in the first access request, so that when the user sends the first access request to the target service server to obtain resource data, he can use the target virtual IP address and service
  • the source address and the client source address identify the user, and the resource data is fed back through the client source address to achieve accurate push of the resource data.
  • the device for acquiring resource data further includes a creation module, which is used to receive a request to create a node instance, and determine the required node instance specifications according to the private network parameters in the request to create a node instance, and according to the required node instance Instance specifications, create node instances.
  • a creation module which is used to receive a request to create a node instance, and determine the required node instance specifications according to the private network parameters in the request to create a node instance, and according to the required node instance Instance specifications, create node instances.
  • the address mapping module is also used to obtain the internal network IP address, and through the target node instance, the target virtual IP address is fullnat according to the internal network IP address to obtain the service source address.
  • the acquisition module is further configured to query the preset business service table according to the resource data acquisition request in the first access request, determine the business service area, determine the corresponding business server set according to the business service area, and determine the set of corresponding business servers based on the business service area.
  • Set the relationship list to determine the target business server corresponding to the target node instance in the business server set, and the relationship list is used to describe the corresponding relationship between the node instance and the business server.
  • the acquisition module is also used to receive the binding request, determine the business server corresponding to each node instance according to the binding request, obtain the IP address information of the business server, and configure it on each node instance according to the IP address information IP information, get a list of relations.
  • the obtaining module is further configured to determine the candidate service server set corresponding to the target node instance in the service server set according to the preset relationship list, obtain the client source address in the first access request, and according to the client The source address and the preset hash algorithm are used to obtain the client address value.
  • the preset address list is queried.
  • the target node is determined according to the target address value.
  • the service server is randomly selected from the set of candidate service servers as the target service server corresponding to the target node instance.
  • Each module in the above device for acquiring resource data can be implemented in whole or in part by software, hardware, and a combination thereof.
  • the above-mentioned modules may be embedded in the form of hardware or independent of the processor in the computer equipment, or may be stored in the memory of the computer equipment in the form of software, so that the processor can call and execute the operations corresponding to the above-mentioned modules.
  • a computer device is provided.
  • the computer device may be a server, and its internal structure diagram may be as shown in FIG. 9.
  • the computer equipment includes a processor, a memory, a network interface, and a database connected through a system bus.
  • the processor of the computer device is used to provide calculation and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium stores an operating system, a computer program, and a database.
  • the internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium.
  • the database of the computer equipment is used to store business service tables and relation lists.
  • the network interface of the computer device is used to communicate with an external terminal through a network connection.
  • the computer program is executed by the processor to realize a method of resource data acquisition.
  • FIG. 9 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied.
  • the specific computer device may Including more or fewer parts than shown in the figure, or combining some parts, or having a different arrangement of parts.
  • a computer device including a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
  • target node instance Through the target node instance, perform address mapping according to the target virtual IP address to obtain the service source address;
  • the computer device for obtaining the resource data described above maps the target virtual IP address to the service source address through address mapping, thereby sending a second access request carrying the service source address to the target service server, and obtains the resource data from the target service server. After obtaining the resource data, push the obtained resource data to the client source address carried in the first access request, so that when the user sends the first access request to the target service server to obtain resource data, he can use the target virtual IP address, The service source address and the client source address identify users, and the resource data is fed back through the client source address to achieve accurate push of resource data.
  • the processor further implements the following steps when executing the computer program:
  • the processor further implements the following steps when executing the computer program:
  • target node instance Through the target node instance, perform fullnat on the target virtual IP address according to the internal network IP address to obtain the service source address.
  • the processor further implements the following steps when executing the computer program:
  • the target business server corresponding to the target node instance in the business server set is determined, and the relationship list is used to describe the corresponding relationship between the node instance and the business server.
  • the processor further implements the following steps when executing the computer program:
  • the processor further implements the following steps when executing the computer program:
  • a business server is randomly selected from the set of candidate business servers as the target business server corresponding to the target node instance.
  • a computer-readable storage medium may be non-volatile or volatile, and has a computer program stored thereon.
  • the computer program When executed by a processor, Implement the following steps:
  • target node instance Through the target node instance, perform address mapping according to the target virtual IP address to obtain the service source address;
  • the storage medium for obtaining the resource data described above maps the target virtual IP address to the service source address through address mapping, thereby sending a second access request carrying the service source address to the target service server, and obtaining the resource data from the target service server. After obtaining the resource data, push the obtained resource data to the client source address carried in the first access request, so that when the user sends the first access request to the target service server to obtain resource data, he can use the target virtual IP address, The service source address and the client source address identify users, and the resource data is fed back through the client source address to achieve accurate push of resource data.
  • target node instance Through the target node instance, perform fullnat on the target virtual IP address according to the internal network IP address to obtain the service source address.
  • the target business server corresponding to the target node instance in the business server set is determined, and the relationship list is used to describe the corresponding relationship between the node instance and the business server.
  • a business server is randomly selected from the set of candidate business servers as the target business server corresponding to the target node instance.
  • Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory may include random access memory (RAM) or external cache memory.
  • RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Channel (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present application relates to the technical field of cloud computing. Provided are a resource data acquisition method and apparatus, a computer device and a storage medium. The method comprises: receiving a first access request, which carries a client source address and a target virtual IP address; determining a target node instance according to the target virtual IP address, and acquiring a target service server corresponding to the target node instance; by means of the target node instance, performing address mapping according to the target virtual IP address, so as to obtain a service source address; sending, to the target service server, a second access request, which carries the service source address, wherein the second access request is used for acquiring resource data from the target service server; and sending the resource data to a terminal directed by the client source address. By means of the method, the accurate pushing of resource data can be realized.

Description

资源数据获取的方法、装置、计算机设备和存储介质Method, device, computer equipment and storage medium for acquiring resource data
本申请要求于2019年9月18日提交中国专利局、申请号为CN201910881900.4,发明名称为“资源数据获取的方法、装置、计算机设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed with the Chinese Patent Office on September 18, 2019, the application number is CN201910881900.4, and the invention title is "Methods, Apparatus, Computer Equipment and Storage Media for Obtaining Resource Data", all of which The content is incorporated in this application by reference.
技术领域Technical field
本申请涉及云计算技术领域,特别是涉及一种资源数据获取的方法、装置、计算机设备和存储介质。This application relates to the field of cloud computing technology, and in particular to a method, device, computer equipment, and storage medium for acquiring resource data.
背景技术Background technique
随着计算机技术的发展,出现了云平台。云平台能够为用户提供充足的计算资源和网络资源,用户可在云平台上自建多个专用网络,并通过专用网络访问云平台上的公共服务资源,如文件存储、数据库等。With the development of computer technology, cloud platforms have emerged. The cloud platform can provide users with sufficient computing resources and network resources. Users can build multiple private networks on the cloud platform and access public service resources on the cloud platform through the private network, such as file storage, databases, etc.
然而,发明人意识到由于云平台需要面向所有用户提供服务,且用户的专用网络之间会存在IP地址重叠的情况,云平台无法通过IP(Internet Protocol Address,网际协议地址)地址来对用户虚拟机进行识别,从而会导致在用户虚拟机需要获取资源数据时,不能实现准确的资源数据推送。However, the inventor realized that because the cloud platform needs to provide services to all users, and there will be IP address overlap between users’ private networks, the cloud platform cannot virtualize users through IP (Internet Protocol Address) addresses. This will lead to the inability to achieve accurate resource data push when the user virtual machine needs to obtain resource data.
技术问题technical problem
基于此,有必要针对上述技术问题,提供一种能够实现资源数据准确推送的资源数据获取的方法、装置、计算机设备和存储介质。Based on this, it is necessary to provide a method, device, computer equipment, and storage medium for acquiring resource data that can achieve accurate push of resource data in response to the above technical problems.
技术解决方案Technical solutions
一种资源数据获取的方法,所述方法包括:A method for obtaining resource data, the method includes:
接收携带有客户端源地址和目标虚拟IP地址的第一访问请求;Receiving the first access request carrying the client source address and the target virtual IP address;
根据目标虚拟IP地址确定目标节点实例,并获取与目标节点实例对应的目标业务服务器;Determine the target node instance according to the target virtual IP address, and obtain the target business server corresponding to the target node instance;
通过目标节点实例,根据目标虚拟IP地址进行地址映射,得到服务源地址;Through the target node instance, perform address mapping according to the target virtual IP address to obtain the service source address;
发送携带服务源地址的第二访问请求至目标业务服务器,第二访问请求用于从目标业务服务器中获取资源数据;Sending a second access request carrying the service source address to the target service server, where the second access request is used to obtain resource data from the target service server;
将资源数据发送至客户端源地址所指向的终端。Send the resource data to the terminal pointed to by the source address of the client.
一种资源数据获取的装置,所述装置包括:A device for acquiring resource data, the device comprising:
接收模块,用于接收携带有客户端源地址和目标虚拟IP地址的第一访问请求;The receiving module is configured to receive the first access request carrying the client source address and the target virtual IP address;
获取模块,用于根据目标虚拟IP地址确定目标节点实例,并获取与目标节点实例对应的目标业务服务器;The obtaining module is used to determine the target node instance according to the target virtual IP address, and obtain the target business server corresponding to the target node instance;
地址映射模块,用于通过目标节点实例,根据目标虚拟IP地址进行地址映射,得到服务源地址;The address mapping module is used to perform address mapping according to the target virtual IP address through the target node instance to obtain the service source address;
发送模块,用于发送携带服务源地址的第二访问请求至目标业务服务器,第二访问请求用于从目标业务服务器中获取资源数据;A sending module, configured to send a second access request carrying the service source address to the target service server, and the second access request is used to obtain resource data from the target service server;
推送模块,用于将资源数据发送至客户端源地址所指向的终端。The push module is used to send resource data to the terminal pointed to by the source address of the client.
一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现如下步骤:A computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when the processor executes the computer program:
接收携带有客户端源地址和目标虚拟IP地址的第一访问请求;Receiving the first access request carrying the client source address and the target virtual IP address;
根据目标虚拟IP地址确定目标节点实例,并获取与目标节点实例对应的目标业务服务器;Determine the target node instance according to the target virtual IP address, and obtain the target business server corresponding to the target node instance;
通过目标节点实例,根据目标虚拟IP地址进行地址映射,得到服务源地址;Through the target node instance, perform address mapping according to the target virtual IP address to obtain the service source address;
发送携带服务源地址的第二访问请求至目标业务服务器,第二访问请求用于从目标业务服务器中获取资源数据;Sending a second access request carrying the service source address to the target service server, where the second access request is used to obtain resource data from the target service server;
将资源数据发送至客户端源地址所指向的终端。Send the resource data to the terminal pointed to by the source address of the client.
一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如下步骤:A computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the following steps are implemented:
接收携带有客户端源地址和目标虚拟IP地址的第一访问请求;Receiving the first access request carrying the client source address and the target virtual IP address;
根据目标虚拟IP地址确定目标节点实例,并获取与目标节点实例对应的目标业务服务器;Determine the target node instance according to the target virtual IP address, and obtain the target business server corresponding to the target node instance;
通过目标节点实例,根据目标虚拟IP地址进行地址映射,得到服务源地址;Through the target node instance, perform address mapping according to the target virtual IP address to obtain the service source address;
发送携带服务源地址的第二访问请求至目标业务服务器,第二访问请求用于从目标业务服务器中获取资源数据;Sending a second access request carrying the service source address to the target service server, where the second access request is used to obtain resource data from the target service server;
将资源数据发送至客户端源地址所指向的终端。Send the resource data to the terminal pointed to by the source address of the client.
有益效果Beneficial effect
上述资源数据获取的方法、装置、计算机设备和存储介质,通过地址映射的方式,将目标虚拟IP地址映射为服务源地址,从而发送携带服务源地址的第二访问请求至目标业务服务器,从目标业务服务器获取资源数据,在获取到资源数据之后,再推送获取的资源数据至第一访问请求中携带的客户端源地址,从而使得用户通过发送第一访问请求访问目标业务服务器获取资源数据时,能够通过目标虚拟IP地址、服务源地址以及客户端源地址对用户进行识别,通过客户端源地址反馈资源数据,实现资源数据的准确推送。The above method, device, computer equipment and storage medium for acquiring resource data map the target virtual IP address to the service source address through address mapping, so as to send a second access request carrying the service source address to the target service server. The service server obtains the resource data, and after obtaining the resource data, pushes the obtained resource data to the client source address carried in the first access request, so that when the user accesses the target service server to obtain the resource data by sending the first access request, The user can be identified through the target virtual IP address, the service source address, and the client source address, and the resource data can be fed back through the client source address to achieve accurate push of the resource data.
附图说明Description of the drawings
图1为一个实施例中资源数据获取的方法的应用场景图;Fig. 1 is an application scenario diagram of a method for acquiring resource data in an embodiment;
图2为一个实施例中资源数据获取的方法的流程示意图;Fig. 2 is a schematic flowchart of a method for acquiring resource data in an embodiment;
图3为另一个实施例中资源数据获取的方法的流程示意图;FIG. 3 is a schematic flowchart of a method for acquiring resource data in another embodiment;
图4为又一个实施例中资源数据获取的方法的流程示意图;FIG. 4 is a schematic flowchart of a method for acquiring resource data in another embodiment;
图5为一个实施例中图2中步骤S204的子流程示意图;FIG. 5 is a schematic diagram of a sub-flow of step S204 in FIG. 2 in an embodiment;
图6为另一个实施例中图2中步骤S204的子流程示意图;FIG. 6 is a schematic diagram of the sub-flow of step S204 in FIG. 2 in another embodiment;
图7为一个实施例中图5中步骤S506的子流程示意图;FIG. 7 is a schematic diagram of the sub-flow of step S506 in FIG. 5 in an embodiment;
图8为一个实施例中资源数据获取的装置的结构框图;Fig. 8 is a structural block diagram of an apparatus for acquiring resource data in an embodiment;
图9为一个实施例中计算机设备的内部结构图。Fig. 9 is an internal structure diagram of a computer device in an embodiment.
本发明的最佳实施方式The best mode of the present invention
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions, and advantages of this application clearer, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not used to limit the present application.
本申请提供的资源数据获取的方法,可以应用于如图1所示的应用环境中。其中,终端102通过网络与服务器104进行通信,服务器104通过网络与目标业务服务器106进行通信。服务器104接收终端102发送的携带有客户端源地址和目标虚拟IP地址的第一访问请求,根据目标虚拟IP地址确定目标节点实例,并获取与目标节点实例对应的目标业务服务器106,通过目标节点实例,根据目标虚拟IP地址进行地址映射,得到服务源地址,发送携带服务源地址的第二访问请求至目标业务服务器106,第二访问请求用于从目标业务服务器中获取资源数据,将资源数据发送至客户端源地址所指向的终端102。其中,终端102可以但不限于是各种个人计算机、笔记本电脑、智能手机、平板电脑和便携式可穿戴设备,服务器104可以用独立的服务器或者是多个服务器组成的服务器集群来实现。The method for acquiring resource data provided in this application can be applied to the application environment as shown in FIG. 1. The terminal 102 communicates with the server 104 through the network, and the server 104 communicates with the target service server 106 through the network. The server 104 receives the first access request sent by the terminal 102 and carries the source address of the client and the target virtual IP address, determines the target node instance according to the target virtual IP address, and obtains the target business server 106 corresponding to the target node instance, through the target node For example, address mapping is performed according to the target virtual IP address to obtain the service source address, and a second access request carrying the service source address is sent to the target service server 106. The second access request is used to obtain resource data from the target service server and transfer the resource data Send to the terminal 102 pointed to by the source address of the client. The terminal 102 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices. The server 104 may be implemented by an independent server or a server cluster composed of multiple servers.
本发明的实施方式Embodiments of the present invention
在一个实施例中,如图2所示,提供了一种资源数据获取的方法,以该方法应用于图1中的服务器为例进行说明,包括以下步骤:In an embodiment, as shown in FIG. 2, a method for obtaining resource data is provided. Taking the method applied to the server in FIG. 1 as an example for description, the method includes the following steps:
S202:接收携带有客户端源地址和目标虚拟IP地址的第一访问请求。S202: Receive a first access request that carries a source address and a target virtual IP address of the client.
当用户想要获取资源数据时,会通过客户端向服务器发送第一访问请求,第一访问请问中携带目标虚拟IP地址以及客户端源地址。客户端源地址即与客户端对应的发出第一访问请求的地址,目标虚拟IP地址即与目标节点实例对应的接收第一访问请求的地址。When a user wants to obtain resource data, a first access request is sent to the server through the client, and the first access request carries the target virtual IP address and the source address of the client. The client source address is the address corresponding to the client to issue the first access request, and the target virtual IP address is the address corresponding to the target node instance to receive the first access request.
S204:根据目标虚拟IP地址确定目标节点实例,并获取与目标节点实例对应的目标业务服务器。S204: Determine the target node instance according to the target virtual IP address, and obtain the target service server corresponding to the target node instance.
目标节点实例是指与目标虚拟IP地址对应的节点实例,在预设的数据库中记录了服务器内各节点实例与虚拟私有云(虚拟IP地址)的对应关系表,服务器根据目标虚拟IP地址,查找对应关系表,就可以确定目标节点实例。节点实例实际上是一组容器,这组容器的规格参数(如CPU(中央处理器,central processing unit)、内存以及硬盘等)是提前配置好的。The target node instance refers to the node instance corresponding to the target virtual IP address. The corresponding relationship table of each node instance in the server and the virtual private cloud (virtual IP address) is recorded in the preset database. The server searches according to the target virtual IP address Correspondence table, you can determine the target node instance. A node instance is actually a set of containers, and the specification parameters of this set of containers (such as CPU (central processing unit, central Processing unit), memory, hard disk, etc.) are configured in advance.
在第一访问请求中还包括资源数据获取请求,服务器通过解析资源数据获取请求,查询预设的业务服务表,可以确定用户想要获取资源的业务服务区,在业务服务表中,存储了各资源数据获取请求和业务服务区之间的对应关系。在业务服务区中包括了业务服务器集合,服务器根据预设的关系列表,可以确定业务服务器集合中与目标节点实例对应的目标业务服务器。其中,关系列表用于描述节点实例与业务服务器之间的对应关系。The first access request also includes a resource data acquisition request. The server can determine the business service area from which the user wants to acquire resources by analyzing the resource data acquisition request and querying the preset business service table. In the business service table, each service area is stored. Correspondence between resource data acquisition request and business service area. The business server set is included in the business service area, and the server can determine the target business server corresponding to the target node instance in the business server set according to the preset relationship list. Among them, the relationship list is used to describe the corresponding relationship between the node instance and the business server.
S206:通过目标节点实例,根据目标虚拟IP地址进行地址映射,得到服务源地址。S206: Perform address mapping according to the target virtual IP address through the target node instance to obtain the service source address.
地址映射是指进行地址转换,在本申请中,即将目标虚拟IP地址与服务源地址进行地址转换。目标虚拟IP地址是由第一访问请求携带的、与客户端源地址同网段的、用于指向目标节点实例的地址,为了获取资源数据,服务器需要通过目标节点实例,根据目标虚拟IP地址进行地址映射,将目标虚拟IP地址转换为服务源地址,服务源地址是指服务器的内网IP地址,具体的,服务器的内网IP地址与目标业务服务器的IP地址也是同网段的IP地址,在完成地址转换后,服务器会发送携带服务源地址的第二访问请求至目标业务服务器,请求获取资源数据,因为此处进行了地址转换,所以目标业务服务器可以根据服务源地址将资源数据准确地反馈至服务器。Address mapping refers to address translation. In this application, address translation is performed between the target virtual IP address and the service source address. The target virtual IP address is the address that is carried by the first access request and is in the same network segment as the source address of the client, and is used to point to the target node instance. In order to obtain resource data, the server needs to use the target node instance to perform processing according to the target virtual IP address Address mapping converts the target virtual IP address to the service source address. The service source address refers to the server’s internal network IP address. Specifically, the server’s internal network IP address and the target business server’s IP address are also IP addresses in the same network segment. After the address conversion is completed, the server will send a second access request carrying the service source address to the target service server to request resource data. Because the address conversion is performed here, the target service server can accurately convert the resource data according to the service source address. Feedback to the server.
S208:发送携带服务源地址的第二访问请求至目标业务服务器,第二访问请求用于从目标业务服务器中获取资源数据。S208: Send a second access request carrying the service source address to the target service server, where the second access request is used to obtain resource data from the target service server.
服务源地址是指服务器的内网IP地址,在确定目标业务服务器和完成地址映射后,服务器会发送携带服务源地址的第二访问请求至目标业务服务器,第二访问请求用于从目标业务服务器中获取资源数据。当目标业务服务器接收到第二访问请求时,会根据第二访问请求中携带的服务源地址反馈资源数据至服务器。The service source address refers to the intranet IP address of the server. After determining the target business server and completing the address mapping, the server will send a second access request carrying the service source address to the target business server, and the second access request is used to send from the target business server Get resource data in. When the target service server receives the second access request, it will feed back the resource data to the server according to the service source address carried in the second access request.
S210:将资源数据发送至客户端源地址所指向的终端。S210: Send the resource data to the terminal pointed to by the source address of the client.
服务器在接收到目标业务服务器反馈的资源数据后,会将得到的资源数据发送至第一访问请求中携带的客户端源地址所指向的终端。客户端源地址可以用于定位用户的终端,通过这种方式,可以实现资源数据的准确推送,即服务器能准确的将资源数据发送至用户的终端。After receiving the resource data fed back by the target service server, the server sends the obtained resource data to the terminal pointed to by the client source address carried in the first access request. The client source address can be used to locate the user's terminal. In this way, the resource data can be accurately pushed, that is, the server can accurately send the resource data to the user's terminal.
上述资源数据获取的方法,通过地址映射的方式,将目标虚拟IP地址映射为服务源地址,从而发送携带服务源地址的第二访问请求至目标业务服务器,从目标业务服务器获取资源数据,在获取到资源数据之后,再推送获取的资源数据至第一访问请求中携带的客户端源地址,从而使得用户通过发送第一访问请求访问目标业务服务器获取资源数据时,能够通过目标虚拟IP地址、服务源地址以及客户端源地址对用户进行识别,通过客户端源地址反馈资源数据,实现资源数据的准确推送。In the above method for obtaining resource data, the target virtual IP address is mapped to the service source address through address mapping, thereby sending a second access request carrying the service source address to the target service server, and obtaining resource data from the target service server. After the resource data is received, the acquired resource data is pushed to the client source address carried in the first access request, so that when the user sends the first access request to the target service server to obtain resource data, he can use the target virtual IP address and service The source address and the client source address identify the user, and the resource data is fed back through the client source address to achieve accurate push of the resource data.
在其中一个实施例中,如图3所示,S204前,还包括:In one of the embodiments, as shown in FIG. 3, before S204, the method further includes:
S302:接收创建节点实例请求,根据创建节点实例请求中的专有网络参数,确定所需节点实例规格;S302: Receive a node instance creation request, and determine the required node instance specifications according to the private network parameters in the node instance creation request;
S304:根据所需节点实例规格,创建节点实例。S304: Create a node instance according to the required node instance specifications.
服务器包括预设的物理机集群,节点实例实际上是一组容器,这组容器的规格参数(如CPU、内存以及硬盘等)是提前在物理机集群中配置好的。创建节点实例请求中包括专有网络参数,专有网络参数包括专有网络ID(Identity document,身份标识号)和专有网络内的一个IP地址。当服务器接收到创建节点实例请求时,会根据其中的专有网络参数确定所需节点实例规格,从而根据所需节点实例规则,在物理机集群上拉起一组容器,并在预设的数据库的对应关系表中记录节点实例与专有网络内一个IP地址的对应关系。The server includes a preset physical machine cluster, and the node instance is actually a group of containers. The specifications of this group of containers (such as CPU, memory, and hard disk, etc.) are configured in the physical machine cluster in advance. The request for creating a node instance includes the private network parameters, and the private network parameters include the private network ID (Identity document, identification number) and an IP address in the private network. When the server receives a request to create a node instance, it will determine the required node instance specifications according to the proprietary network parameters, and then pull up a set of containers on the physical machine cluster according to the required node instance rules, and set it in the preset database The corresponding relationship table records the corresponding relationship between the node instance and an IP address in the private network.
具体的,因为专有网络参数中包括专有网络内的一个IP地址,所以当用户从客户端发送第一访问请求时,其目标虚拟IP地址是与客户端源地址归属于同一网段的IP地址,从而使用户感觉该节点实例以及获取资源数据的服务是独享的,提升用户体验。进一步的,采用多台物理机搭建物理机集群,可以保证在一台物理机故障时仍然有其他备用物理机可以工作。服务器会根据创建节点实例请求为用户的专有网络创建一个节点实例,节点实例在预设的物理机集群上体现为一组容器,容器属于该专有网络,且与其他专有网络的容器隔离。容器为all active模式,以实现虚拟机与业务服务器之间的高吞吐。Specifically, because the private network parameters include an IP address in the private network, when the user sends the first access request from the client, the target virtual IP address is the IP that belongs to the same network segment as the source address of the client. Address, so that the user feels that the node instance and the service for obtaining resource data are exclusive, and the user experience is improved. Further, the use of multiple physical machines to build a physical machine cluster can ensure that when one physical machine fails, there are still other standby physical machines that can work. The server will create a node instance for the user's private network according to the node instance creation request. The node instance is embodied as a set of containers on the preset physical machine cluster. The container belongs to the private network and is isolated from other private network containers. . The container is in all active mode to achieve high throughput between virtual machines and business servers.
上述实施例,根据创建节点实例请求确定所需节点实例规格,根据所需节点实例规格,创建节点实例,实现了对节点实例的创建。In the foregoing embodiment, the required node instance specification is determined according to the request for creating a node instance, and the node instance is created according to the required node instance specification, thereby realizing the creation of the node instance.
在其中一个实施例中,如图4所示,S206包括:In one of the embodiments, as shown in FIG. 4, S206 includes:
S402:获取内网IP地址;S402: Obtain the intranet IP address;
S404:通过目标节点实例,根据内网IP地址对目标虚拟IP地址做fullnat,得到服务源地址。S404: Through the target node instance, perform fullnat on the target virtual IP address according to the intranet IP address to obtain the service source address.
在传统的NAT(Network Address Translation,网络地址转换)模式下,有一个不可避免的问题,即LVS(Linux Virtual Server,Linux虚拟服务器)和业务服务器必须在同一个VLAN(Virtual Local Area Network,虚拟局域网)下,否则LVS无法作为业务服务器的网关,这会导致跨VLAN的业务服务器无法接入,且LVS的水平扩展受到限制。采用fullnat模式,可以解决LVS和业务服务器跨VLAN的问题,而跨 VLAN 问题解决后,LVS和业务服务器不再存在 VLAN 上的从属关系,可以做到多个 LVS 对应多个业务服务器,解决水平扩容的问题。In the traditional NAT (Network Address Translation, network address translation) mode, there is an inevitable problem, that is, LVS (Linux Virtual Server, Linux virtual server) and business server must be in the same VLAN (Virtual Local Area) Network, virtual local area network), otherwise LVS cannot be used as the gateway of the business server, which will cause the cross-VLAN business server to be unable to access, and the horizontal expansion of LVS is restricted. Using the fullnat mode can solve the problem of cross-VLAN between LVS and business servers. After the cross-VLAN problem is solved, LVS and business servers no longer have a VLAN subordination relationship, and multiple LVSs can correspond to multiple business servers to solve horizontal expansion. The problem.
在目标节点实例中IP地址分为两种,目标虚拟IP地址和服务源地址。其中的目标虚拟IP地址与用户的专有网络(即客户端源地址)通信,暴露给用户,与用户的专有网络属于同一个网段内。其中的服务源地址与业务服务区中的目标业务服务器通信,具体的,服务源地址即服务器的内网IP地址。地址映射转换是通过LVS fullnat实现的。当用户需要访问服务时,通过客户端将携带目标虚拟IP地址的第一访问请求发送给服务器,服务器通过目标节点实例将第一访问请求的目的地址修改为目标业务服务器的IP地址,源地址改为服务源地址(即自己的内网IP地址),发送携带服务源地址的第二访问请求至目标业务服务器,在接收到目标业务服务器反馈的资源数据后,将目的地址改为客户端源地址,源地址改为自己的IP地址,推送获取的资源数据至客户端源地址。There are two types of IP addresses in the target node instance, the target virtual IP address and the service source address. The target virtual IP address communicates with the user's private network (that is, the client source address), is exposed to the user, and belongs to the same network segment as the user's private network. The service source address communicates with the target business server in the business service area. Specifically, the service source address is the intranet IP address of the server. The address mapping conversion is realized through LVS fullnat. When the user needs to access the service, the client sends the first access request carrying the target virtual IP address to the server, and the server modifies the destination address of the first access request to the IP address of the target business server through the target node instance, and the source address is changed For the service source address (that is, your own intranet IP address), send a second access request carrying the service source address to the target service server, and after receiving the resource data fed back by the target service server, change the destination address to the client source address , The source address is changed to your own IP address, and the obtained resource data is pushed to the client source address.
上述实施例,获取内网IP地址,通过目标节点实例,根据内网IP地址对目标虚拟IP地址做fullnat,得到服务源地址,实现了对服务源地址的获取。In the above embodiment, the intranet IP address is obtained, and the target virtual IP address is fullynatted according to the intranet IP address through the target node instance to obtain the service source address, which realizes the acquisition of the service source address.
在其中一个实施例中,如图5所示,S204包括:In one of the embodiments, as shown in FIG. 5, S204 includes:
S502:根据第一访问请求中的资源数据获取请求查询预设的业务服务表,确定业务服务区;S502: Query a preset business service table according to the resource data acquisition request in the first access request, and determine a business service area;
S504:根据业务服务区,确定对应的业务服务器集合;S504: Determine a corresponding set of business servers according to the business service area;
S506:根据预设的关系列表,确定业务服务器集合中与目标节点实例对应的目标业务服务器,关系列表用于描述节点实例与业务服务器之间的对应关系。S506: Determine the target service server corresponding to the target node instance in the service server set according to the preset relationship list, where the relationship list is used to describe the corresponding relationship between the node instance and the service server.
服务器根据第一访问请求中的资源数据获取请求查询预设的业务服务表,确定业务服务区,在业务服务表中,存储了各资源数据获取请求和业务服务区之间的对应关系。在各业务服务区中包括多个业务服务器,在确定业务服务区之后,服务器根据业务服务区可确定对应的业务服务器集合,进而根据预设的关系列表,确定业务服务器集合中与目标节点实例对应的目标业务服务器。其中预设的关系列表用于描述节点实例与业务服务器之间的对应关系,在关系列表中多个节点实例与多个业务服务器分别对应。The server queries a preset business service table according to the resource data acquisition request in the first access request to determine the business service area. In the business service table, the correspondence between each resource data acquisition request and the business service area is stored. Each business service area includes multiple business servers. After determining the business service area, the server can determine the corresponding business server set according to the business service area, and then determine the business server set corresponding to the target node instance according to the preset relationship list The target business server. The preset relationship list is used to describe the corresponding relationship between the node instance and the business server. In the relationship list, multiple node instances correspond to multiple business servers, respectively.
上述实施例,根据第一访问请求中的资源数据获取请求确定业务服务区,根据业务服务区和预设的关系列表,确定与目标节点实例对应的目标业务服务器,实现了对与目标节点实例对应的目标业务服务器的确定。In the above-mentioned embodiment, the business service area is determined according to the resource data acquisition request in the first access request, and the target business server corresponding to the target node instance is determined according to the business service area and the preset relationship list, so as to realize the correspondence between the target node instance and the target node instance. Determine the target business server.
在其中一个实施例中,如图6所示,S506前,还包括:In one of the embodiments, as shown in FIG. 6, before S506, the method further includes:
S602:接收绑定请求;S602: Receive a binding request;
S604:根据绑定请求,确定与各节点实例对应的业务服务器;S604: Determine the business server corresponding to each node instance according to the binding request;
S606:获取业务服务器的IP地址信息;S606: Obtain the IP address information of the service server;
S608:根据IP地址信息在各节点实例上配置IP信息,得到关系列表。S608: Configure IP information on each node instance according to the IP address information to obtain a relationship list.
绑定请求是指用户请求对各节点实例和各业务服务器进行绑定的请求。服务器在接收到绑定请求后,首先会根据绑定请求确定用户已购买的服务,从而确定与该服务对应的业务服务区,获取该业务服务区的IP地址信息,确定该业务服务区中的未被绑定的IP地址集合,然后从未被绑定的IP地址集合中随机选取IP地址作为与各节点实例对应的业务服务器的IP地址,获取业务服务器的IP地址信息,根据IP地址信息在各节点实例上配置IP信息,得到关系列表。A binding request refers to a request from a user to bind each node instance and each service server. After the server receives the binding request, it will first determine the service that the user has purchased according to the binding request, thereby determining the business service area corresponding to the service, obtaining the IP address information of the business service area, and determining the service area in the business service area. Unbound IP address collection, and then randomly select an IP address from the unbound IP address collection as the IP address of the business server corresponding to each node instance, and obtain the IP address information of the business server. Configure IP information on each node instance to obtain a list of relationships.
上述实施例,根据绑定请求,确定与各节点实例对应的业务服务器,获取业务服务器的IP地址信息,根据IP地址信息在各节点实例上配置IP信息,得到关系列表,实现了对关系列表的获取。In the above embodiment, according to the binding request, the business server corresponding to each node instance is determined, the IP address information of the business server is obtained, and the IP information is configured on each node instance according to the IP address information to obtain the relationship list, and the relationship list is realized Obtain.
在其中一个实施例中,如图7所示,S506包括:In one of the embodiments, as shown in FIG. 7, S506 includes:
S702:根据预设的关系列表,确定业务服务器集合中与目标节点实例对应的候选业务服务器集合;S702: Determine a set of candidate business servers corresponding to the target node instance in the set of business servers according to the preset relationship list;
S704:获取第一访问请求中的客户端源地址,根据客户端源地址以及预设的哈希算法,得到客户端地址值;S704: Obtain the client source address in the first access request, and obtain the client address value according to the client source address and a preset hash algorithm;
S706:根据客户端地址值,查询预设的地址列表;S706: Query the preset address list according to the client address value;
S708:当地址列表中存在对应的目标地址值时,根据目标地址值,确定与目标节点实例对应的目标业务服务器;S708: When there is a corresponding target address value in the address list, determine the target business server corresponding to the target node instance according to the target address value;
S710:当地址列表中不存在对应的目标地址值时,从候选业务服务器集合中随机选取业务服务器作为与目标节点实例对应的目标业务服务器。S710: When the corresponding target address value does not exist in the address list, randomly select a business server from the set of candidate business servers as the target business server corresponding to the target node instance.
因为一个节点实例会与多个业务服务器对应,所以服务器根据预设的关系列表,可以确定业务服务器集合中与目标节点实例对应的候选业务服务器集合。候选业务服务器集合中各业务服务器都可以接收第二访问请求并反馈对应的资源数据,服务器需要进一步在候选业务服务器集合中选择目标业务服务器,此时,服务器会获取第一访问请求中的客户端源地址,根据客户端源地址以及预设的哈希算法,得到客户端地址值,根据客户端地址值,查询预设的地址列表,当地址列表中存在对应的目标地址值时,根据目标地址值,确定与目标节点实例对应的目标业务服务器,当地址列表中不存在对应的目标地址值时,从候选业务服务器集合中随机选取业务服务器作为与目标节点实例对应的目标业务服务器。Because one node instance corresponds to multiple service servers, the server can determine the candidate service server set corresponding to the target node instance in the service server set according to the preset relationship list. Each service server in the candidate service server set can receive the second access request and feed back the corresponding resource data. The server needs to further select the target service server from the candidate service server set. At this time, the server will obtain the client in the first access request The source address, according to the client source address and the preset hash algorithm, obtain the client address value, according to the client address value, query the preset address list, when there is a corresponding target address value in the address list, according to the target address Value, determine the target service server corresponding to the target node instance, and when there is no corresponding target address value in the address list, randomly select the service server from the candidate service server set as the target service server corresponding to the target node instance.
其中,预设的哈希算法可按照需要自行设置。根据客户端地址值,查询预设的地址列表是为了将与同一个客户端对应的第二访问请求固定分发到同一个业务服务器,即服务器支持源地址哈希的会话保持服务。若客户端在此之前曾经发送过第一访问请求至服务器获取资源数据,服务器会将根据客户端源地址以及目标业务服务器的IP地址,得到客户端与业务服务器之间的对应关系,并将对应关系存入地址列表中。Among them, the preset hash algorithm can be set as needed. According to the client address value, the purpose of querying the preset address list is to distribute the second access request corresponding to the same client to the same service server, that is, the server supports the session maintenance service of source address hashing. If the client has previously sent the first access request to the server to obtain resource data, the server will obtain the corresponding relationship between the client and the business server based on the source address of the client and the IP address of the target business server, and will correspond The relationship is stored in the address list.
上述实施例,根据客户端源地址以及预设的哈希算法,得到客户端地址值,根据客户端地址值,查询预设的地址列表,进而根据查询情况以及候选业务服务器集合确定目标业务服务器,实现了对目标业务服务器的确定。In the above embodiment, the client address value is obtained according to the client source address and the preset hash algorithm, the preset address list is queried according to the client address value, and the target service server is determined according to the query situation and the set of candidate service servers, Realize the determination of the target business server.
应该理解的是,虽然图2-7的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2-7中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the various steps in the flowcharts of FIGS. 2-7 are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless there is a clear description in this article, there is no strict order for the execution of these steps, and these steps can be executed in other orders. Moreover, at least some of the steps in Figures 2-7 may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. These sub-steps or stages The execution order of is not necessarily performed sequentially, but may be performed alternately or alternately with at least a part of other steps or sub-steps or stages of other steps.
在一个实施例中,如图8所示,提供了一种资源数据获取的装置,包括:接收模块802、获取模块804、地址映射模块806、发送模块808和推送模块810,其中:In one embodiment, as shown in FIG. 8, a device for acquiring resource data is provided, including: a receiving module 802, an acquiring module 804, an address mapping module 806, a sending module 808, and a pushing module 810, wherein:
接收模块802,用于接收携带有客户端源地址和目标虚拟IP地址的第一访问请求;The receiving module 802 is configured to receive the first access request carrying the client source address and the target virtual IP address;
获取模块804,用于根据目标虚拟IP地址确定目标节点实例,并获取与目标节点实例对应的目标业务服务器;The obtaining module 804 is configured to determine the target node instance according to the target virtual IP address, and obtain the target business server corresponding to the target node instance;
地址映射模块806,用于通过目标节点实例,根据目标虚拟IP地址进行地址映射,得到服务源地址;The address mapping module 806 is configured to perform address mapping according to the target virtual IP address through the target node instance to obtain the service source address;
发送模块808,用于发送携带服务源地址的第二访问请求至目标业务服务器,第二访问请求用于从目标业务服务器中获取资源数据;The sending module 808 is configured to send a second access request carrying the service source address to the target service server, and the second access request is used to obtain resource data from the target service server;
推送模块810,用于将资源数据发送至客户端源地址所指向的终端。The push module 810 is used to send resource data to the terminal pointed to by the source address of the client.
上述资源数据获取的装置,通过地址映射的方式,将目标虚拟IP地址映射为服务源地址,从而发送携带服务源地址的第二访问请求至目标业务服务器,从目标业务服务器获取资源数据,在获取到资源数据之后,再推送获取的资源数据至第一访问请求中携带的客户端源地址,从而使得用户通过发送第一访问请求访问目标业务服务器获取资源数据时,能够通过目标虚拟IP地址、服务源地址以及客户端源地址对用户进行识别,通过客户端源地址反馈资源数据,实现资源数据的准确推送。The above-mentioned resource data acquisition device maps the target virtual IP address to the service source address through address mapping, thereby sending a second access request carrying the service source address to the target service server, and obtains the resource data from the target service server. After the resource data is received, the acquired resource data is pushed to the client source address carried in the first access request, so that when the user sends the first access request to the target service server to obtain resource data, he can use the target virtual IP address and service The source address and the client source address identify the user, and the resource data is fed back through the client source address to achieve accurate push of the resource data.
在其中一个实施例中,资源数据获取的装置还包括创建模块,创建模块用于接收创建节点实例请求,根据创建节点实例请求中的专有网络参数,确定所需节点实例规格,根据所需节点实例规格,创建节点实例。In one of the embodiments, the device for acquiring resource data further includes a creation module, which is used to receive a request to create a node instance, and determine the required node instance specifications according to the private network parameters in the request to create a node instance, and according to the required node instance Instance specifications, create node instances.
在其中一个实施例中,地址映射模块还用于获取内网IP地址,通过目标节点实例,根据内网IP地址对目标虚拟IP地址做fullnat,得到服务源地址。In one of the embodiments, the address mapping module is also used to obtain the internal network IP address, and through the target node instance, the target virtual IP address is fullnat according to the internal network IP address to obtain the service source address.
在其中一个实施例中,获取模块还用于根据第一访问请求中的资源数据获取请求查询预设的业务服务表,确定业务服务区,根据业务服务区,确定对应的业务服务器集合,根据预设的关系列表,确定业务服务器集合中与目标节点实例对应的目标业务服务器,关系列表用于描述节点实例与业务服务器之间的对应关系。In one of the embodiments, the acquisition module is further configured to query the preset business service table according to the resource data acquisition request in the first access request, determine the business service area, determine the corresponding business server set according to the business service area, and determine the set of corresponding business servers based on the business service area. Set the relationship list to determine the target business server corresponding to the target node instance in the business server set, and the relationship list is used to describe the corresponding relationship between the node instance and the business server.
在其中一个实施例中,获取模块还用于接收绑定请求,根据绑定请求,确定与各节点实例对应的业务服务器,获取业务服务器的IP地址信息,根据IP地址信息在各节点实例上配置IP信息,得到关系列表。In one of the embodiments, the acquisition module is also used to receive the binding request, determine the business server corresponding to each node instance according to the binding request, obtain the IP address information of the business server, and configure it on each node instance according to the IP address information IP information, get a list of relations.
在其中一个实施例中,获取模块还用于根据预设的关系列表,确定业务服务器集合中与目标节点实例对应的候选业务服务器集合,获取第一访问请求中的客户端源地址,根据客户端源地址以及预设的哈希算法,得到客户端地址值,根据客户端地址值,查询预设的地址列表,当地址列表中存在对应的目标地址值时,根据目标地址值,确定与目标节点实例对应的目标业务服务器,当地址列表中不存在对应的目标地址值时,从候选业务服务器集合中随机选取业务服务器作为与目标节点实例对应的目标业务服务器。In one of the embodiments, the obtaining module is further configured to determine the candidate service server set corresponding to the target node instance in the service server set according to the preset relationship list, obtain the client source address in the first access request, and according to the client The source address and the preset hash algorithm are used to obtain the client address value. According to the client address value, the preset address list is queried. When the corresponding target address value exists in the address list, the target node is determined according to the target address value. For the target service server corresponding to the instance, when the corresponding target address value does not exist in the address list, the service server is randomly selected from the set of candidate service servers as the target service server corresponding to the target node instance.
关于资源数据获取的装置的具体限定可以参见上文中对于资源数据获取的方法的限定,在此不再赘述。上述资源数据获取的装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific definition of the device for acquiring resource data, please refer to the above definition of the method for acquiring resource data, which will not be repeated here. Each module in the above device for acquiring resource data can be implemented in whole or in part by software, hardware, and a combination thereof. The above-mentioned modules may be embedded in the form of hardware or independent of the processor in the computer equipment, or may be stored in the memory of the computer equipment in the form of software, so that the processor can call and execute the operations corresponding to the above-mentioned modules.
在一个实施例中,提供了一种计算机设备,该计算机设备可以是服务器,其内部结构图可以如图9所示。该计算机设备包括通过***总线连接的处理器、存储器、网络接口和数据库。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作***、计算机程序和数据库。该内存储器为非易失性存储介质中的操作***和计算机程序的运行提供环境。该计算机设备的数据库用于存储业务服务表以及关系列表。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种资源数据获取的方法。In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. 9. The computer equipment includes a processor, a memory, a network interface, and a database connected through a system bus. Among them, the processor of the computer device is used to provide calculation and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The database of the computer equipment is used to store business service tables and relation lists. The network interface of the computer device is used to communicate with an external terminal through a network connection. The computer program is executed by the processor to realize a method of resource data acquisition.
本领域技术人员可以理解,图9中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 9 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may Including more or fewer parts than shown in the figure, or combining some parts, or having a different arrangement of parts.
在一个实施例中,提供了一种计算机设备,包括存储器和处理器,该存储器存储有计算机程序,该处理器执行计算机程序时实现以下步骤:In one embodiment, a computer device is provided, including a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
接收携带有客户端源地址和目标虚拟IP地址的第一访问请求;Receiving the first access request carrying the client source address and the target virtual IP address;
根据目标虚拟IP地址确定目标节点实例,并获取与目标节点实例对应的目标业务服务器;Determine the target node instance according to the target virtual IP address, and obtain the target business server corresponding to the target node instance;
通过目标节点实例,根据目标虚拟IP地址进行地址映射,得到服务源地址;Through the target node instance, perform address mapping according to the target virtual IP address to obtain the service source address;
发送携带服务源地址的第二访问请求至目标业务服务器,第二访问请求用于从目标业务服务器中获取资源数据;Sending a second access request carrying the service source address to the target service server, where the second access request is used to obtain resource data from the target service server;
将资源数据发送至客户端源地址所指向的终端。Send the resource data to the terminal pointed to by the source address of the client.
上述资源数据获取的计算机设备,通过地址映射的方式,将目标虚拟IP地址映射为服务源地址,从而发送携带服务源地址的第二访问请求至目标业务服务器,从目标业务服务器获取资源数据,在获取到资源数据之后,再推送获取的资源数据至第一访问请求中携带的客户端源地址,从而使得用户通过发送第一访问请求访问目标业务服务器获取资源数据时,能够通过目标虚拟IP地址、服务源地址以及客户端源地址对用户进行识别,通过客户端源地址反馈资源数据,实现资源数据的准确推送。The computer device for obtaining the resource data described above maps the target virtual IP address to the service source address through address mapping, thereby sending a second access request carrying the service source address to the target service server, and obtains the resource data from the target service server. After obtaining the resource data, push the obtained resource data to the client source address carried in the first access request, so that when the user sends the first access request to the target service server to obtain resource data, he can use the target virtual IP address, The service source address and the client source address identify users, and the resource data is fed back through the client source address to achieve accurate push of resource data.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:In an embodiment, the processor further implements the following steps when executing the computer program:
接收创建节点实例请求,根据创建节点实例请求中的专有网络参数,确定所需节点实例规格;Receive the request to create a node instance, and determine the required node instance specifications according to the private network parameters in the request to create a node instance;
根据所需节点实例规格,创建节点实例。Create a node instance according to the required node instance specifications.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:In an embodiment, the processor further implements the following steps when executing the computer program:
获取内网IP地址;Obtain the intranet IP address;
通过目标节点实例,根据内网IP地址对目标虚拟IP地址做fullnat,得到服务源地址。Through the target node instance, perform fullnat on the target virtual IP address according to the internal network IP address to obtain the service source address.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:In an embodiment, the processor further implements the following steps when executing the computer program:
根据第一访问请求中的资源数据获取请求查询预设的业务服务表,确定业务服务区;Query the preset business service table according to the resource data acquisition request in the first access request, and determine the business service area;
根据业务服务区,确定对应的业务服务器集合;According to the business service area, determine the corresponding business server set;
根据预设的关系列表,确定业务服务器集合中与目标节点实例对应的目标业务服务器,关系列表用于描述节点实例与业务服务器之间的对应关系。According to the preset relationship list, the target business server corresponding to the target node instance in the business server set is determined, and the relationship list is used to describe the corresponding relationship between the node instance and the business server.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:In an embodiment, the processor further implements the following steps when executing the computer program:
接收绑定请求;Receive binding request;
根据绑定请求,确定与各节点实例对应的业务服务器;According to the binding request, determine the business server corresponding to each node instance;
获取业务服务器的IP地址信息;Obtain the IP address information of the business server;
根据IP地址信息在各节点实例上配置IP信息,得到关系列表。Configure IP information on each node instance according to the IP address information to obtain a list of relationships.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:In an embodiment, the processor further implements the following steps when executing the computer program:
根据预设的关系列表,确定业务服务器集合中与目标节点实例对应的候选业务服务器集合;According to the preset relationship list, determine the candidate service server set corresponding to the target node instance in the service server set;
获取第一访问请求中的客户端源地址,根据客户端源地址以及预设的哈希算法,得到客户端地址值;Obtain the client source address in the first access request, and obtain the client address value according to the client source address and a preset hash algorithm;
根据客户端地址值,查询预设的地址列表;According to the client address value, query the preset address list;
当地址列表中存在对应的目标地址值时,根据目标地址值,确定与目标节点实例对应的目标业务服务器;When there is a corresponding target address value in the address list, determine the target business server corresponding to the target node instance according to the target address value;
当地址列表中不存在对应的目标地址值时,从候选业务服务器集合中随机选取业务服务器作为与目标节点实例对应的目标业务服务器。When the corresponding target address value does not exist in the address list, a business server is randomly selected from the set of candidate business servers as the target business server corresponding to the target node instance.
在一个实施例中,提供了一种计算机可读存储介质,所述计算机可读存储介质可以是非易失性,也可以是易失性,其上存储有计算机程序,计算机程序被处理器执行时实现以下步骤:In one embodiment, a computer-readable storage medium is provided. The computer-readable storage medium may be non-volatile or volatile, and has a computer program stored thereon. When the computer program is executed by a processor, Implement the following steps:
接收携带有客户端源地址和目标虚拟IP地址的第一访问请求;Receiving the first access request carrying the client source address and the target virtual IP address;
根据目标虚拟IP地址确定目标节点实例,并获取与目标节点实例对应的目标业务服务器;Determine the target node instance according to the target virtual IP address, and obtain the target business server corresponding to the target node instance;
通过目标节点实例,根据目标虚拟IP地址进行地址映射,得到服务源地址;Through the target node instance, perform address mapping according to the target virtual IP address to obtain the service source address;
发送携带服务源地址的第二访问请求至目标业务服务器,第二访问请求用于从目标业务服务器中获取资源数据;Sending a second access request carrying the service source address to the target service server, where the second access request is used to obtain resource data from the target service server;
将资源数据发送至客户端源地址所指向的终端。Send the resource data to the terminal pointed to by the source address of the client.
上述资源数据获取的存储介质,通过地址映射的方式,将目标虚拟IP地址映射为服务源地址,从而发送携带服务源地址的第二访问请求至目标业务服务器,从目标业务服务器获取资源数据,在获取到资源数据之后,再推送获取的资源数据至第一访问请求中携带的客户端源地址,从而使得用户通过发送第一访问请求访问目标业务服务器获取资源数据时,能够通过目标虚拟IP地址、服务源地址以及客户端源地址对用户进行识别,通过客户端源地址反馈资源数据,实现资源数据的准确推送。The storage medium for obtaining the resource data described above maps the target virtual IP address to the service source address through address mapping, thereby sending a second access request carrying the service source address to the target service server, and obtaining the resource data from the target service server. After obtaining the resource data, push the obtained resource data to the client source address carried in the first access request, so that when the user sends the first access request to the target service server to obtain resource data, he can use the target virtual IP address, The service source address and the client source address identify users, and the resource data is fed back through the client source address to achieve accurate push of resource data.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:In an embodiment, when the computer program is executed by the processor, the following steps are further implemented:
接收创建节点实例请求,根据创建节点实例请求中的专有网络参数,确定所需节点实例规格;Receive the request to create a node instance, and determine the required node instance specifications according to the private network parameters in the request to create a node instance;
根据所需节点实例规格,创建节点实例。Create a node instance according to the required node instance specifications.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:In an embodiment, when the computer program is executed by the processor, the following steps are further implemented:
获取内网IP地址;Obtain the intranet IP address;
通过目标节点实例,根据内网IP地址对目标虚拟IP地址做fullnat,得到服务源地址。Through the target node instance, perform fullnat on the target virtual IP address according to the internal network IP address to obtain the service source address.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:In an embodiment, when the computer program is executed by the processor, the following steps are further implemented:
根据第一访问请求中的资源数据获取请求查询预设的业务服务表,确定业务服务区;Query the preset business service table according to the resource data acquisition request in the first access request, and determine the business service area;
根据业务服务区,确定对应的业务服务器集合;According to the business service area, determine the corresponding business server set;
根据预设的关系列表,确定业务服务器集合中与目标节点实例对应的目标业务服务器,关系列表用于描述节点实例与业务服务器之间的对应关系。According to the preset relationship list, the target business server corresponding to the target node instance in the business server set is determined, and the relationship list is used to describe the corresponding relationship between the node instance and the business server.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:In an embodiment, when the computer program is executed by the processor, the following steps are further implemented:
接收绑定请求;Receive binding request;
根据绑定请求,确定与各节点实例对应的业务服务器;According to the binding request, determine the business server corresponding to each node instance;
获取业务服务器的IP地址信息;Obtain the IP address information of the business server;
根据IP地址信息在各节点实例上配置IP信息,得到关系列表。Configure IP information on each node instance according to the IP address information to obtain a list of relationships.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:In an embodiment, when the computer program is executed by the processor, the following steps are further implemented:
根据预设的关系列表,确定业务服务器集合中与目标节点实例对应的候选业务服务器集合;According to the preset relationship list, determine the candidate service server set corresponding to the target node instance in the service server set;
获取第一访问请求中的客户端源地址,根据客户端源地址以及预设的哈希算法,得到客户端地址值;Obtain the client source address in the first access request, and obtain the client address value according to the client source address and a preset hash algorithm;
根据客户端地址值,查询预设的地址列表;According to the client address value, query the preset address list;
当地址列表中存在对应的目标地址值时,根据目标地址值,确定与目标节点实例对应的目标业务服务器;When there is a corresponding target address value in the address list, determine the target business server corresponding to the target node instance according to the target address value;
当地址列表中不存在对应的目标地址值时,从候选业务服务器集合中随机选取业务服务器作为与目标节点实例对应的目标业务服务器。When the corresponding target address value does not exist in the address list, a business server is randomly selected from the set of candidate business servers as the target business server corresponding to the target node instance.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink) DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer readable storage. In the medium, when the computer program is executed, it may include the procedures of the above-mentioned method embodiments. Wherein, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and/or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not a limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Channel (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be It is considered as the range described in this specification.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation manners of the present application, and their description is relatively specific and detailed, but they should not be understood as a limitation on the scope of the invention patent. It should be noted that for those of ordinary skill in the art, without departing from the concept of this application, several modifications and improvements can be made, and these all fall within the protection scope of this application. Therefore, the scope of protection of the patent of this application shall be subject to the appended claims.

Claims (20)

  1. 一种资源数据获取的方法,其中,所述方法包括:A method for acquiring resource data, wherein the method includes:
    接收携带有客户端源地址和目标虚拟IP地址的第一访问请求;Receiving the first access request carrying the client source address and the target virtual IP address;
    根据所述目标虚拟IP地址确定目标节点实例,并获取与所述目标节点实例对应的目标业务服务器;通过所述目标节点实例,根据所述目标虚拟IP地址进行地址映射,得到服务源地址;Determine a target node instance according to the target virtual IP address, and obtain a target service server corresponding to the target node instance; through the target node instance, perform address mapping according to the target virtual IP address to obtain a service source address;
    发送携带所述服务源地址的第二访问请求至所述目标业务服务器,所述第二访问请求用于从所述目标业务服务器中获取资源数据;Sending a second access request carrying the service source address to the target service server, where the second access request is used to obtain resource data from the target service server;
    将所述资源数据发送至所述客户端源地址所指向的终端。Sending the resource data to the terminal pointed to by the client source address.
  2. 根据权利要求1所述的方法,其中,所述根据所述目标虚拟IP地址确定目标节点实例前,还包括:The method according to claim 1, wherein before the determining the target node instance according to the target virtual IP address, the method further comprises:
    接收创建节点实例请求,根据所述创建节点实例请求中的专有网络参数,确定所需节点实例规格;Receiving a request for creating a node instance, and determining the required node instance specifications according to the private network parameters in the request for creating a node instance;
    根据所述所需节点实例规格,创建节点实例。Create a node instance according to the required node instance specifications.
  3. 根据权利要求1所述的方法,其中,所述通过所述目标节点实例,根据所述目标虚拟IP地址进行地址映射,得到服务源地址包括:The method according to claim 1, wherein said performing address mapping according to said target virtual IP address through said target node instance to obtain a service source address comprises:
    获取内网IP地址;Obtain the intranet IP address;
    通过所述目标节点实例,根据所述内网IP地址对所述目标虚拟IP地址做fullnat,得到服务源地址。Through the target node instance, a fullnat is performed on the target virtual IP address according to the intranet IP address to obtain the service source address.
  4. 根据权利要求1所述的方法,其中,所述获取与所述目标节点实例对应的目标业务服务器包括:The method according to claim 1, wherein said obtaining the target service server corresponding to the target node instance comprises:
    根据所述第一访问请求中的资源数据获取请求查询预设的业务服务表,确定业务服务区;Query a preset business service table according to the resource data acquisition request in the first access request to determine a business service area;
    根据所述业务服务区,确定对应的业务服务器集合;Determine a corresponding set of business servers according to the business service area;
    根据预设的关系列表,确定所述业务服务器集合中与所述目标节点实例对应的目标业务服务器,所述关系列表用于描述节点实例与业务服务器之间的对应关系。According to a preset relationship list, a target service server corresponding to the target node instance in the service server set is determined, and the relationship list is used to describe the corresponding relationship between the node instance and the service server.
  5. 根据权利要求4所述的方法,其中,所述根据预设的关系列表,确定所述业务服务器集合中与所述目标节点实例对应的目标业务服务器前,还包括:The method according to claim 4, wherein, before determining the target business server corresponding to the target node instance in the business server set according to a preset relationship list, the method further comprises:
    接收绑定请求;Receive binding request;
    根据所述绑定请求,确定与各节点实例对应的业务服务器;According to the binding request, determine the business server corresponding to each node instance;
    获取所述业务服务器的IP地址信息;Obtaining the IP address information of the service server;
    根据所述IP地址信息在各所述节点实例上配置IP信息,得到关系列表。Configure IP information on each of the node instances according to the IP address information to obtain a relationship list.
  6. 根据权利要求4所述的方法,其中,所述根据预设的关系列表,确定所述业务服务器集合中与所述目标节点实例对应的目标业务服务器包括:The method according to claim 4, wherein the determining the target service server corresponding to the target node instance in the service server set according to a preset relationship list comprises:
    根据预设的关系列表,确定所述业务服务器集合中与所述目标节点实例对应的候选业务服务器集合;Determine, according to a preset relationship list, a candidate service server set corresponding to the target node instance in the service server set;
    获取所述第一访问请求中的客户端源地址,根据所述客户端源地址以及预设的哈希算法,得到客户端地址值;Acquiring the client source address in the first access request, and obtaining the client address value according to the client source address and a preset hash algorithm;
    根据所述客户端地址值,查询预设的地址列表;Query a preset address list according to the client address value;
    当所述地址列表中存在对应的目标地址值时,根据所述目标地址值,确定与所述目标节点实例对应的目标业务服务器;When a corresponding target address value exists in the address list, determine the target service server corresponding to the target node instance according to the target address value;
    当所述地址列表中不存在对应的目标地址值时,从所述候选业务服务器集合中随机选取业务服务器作为与所述目标节点实例对应的目标业务服务器。When the corresponding target address value does not exist in the address list, a service server is randomly selected from the set of candidate service servers as the target service server corresponding to the target node instance.
  7. 一种资源数据获取的装置,其中,所述装置包括:A device for acquiring resource data, wherein the device includes:
    接收模块,用于接收携带有客户端源地址和目标虚拟IP地址的第一访问请求;The receiving module is configured to receive the first access request carrying the client source address and the target virtual IP address;
    获取模块,用于根据所述目标虚拟IP地址确定目标节点实例,并获取与所述目标节点实例对应的目标业务服务器;An obtaining module, configured to determine a target node instance according to the target virtual IP address, and obtain a target business server corresponding to the target node instance;
    地址映射模块,用于通过所述目标节点实例,根据所述目标虚拟IP地址进行地址映射,得到服务源地址;The address mapping module is configured to perform address mapping according to the target virtual IP address through the target node instance to obtain the service source address;
    发送模块,用于发送携带所述服务源地址的第二访问请求至所述目标业务服务器,所述第二访问请求用于从所述目标业务服务器中获取资源数据;A sending module, configured to send a second access request carrying the service source address to the target service server, where the second access request is used to obtain resource data from the target service server;
    推送模块,用于将所述资源数据发送至所述客户端源地址所指向的终端。The push module is used to send the resource data to the terminal pointed to by the source address of the client.
  8. 根据权利要求7所述的装置,其中,所述接收模块还用于接收创建节点实例请求,根据所述创建节点实例请求中的专有网络参数,确定所需节点实例规格,根据所述所需节点实例规格,创建节点实例。7. The apparatus according to claim 7, wherein the receiving module is further configured to receive a request to create a node instance, determine the required node instance specifications according to the private network parameters in the request to create a node instance, and Node instance specifications, create node instances.
  9. 一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,其中,所述处理器执行所述计算机程序时实现如下步骤:A computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when the processor executes the computer program:
    接收携带有客户端源地址和目标虚拟IP地址的第一访问请求;Receiving the first access request carrying the client source address and the target virtual IP address;
    根据所述目标虚拟IP地址确定目标节点实例,并获取与所述目标节点实例对应的目标业务服务器;通过所述目标节点实例,根据所述目标虚拟IP地址进行地址映射,得到服务源地址;Determine a target node instance according to the target virtual IP address, and obtain a target service server corresponding to the target node instance; through the target node instance, perform address mapping according to the target virtual IP address to obtain a service source address;
    发送携带所述服务源地址的第二访问请求至所述目标业务服务器,所述第二访问请求用于从所述目标业务服务器中获取资源数据;Sending a second access request carrying the service source address to the target service server, where the second access request is used to obtain resource data from the target service server;
    将所述资源数据发送至所述客户端源地址所指向的终端。Sending the resource data to the terminal pointed to by the client source address.
  10. 根据权利要求9所述的计算机设备,其中,所述处理器执行所述计算机程序时,在所述根据所述目标虚拟IP地址确定目标节点实例前,还实现如下步骤:9. The computer device according to claim 9, wherein when the processor executes the computer program, before the target node instance is determined according to the target virtual IP address, the following steps are further implemented:
    接收创建节点实例请求,根据所述创建节点实例请求中的专有网络参数,确定所需节点实例规格;Receiving a request for creating a node instance, and determining the required node instance specifications according to the private network parameters in the request for creating a node instance;
    根据所述所需节点实例规格,创建节点实例。Create a node instance according to the required node instance specifications.
  11. 根据权利要求9所述的计算机设备,其中,所述通过所述目标节点实例,根据所述目标虚拟IP地址进行地址映射,得到服务源地址包括:8. The computer device according to claim 9, wherein said performing address mapping according to said target virtual IP address through said target node instance to obtain a service source address comprises:
    获取内网IP地址;Obtain the intranet IP address;
    通过所述目标节点实例,根据所述内网IP地址对所述目标虚拟IP地址做fullnat,得到服务源地址。Through the target node instance, a fullnat is performed on the target virtual IP address according to the intranet IP address to obtain the service source address.
  12. 根据权利要求9所述的计算机设备,其中,所述获取与所述目标节点实例对应的目标业务服务器包括:The computer device according to claim 9, wherein said obtaining the target service server corresponding to the target node instance comprises:
    根据所述第一访问请求中的资源数据获取请求查询预设的业务服务表,确定业务服务区;Query a preset business service table according to the resource data acquisition request in the first access request to determine a business service area;
    根据所述业务服务区,确定对应的业务服务器集合;Determine a corresponding set of business servers according to the business service area;
    根据预设的关系列表,确定所述业务服务器集合中与所述目标节点实例对应的目标业务服务器,所述关系列表用于描述节点实例与业务服务器之间的对应关系。According to a preset relationship list, a target service server corresponding to the target node instance in the service server set is determined, and the relationship list is used to describe the corresponding relationship between the node instance and the service server.
  13. 根据权利要求12所述的计算机设备,其中,所述处理器执行所述计算机程序时,在所述根据预设的关系列表,确定所述业务服务器集合中与所述目标节点实例对应的目标业务服务器前,还实现如下步骤:The computer device according to claim 12, wherein when the processor executes the computer program, the target service corresponding to the target node instance in the service server set is determined according to the preset relationship list Before the server, the following steps are also implemented:
    接收绑定请求;Receive binding request;
    根据所述绑定请求,确定与各节点实例对应的业务服务器;According to the binding request, determine the business server corresponding to each node instance;
    获取所述业务服务器的IP地址信息;Obtaining the IP address information of the service server;
    根据所述IP地址信息在各所述节点实例上配置IP信息,得到关系列表。Configure IP information on each of the node instances according to the IP address information to obtain a relationship list.
  14. 根据权利要求12所述的计算机设备,其中,所述根据预设的关系列表,确定所述业务服务器集合中与所述目标节点实例对应的目标业务服务器包括:The computer device according to claim 12, wherein the determining the target service server corresponding to the target node instance in the service server set according to a preset relationship list comprises:
    根据预设的关系列表,确定所述业务服务器集合中与所述目标节点实例对应的候选业务服务器集合;Determine, according to a preset relationship list, a candidate service server set corresponding to the target node instance in the service server set;
    获取所述第一访问请求中的客户端源地址,根据所述客户端源地址以及预设的哈希算法,得到客户端地址值;Acquiring the client source address in the first access request, and obtaining the client address value according to the client source address and a preset hash algorithm;
    根据所述客户端地址值,查询预设的地址列表;Query a preset address list according to the client address value;
    当所述地址列表中存在对应的目标地址值时,根据所述目标地址值,确定与所述目标节点实例对应的目标业务服务器;When a corresponding target address value exists in the address list, determine the target service server corresponding to the target node instance according to the target address value;
    当所述地址列表中不存在对应的目标地址值时,从所述候选业务服务器集合中随机选取业务服务器作为与所述目标节点实例对应的目标业务服务器。When the corresponding target address value does not exist in the address list, a service server is randomly selected from the set of candidate service servers as the target service server corresponding to the target node instance.
  15. 一种计算机可读存储介质,其上存储有计算机程序,其中,所述计算机程序被处理器执行时实现如下步骤:A computer-readable storage medium having a computer program stored thereon, wherein the computer program is executed by a processor to implement the following steps:
    接收携带有客户端源地址和目标虚拟IP地址的第一访问请求;Receiving the first access request carrying the client source address and the target virtual IP address;
    根据所述目标虚拟IP地址确定目标节点实例,并获取与所述目标节点实例对应的目标业务服务器;通过所述目标节点实例,根据所述目标虚拟IP地址进行地址映射,得到服务源地址;Determine a target node instance according to the target virtual IP address, and obtain a target service server corresponding to the target node instance; through the target node instance, perform address mapping according to the target virtual IP address to obtain a service source address;
    发送携带所述服务源地址的第二访问请求至所述目标业务服务器,所述第二访问请求用于从所述目标业务服务器中获取资源数据;Sending a second access request carrying the service source address to the target service server, where the second access request is used to obtain resource data from the target service server;
    将所述资源数据发送至所述客户端源地址所指向的终端。Sending the resource data to the terminal pointed to by the client source address.
  16. 根据权利要求15所述的计算机可读存储介质,其中,所述计算机程序被处理器执行时,在所述根据所述目标虚拟IP地址确定目标节点实例前,还实现如下步骤:The computer-readable storage medium according to claim 15, wherein when the computer program is executed by the processor, before the target node instance is determined according to the target virtual IP address, the following steps are further implemented:
    接收创建节点实例请求,根据所述创建节点实例请求中的专有网络参数,确定所需节点实例规格;Receiving a request for creating a node instance, and determining the required node instance specifications according to the private network parameters in the request for creating a node instance;
    根据所述所需节点实例规格,创建节点实例。Create a node instance according to the required node instance specifications.
  17. 根据权利要求15所述的计算机可读存储介质,其中,所述通过所述目标节点实例,根据所述目标虚拟IP地址进行地址映射,得到服务源地址包括:The computer-readable storage medium according to claim 15, wherein said performing address mapping according to said target virtual IP address through said target node instance to obtain a service source address comprises:
    获取内网IP地址;Obtain the intranet IP address;
    通过所述目标节点实例,根据所述内网IP地址对所述目标虚拟IP地址做fullnat,得到服务源地址。Through the target node instance, a fullnat is performed on the target virtual IP address according to the intranet IP address to obtain the service source address.
  18. 根据权利要求15所述的计算机可读存储介质,其中,所述获取与所述目标节点实例对应的目标业务服务器包括:The computer-readable storage medium according to claim 15, wherein said obtaining the target service server corresponding to the target node instance comprises:
    根据所述第一访问请求中的资源数据获取请求查询预设的业务服务表,确定业务服务区;Query a preset business service table according to the resource data acquisition request in the first access request to determine a business service area;
    根据所述业务服务区,确定对应的业务服务器集合;Determine a corresponding set of business servers according to the business service area;
    根据预设的关系列表,确定所述业务服务器集合中与所述目标节点实例对应的目标业务服务器,所述关系列表用于描述节点实例与业务服务器之间的对应关系。According to a preset relationship list, a target service server corresponding to the target node instance in the service server set is determined, and the relationship list is used to describe the corresponding relationship between the node instance and the service server.
  19. 根据权利要求18所述的计算机可读存储介质,其中,所述计算机程序被处理器执行时,在所述根据预设的关系列表,确定所述业务服务器集合中与所述目标节点实例对应的目标业务服务器前,还实现如下步骤:The computer-readable storage medium according to claim 18, wherein, when the computer program is executed by the processor, in the predetermined relationship list, the service server set corresponding to the target node instance is determined Before the target business server, the following steps are also implemented:
    接收绑定请求;Receive binding request;
    根据所述绑定请求,确定与各节点实例对应的业务服务器;According to the binding request, determine the business server corresponding to each node instance;
    获取所述业务服务器的IP地址信息;Obtaining the IP address information of the service server;
    根据所述IP地址信息在各所述节点实例上配置IP信息,得到关系列表。Configure IP information on each of the node instances according to the IP address information to obtain a relationship list.
  20. 根据权利要求18所述的计算机可读存储介质,其中,所述根据预设的关系列表,确定所述业务服务器集合中与所述目标节点实例对应的目标业务服务器包括:The computer-readable storage medium according to claim 18, wherein the determining the target service server corresponding to the target node instance in the service server set according to a preset relationship list comprises:
    根据预设的关系列表,确定所述业务服务器集合中与所述目标节点实例对应的候选业务服务器集合;Determine, according to a preset relationship list, a candidate service server set corresponding to the target node instance in the service server set;
    获取所述第一访问请求中的客户端源地址,根据所述客户端源地址以及预设的哈希算法,得到客户端地址值;Acquiring the client source address in the first access request, and obtaining the client address value according to the client source address and a preset hash algorithm;
    根据所述客户端地址值,查询预设的地址列表;Query a preset address list according to the client address value;
    当所述地址列表中存在对应的目标地址值时,根据所述目标地址值,确定与所述目标节点实例对应的目标业务服务器;When a corresponding target address value exists in the address list, determine the target service server corresponding to the target node instance according to the target address value;
    当所述地址列表中不存在对应的目标地址值时,从所述候选业务服务器集合中随机选取业务服务器作为与所述目标节点实例对应的目标业务服务器。When the corresponding target address value does not exist in the address list, a service server is randomly selected from the set of candidate service servers as the target service server corresponding to the target node instance.
PCT/CN2020/093609 2019-09-18 2020-05-30 Resource data acquisition method and apparatus, computer device and storage medium WO2021051880A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910881900.4A CN110727499B (en) 2019-09-18 2019-09-18 Method, device, computer equipment and storage medium for acquiring resource data
CN201910881900.4 2019-09-18

Publications (1)

Publication Number Publication Date
WO2021051880A1 true WO2021051880A1 (en) 2021-03-25

Family

ID=69219224

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/093609 WO2021051880A1 (en) 2019-09-18 2020-05-30 Resource data acquisition method and apparatus, computer device and storage medium

Country Status (2)

Country Link
CN (1) CN110727499B (en)
WO (1) WO2021051880A1 (en)

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113362196A (en) * 2021-05-31 2021-09-07 广东电网有限责任公司 Low-delay addressing method for pre-dispatching service of power grid monitoring system
CN113434553A (en) * 2021-06-30 2021-09-24 青岛海尔科技有限公司 Method, device, storage medium and computer equipment for acquiring information
CN113572831A (en) * 2021-07-21 2021-10-29 重庆星环人工智能科技研究院有限公司 Communication method between Kubernetes clusters, computer equipment and medium
CN113612851A (en) * 2021-08-11 2021-11-05 山石网科通信技术股份有限公司 Remote connection method and device, storage medium and processor
CN113642924A (en) * 2021-08-30 2021-11-12 北京沃东天骏信息技术有限公司 Service resource matching method and device
CN113672652A (en) * 2021-09-06 2021-11-19 中国银行股份有限公司 Data access method, device, equipment and storage medium
CN113691615A (en) * 2021-08-23 2021-11-23 广联达科技股份有限公司 Service request processing method, system and data gateway
CN113760452A (en) * 2021-08-02 2021-12-07 阿里巴巴新加坡控股有限公司 Container scheduling method, system, equipment and storage medium
CN113904859A (en) * 2021-10-20 2022-01-07 京东科技信息技术有限公司 Security group source group information management method and device, storage medium and electronic equipment
CN114257651A (en) * 2021-12-09 2022-03-29 山石网科通信技术股份有限公司 Request response method, device, network equipment and computer readable storage medium
CN114553823A (en) * 2022-02-28 2022-05-27 联想(北京)有限公司 Access control method and electronic equipment
CN114615237A (en) * 2022-03-22 2022-06-10 阿里巴巴(中国)有限公司 Streaming media communication method, system, device and storage medium
CN114884750A (en) * 2022-07-07 2022-08-09 杭州筋斗腾云科技有限公司 Access processing method, access processing system and computer system
CN114900502A (en) * 2022-05-17 2022-08-12 北京奇艺世纪科技有限公司 Network registration method and device, electronic equipment and readable storage medium
CN115002069A (en) * 2022-06-24 2022-09-02 中国电信股份有限公司 Port mapping method and device, electronic equipment and storage medium
CN115118612A (en) * 2022-05-12 2022-09-27 曙光信息产业股份有限公司 Resource quota management method and device, computer equipment and storage medium
CN115250296A (en) * 2022-06-28 2022-10-28 上海数禾信息科技有限公司 Service identification processing method and device, computer equipment and storage medium
CN115292356A (en) * 2022-07-21 2022-11-04 中电金信软件有限公司 Data query method and device and electronic equipment
CN115408396A (en) * 2022-09-02 2022-11-29 金蝶征信有限公司 Business data storage method and device, computer equipment and storage medium
CN115914102A (en) * 2023-02-08 2023-04-04 阿里巴巴(中国)有限公司 Data forwarding method, flow table processing method, device and system
CN116112306A (en) * 2023-02-08 2023-05-12 广州市保伦电子有限公司 Decentralizing network interaction method, device, equipment and storage medium
CN116527731A (en) * 2023-02-01 2023-08-01 武汉华瑞测智能技术有限公司 Power plant internal and external network communication method, equipment and medium based on network isolation device
CN116594678A (en) * 2023-07-18 2023-08-15 太平金融科技服务(上海)有限公司 Development joint debugging isolation method, device, computer equipment and storage medium
WO2023193631A1 (en) * 2022-04-06 2023-10-12 北京字节跳动网络技术有限公司 Request scheduling method and apparatus, and computer device and storage medium
CN117056028A (en) * 2023-09-25 2023-11-14 之江实验室 Robot simulation platform building method and device, computer equipment and storage medium

Families Citing this family (32)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110727499B (en) * 2019-09-18 2024-05-28 平安科技(深圳)有限公司 Method, device, computer equipment and storage medium for acquiring resource data
CN114846901B (en) * 2020-02-18 2024-05-31 Oppo广东移动通信有限公司 Communication method, device, equipment and storage medium
CN111381985B (en) * 2020-03-09 2023-09-19 中国建设银行股份有限公司 Heterogeneous system data calling method, device, equipment and storage medium
CN111367983B (en) * 2020-03-10 2023-08-15 中国联合网络通信集团有限公司 Database access method, system, device and storage medium
CN111444443B (en) * 2020-03-27 2024-04-16 广州方硅信息技术有限公司 Content pushing server and content pushing method for content service thereof
CN111638977A (en) * 2020-05-16 2020-09-08 中信银行股份有限公司 Data transmission method and system based on mail slot
CN113742050B (en) * 2020-05-27 2023-03-03 华为技术有限公司 Method, device, computing equipment and storage medium for operating data object
CN111930434B (en) * 2020-05-29 2024-04-16 北京视博云信息技术有限公司 Cloud application starting method and device, readable storage medium and equipment
CN111935083B (en) * 2020-06-29 2022-08-09 飞诺门阵(北京)科技有限公司 Business processing method and device, electronic equipment and storage medium
CN111818081B (en) * 2020-07-22 2023-05-23 腾讯科技(深圳)有限公司 Virtual encryption machine management method, device, computer equipment and storage medium
CN112069180B (en) * 2020-09-01 2023-06-23 中国联合网络通信集团有限公司 User data asset management and copy acquisition method and operator network system
CN112153155B (en) * 2020-09-28 2023-03-24 深圳平安智汇企业信息管理有限公司 Service request method, device, computer equipment and medium in server cluster
CN113301005B (en) * 2020-09-29 2022-08-16 阿里云计算有限公司 Data acquisition method and device
CN112364268A (en) * 2020-11-13 2021-02-12 微医云(杭州)控股有限公司 Resource acquisition method and device, electronic equipment and storage medium
CN112565907A (en) * 2020-11-25 2021-03-26 上海连尚网络科技有限公司 Video acquisition method, electronic device and storage medium
CN112689007B (en) * 2020-12-23 2023-05-05 江苏苏宁云计算有限公司 Resource allocation method, device, computer equipment and storage medium
CN112732362B (en) * 2021-01-18 2024-06-11 北京展心展力信息科技有限公司 Method and device for accessing nationwide software resources, electronic equipment and storage medium
CN113010224B (en) * 2021-03-03 2024-01-30 南方电网数字平台科技(广东)有限公司 Front-end micro-servitization method, front-end micro-servitization device, computer equipment and storage medium
CN113067868B (en) * 2021-03-18 2023-03-31 中国平安财产保险股份有限公司 Method, device and computer equipment for maintaining long connection
CN113160010A (en) * 2021-04-22 2021-07-23 北京润尼尔网络科技有限公司 Method and device for acquiring virtual resources and electronic equipment
CN113312144A (en) * 2021-04-29 2021-08-27 青岛盛世影云影视科技有限公司 Data processing method, device, equipment and medium based on child-mother cloud
CN113612841B (en) * 2021-08-02 2023-05-05 北京金山云网络技术有限公司 Task scheduling method, device, computer equipment and storage medium
CN113612866B (en) * 2021-08-04 2023-01-20 北京金山云网络技术有限公司 Address detection method and device, computer equipment and storage medium
CN114095567B (en) * 2021-10-12 2023-12-29 鸬鹚科技(深圳)有限公司 Data access request processing method and device, computer equipment and medium
CN114499935B (en) * 2021-12-17 2023-08-29 阿里巴巴(中国)有限公司 Cloud platform access method, device, equipment and storage medium
CN114389886B (en) * 2022-01-14 2024-03-08 平安科技(深圳)有限公司 Access method, device, equipment and storage medium of virtual private cloud service
CN114726821B (en) * 2022-03-07 2024-07-23 网宿科技股份有限公司 Processing method, processing component and processing system for containerized service component
CN114945012B (en) * 2022-05-31 2024-02-13 济南浪潮数据技术有限公司 Source address conversion communication method, device, equipment and medium
CN115118770B (en) * 2022-06-17 2023-11-03 深信服科技股份有限公司 Data processing method, device and storage medium
CN115379009B (en) * 2022-08-18 2024-04-26 中国建设银行股份有限公司 Data processing method, device, equipment and medium
CN115543635B (en) * 2022-11-28 2023-08-15 成都泰盟软件有限公司 Dynamic adjustment method and device for virtual simulation resources and computer equipment
CN116383127B (en) * 2023-06-01 2023-08-18 苏州浪潮智能科技有限公司 Inter-node communication method, inter-node communication device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106302225A (en) * 2016-10-18 2017-01-04 上海优刻得信息科技有限公司 A kind of method and apparatus of server load balancing
CN107995324A (en) * 2017-12-04 2018-05-04 北京奇安信科技有限公司 A kind of cloud means of defence and device based on tunnel mode
CN108093094A (en) * 2017-12-08 2018-05-29 腾讯科技(深圳)有限公司 Database instance access method, device, system, storage medium and equipment
US20180278526A1 (en) * 2017-03-23 2018-09-27 Fujitsu Limited Address converting device, information processing system, and method of providing service
CN109831468A (en) * 2017-11-23 2019-05-31 北京金山云网络技术有限公司 Load-balancing method, device, electronic equipment and storage medium
CN110727499A (en) * 2019-09-18 2020-01-24 平安科技(深圳)有限公司 Resource data acquisition method and device, computer equipment and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009062504A1 (en) * 2007-11-13 2009-05-22 Tnm Farmguard Aps Secure communication between a client and devices on different private local networks using the same subnet addresses
CN107395496B (en) * 2017-06-16 2020-12-15 腾讯科技(深圳)有限公司 Data forwarding method and device, gateway equipment and storage medium
CN107454155B (en) * 2017-07-25 2021-01-22 北京三快在线科技有限公司 Fault processing method, device and system based on load balancing cluster
CN109451084B (en) * 2018-09-14 2020-12-22 华为技术有限公司 Service access method and device
CN109451088A (en) * 2018-10-30 2019-03-08 新华三大数据技术有限公司 A kind of data access method and device
CN109889621B (en) * 2019-01-18 2021-07-16 北京百度网讯科技有限公司 Configuration method and device of virtual private cloud service

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106302225A (en) * 2016-10-18 2017-01-04 上海优刻得信息科技有限公司 A kind of method and apparatus of server load balancing
US20180278526A1 (en) * 2017-03-23 2018-09-27 Fujitsu Limited Address converting device, information processing system, and method of providing service
CN109831468A (en) * 2017-11-23 2019-05-31 北京金山云网络技术有限公司 Load-balancing method, device, electronic equipment and storage medium
CN107995324A (en) * 2017-12-04 2018-05-04 北京奇安信科技有限公司 A kind of cloud means of defence and device based on tunnel mode
CN108093094A (en) * 2017-12-08 2018-05-29 腾讯科技(深圳)有限公司 Database instance access method, device, system, storage medium and equipment
CN110727499A (en) * 2019-09-18 2020-01-24 平安科技(深圳)有限公司 Resource data acquisition method and device, computer equipment and storage medium

Cited By (39)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113362196B (en) * 2021-05-31 2023-02-21 广东电网有限责任公司 Low-delay addressing method for pre-dispatching service of power grid monitoring system
CN113362196A (en) * 2021-05-31 2021-09-07 广东电网有限责任公司 Low-delay addressing method for pre-dispatching service of power grid monitoring system
CN113434553A (en) * 2021-06-30 2021-09-24 青岛海尔科技有限公司 Method, device, storage medium and computer equipment for acquiring information
CN113572831A (en) * 2021-07-21 2021-10-29 重庆星环人工智能科技研究院有限公司 Communication method between Kubernetes clusters, computer equipment and medium
CN113572831B (en) * 2021-07-21 2024-03-15 重庆星环人工智能科技研究院有限公司 Communication method, computer equipment and medium between Kubernetes clusters
CN113760452A (en) * 2021-08-02 2021-12-07 阿里巴巴新加坡控股有限公司 Container scheduling method, system, equipment and storage medium
CN113760452B (en) * 2021-08-02 2023-09-26 阿里巴巴新加坡控股有限公司 Container scheduling method, system, equipment and storage medium
CN113612851A (en) * 2021-08-11 2021-11-05 山石网科通信技术股份有限公司 Remote connection method and device, storage medium and processor
CN113691615A (en) * 2021-08-23 2021-11-23 广联达科技股份有限公司 Service request processing method, system and data gateway
CN113642924A (en) * 2021-08-30 2021-11-12 北京沃东天骏信息技术有限公司 Service resource matching method and device
CN113672652A (en) * 2021-09-06 2021-11-19 中国银行股份有限公司 Data access method, device, equipment and storage medium
CN113904859A (en) * 2021-10-20 2022-01-07 京东科技信息技术有限公司 Security group source group information management method and device, storage medium and electronic equipment
CN113904859B (en) * 2021-10-20 2024-03-01 京东科技信息技术有限公司 Security group source group information management method and device, storage medium and electronic equipment
CN114257651A (en) * 2021-12-09 2022-03-29 山石网科通信技术股份有限公司 Request response method, device, network equipment and computer readable storage medium
CN114553823A (en) * 2022-02-28 2022-05-27 联想(北京)有限公司 Access control method and electronic equipment
CN114615237A (en) * 2022-03-22 2022-06-10 阿里巴巴(中国)有限公司 Streaming media communication method, system, device and storage medium
CN114615237B (en) * 2022-03-22 2024-03-29 阿里巴巴(中国)有限公司 Streaming media communication method, system, equipment and storage medium
WO2023193631A1 (en) * 2022-04-06 2023-10-12 北京字节跳动网络技术有限公司 Request scheduling method and apparatus, and computer device and storage medium
CN115118612B (en) * 2022-05-12 2024-06-04 曙光信息产业股份有限公司 Resource quota management method, device, computer equipment and storage medium
CN115118612A (en) * 2022-05-12 2022-09-27 曙光信息产业股份有限公司 Resource quota management method and device, computer equipment and storage medium
CN114900502A (en) * 2022-05-17 2022-08-12 北京奇艺世纪科技有限公司 Network registration method and device, electronic equipment and readable storage medium
CN114900502B (en) * 2022-05-17 2024-02-27 北京奇艺世纪科技有限公司 Network registration method, device, electronic equipment and readable storage medium
CN115002069B (en) * 2022-06-24 2023-10-31 中国电信股份有限公司 Port mapping method, device, electronic equipment and storage medium
CN115002069A (en) * 2022-06-24 2022-09-02 中国电信股份有限公司 Port mapping method and device, electronic equipment and storage medium
CN115250296A (en) * 2022-06-28 2022-10-28 上海数禾信息科技有限公司 Service identification processing method and device, computer equipment and storage medium
CN114884750A (en) * 2022-07-07 2022-08-09 杭州筋斗腾云科技有限公司 Access processing method, access processing system and computer system
CN114884750B (en) * 2022-07-07 2022-10-21 杭州筋斗腾云科技有限公司 Access processing method, access processing system and computer system
CN115292356A (en) * 2022-07-21 2022-11-04 中电金信软件有限公司 Data query method and device and electronic equipment
CN115408396B (en) * 2022-09-02 2024-04-05 金蝶征信有限公司 Method, device, computer equipment and storage medium for storing business data
CN115408396A (en) * 2022-09-02 2022-11-29 金蝶征信有限公司 Business data storage method and device, computer equipment and storage medium
CN116527731B (en) * 2023-02-01 2023-09-26 武汉华瑞测智能技术有限公司 Power plant internal and external network communication method, equipment and medium based on network isolation device
CN116527731A (en) * 2023-02-01 2023-08-01 武汉华瑞测智能技术有限公司 Power plant internal and external network communication method, equipment and medium based on network isolation device
CN116112306B (en) * 2023-02-08 2024-02-13 广东保伦电子股份有限公司 Decentralizing network interaction method, device, equipment and storage medium
CN115914102B (en) * 2023-02-08 2023-05-23 阿里巴巴(中国)有限公司 Data forwarding method, flow table processing method, equipment and system
CN116112306A (en) * 2023-02-08 2023-05-12 广州市保伦电子有限公司 Decentralizing network interaction method, device, equipment and storage medium
CN115914102A (en) * 2023-02-08 2023-04-04 阿里巴巴(中国)有限公司 Data forwarding method, flow table processing method, device and system
CN116594678A (en) * 2023-07-18 2023-08-15 太平金融科技服务(上海)有限公司 Development joint debugging isolation method, device, computer equipment and storage medium
CN117056028B (en) * 2023-09-25 2024-01-09 之江实验室 Robot simulation platform building method and device, computer equipment and storage medium
CN117056028A (en) * 2023-09-25 2023-11-14 之江实验室 Robot simulation platform building method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN110727499A (en) 2020-01-24
CN110727499B (en) 2024-05-28

Similar Documents

Publication Publication Date Title
WO2021051880A1 (en) Resource data acquisition method and apparatus, computer device and storage medium
WO2019075978A1 (en) Data transmission method and apparatus, computer device, and storage medium
CN108093094B (en) Database instance access method, device, system, storage medium and equipment
US8463850B1 (en) System and method of algorithmically generating a server side transaction identifier
WO2017114205A1 (en) Short link processing method, device and server
WO2017166513A1 (en) Container technique-based method and system for application service seamless migration
EP3379425A1 (en) Data conversion method and back-up server
US10164902B2 (en) Resource allocation method using cloud API key and apparatus therefor
WO2018201887A1 (en) Data response method, apparatus, terminal device, and medium
US20120240184A1 (en) System and method for on the fly protocol conversion in obtaining policy enforcement information
US10594804B2 (en) Directory service discovery and/or learning
WO2022111313A1 (en) Request processing method and micro-service system
CN108243079B (en) Method and equipment for network access based on VPC
CN111191100B (en) Government information processing method, government information processing device and computer readable storage medium
US11095608B2 (en) Cross protocol association for internet addresses for metadata association systems and methods
US20210042311A1 (en) Dynamic prioritization of attributes to determine search space size of each term, then index on those sizes as attributes
WO2019019670A1 (en) Application accessing method and device, computer apparatus, and storage medium
CN109873839A (en) Method, server and the distributed system of data access
WO2021027115A1 (en) Data synchronization method, device, computer equipment and storage medium
CN113094334A (en) Digital service method, device, equipment and storage medium based on distributed storage
US20170249349A1 (en) Techniques to manage a remote data store for an electronic device
CN113242331A (en) Different types of address translation methods, different types of address translation devices, different types of computer equipment and different types of storage media
WO2017107886A1 (en) Method and device for transmitting data between ip hard disks
CN113301005B (en) Data acquisition method and device
EP3481099B1 (en) Load balancing method and associated device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20864544

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20864544

Country of ref document: EP

Kind code of ref document: A1