CN113407341A - Load object synchronization method and device based on distributed load balancing - Google Patents

Load object synchronization method and device based on distributed load balancing Download PDF

Info

Publication number
CN113407341A
CN113407341A CN202110692258.2A CN202110692258A CN113407341A CN 113407341 A CN113407341 A CN 113407341A CN 202110692258 A CN202110692258 A CN 202110692258A CN 113407341 A CN113407341 A CN 113407341A
Authority
CN
China
Prior art keywords
distributed
load
load balancing
resource information
load object
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110692258.2A
Other languages
Chinese (zh)
Other versions
CN113407341B (en
Inventor
曾炜
吴纯波
陈凌潇
谢晓昕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202110692258.2A priority Critical patent/CN113407341B/en
Publication of CN113407341A publication Critical patent/CN113407341A/en
Application granted granted Critical
Publication of CN113407341B publication Critical patent/CN113407341B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5083Techniques for rebalancing the load in a distributed system

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multi Processors (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention belongs to the technical field of big data, and provides a load object synchronization method and a device based on distributed load balancing, wherein the load object synchronization method based on distributed load balancing comprises the following steps: generating a Key value in the distributed load balancing cluster and the distributed cache according to the load object in the distributed cache; writing the resource information of the application service node into the load object at a preset time interval; and synchronizing the load objects according to the Key values. The invention can reduce the operation risk brought by each individual refreshing configuration of the distributed load balancing equipment, improve the quick reading expansibility of the rear end node of the load balancing equipment and greatly improve the linear expansion of the application load balancing function.

Description

Load object synchronization method and device based on distributed load balancing
Technical Field
The application relates to the technical field of big data, in particular to a load object synchronization method and device based on distributed load balancing.
Background
With the popularization of the mobile internet, the access amount of users is increased explosively, and with the technical development of cloud services, the application services are generally expanded according to access requirements, and with the appearance of a use scene that thousands of application computing nodes can be expanded in a short time. After a large number of back-end application service nodes are expanded as computing resources, requests for accessing the applications need to be scheduled by deploying load balancing equipment, but the load balancing equipment also needs to schedule and process the massive user requests, and a plurality of distributed load balancing equipment form a cluster to process the user requests.
When a plurality of distributed load balancing devices deal with a backend application service node deployed in a backend cloud, that is, deal with scaling of a large amount of computing resources or modification of computing node data, in the prior art, a method for realizing scaling or modification of computing node data by modifying configuration of one load balancing device cannot meet the requirement of cloud deployment, and cannot realize rapid provision of application service resources to users in a short time.
Disclosure of Invention
The invention belongs to the technical field of big data, and aims at the problems in the prior art to provide a method for quickly synchronizing the configuration of distributed load balancing load objects.
In order to solve the technical problems, the invention provides the following technical scheme:
in a first aspect, the present invention provides a load object synchronization method based on distributed load balancing, including:
generating a Key value in the distributed load balancing cluster and the distributed cache according to the load object in the distributed cache;
writing the resource information of the application service node into the load object at a preset time interval;
and synchronizing the load objects according to the Key values.
In an embodiment, the load object synchronization method based on distributed load balancing further includes: providing the resource information of the application service node to the user in real time according to the Key value, wherein the resource information comprises the following steps:
establishing a mapping relation between the Key value and the load object;
and providing the resource information of the application service node to a user in real time according to the mapping relation.
In an embodiment, the providing, in real time, the application service node resource information to the user according to the mapping relationship includes:
and providing the resource information of the application service node to a user in real time according to the mapping relation through the distributed load balancing cluster.
In an embodiment, the writing the resource information of the application service node into the load object at the preset time interval includes:
and writing the resource information of the application service node into the load object through a cloud management platform at the preset time interval.
In a second aspect, the present invention provides a load object synchronization apparatus based on distributed load balancing, including:
the Key value setting module is used for generating a Key value in the distributed load balancing cluster and the distributed cache according to the load object in the distributed cache;
the resource information writing module is used for writing the resource information of the application service node into the load object at a preset time interval;
and the load object synchronization module is used for synchronizing the load object according to the Key value.
In one embodiment, the load object synchronization apparatus based on distributed load balancing further includes: a resource information providing module, configured to provide resource information of the application service node to a user in real time according to the Key value, where the resource information providing module includes:
the mapping relation establishing unit is used for establishing the mapping relation between the Key value and the load object;
and the resource information providing unit is used for providing the resource information of the application service node to the user in real time according to the mapping relation.
In one embodiment, the resource information providing unit includes:
and the cluster forwarding unit is used for providing the application service node resource information to the user in real time according to the mapping relation through the distributed load balancing cluster.
In an embodiment, the resource information writing module is specifically configured to write the resource information of the application service node into the load object through a cloud management platform at the preset time interval.
In a third aspect, the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the load object synchronization method based on distributed load balancing when executing the program.
In a fourth aspect, the present invention provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of a distributed load balancing based load object synchronization method.
As can be seen from the above description, embodiments of the present invention provide a load object synchronization method and apparatus based on distributed load balancing, first, according to a load object in a distributed cache, a Key value is generated in a distributed load balancing cluster and in the distributed cache; then, writing the resource information of the application service node into the load object at a preset time interval; and finally, synchronizing the load object according to the Key value. On one hand, the invention reduces the operation risk caused by each individual refreshing configuration of the distributed load balancing equipment; on the other hand, the quick reading expansibility of the rear end node of the load balancer equipment is improved, and the linear expansion of the application load balancing function is greatly improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a first flowchart illustrating a load object synchronization method based on distributed load balancing according to an embodiment of the present invention;
fig. 2 is a second schematic flowchart of a load object synchronization method based on distributed load balancing in an embodiment of the present invention;
FIG. 3 is a flow chart illustrating a step 400 according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating step 402 according to an embodiment of the present invention;
FIG. 5 is a block diagram of a load object synchronization system based on distributed load balancing according to an embodiment of the present invention;
FIG. 6 is a flowchart of step 200 in an embodiment of the present invention;
fig. 7 is a schematic flowchart of a load object synchronization method based on distributed load balancing according to an embodiment of the present invention;
FIG. 8 is a first block diagram of a load object synchronization apparatus based on distributed load balancing according to an embodiment of the present invention;
FIG. 9 is a second block diagram of a load object synchronization apparatus based on distributed load balancing according to an embodiment of the present invention;
FIG. 10 is a block diagram of a resource information providing module 40 according to an embodiment of the present invention;
FIG. 11 is a block diagram of the resource information providing unit 20 according to the embodiment of the present invention;
fig. 12 is a schematic structural diagram of an electronic device in an embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
It should be noted that the terms "comprises" and "comprising," and any variations thereof, in the description and claims of this application and the above-described drawings, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
The embodiment of the present invention provides a specific implementation manner of a load object synchronization method based on distributed load balancing, and referring to fig. 1, the method specifically includes the following contents:
step 100: and generating a Key value in the distributed load balancing cluster and the distributed cache according to the load object in the distributed cache.
A Key value is shared among distributed load balancing clusters and is synchronized in distributed caches, and the Key value serves as an index and points to a load object stored in a high-availability cache system.
Step 200: and writing the resource information of the application service node into the load object at a preset time interval.
Preferably, through timing setting, in a time period in units of seconds, reading a parameter in a Key value of the distributed cache system as a load object of the load balancing device when scheduling a user access request.
Step 300: and synchronizing the load objects according to the Key values.
Specifically, the computing resource node information applied by the application is written into the Key value of the distributed cache, so that the back-end application service node resource information is shared to all the load balancing devices through the mechanism.
As can be seen from the above description, an embodiment of the present invention provides a load object synchronization method based on distributed load balancing, where first, according to a load object in a distributed cache, a Key value is generated in a distributed load balancing cluster and in the distributed cache; then, writing the resource information of the application service node into the load object at a preset time interval; and finally, synchronizing the load object according to the Key value. On one hand, the invention reduces the operation risk caused by each individual refreshing configuration of the distributed load balancing equipment; on the other hand, the quick reading expansibility of the rear end node of the load balancer equipment is improved, and the linear expansion of the application load balancing function is greatly improved.
In an embodiment, referring to fig. 2, the load object synchronization method based on distributed load balancing further includes:
step 400: providing the resource information of the application service node to the user in real time according to the Key value, with reference to fig. 3, step 400 further includes:
step 401: establishing a mapping relation between the Key value and the load object;
step 402: and providing the resource information of the application service node to a user in real time according to the mapping relation.
In steps 401 and 402, the Key value and the resource condition of the backend application service node are in a mapping relationship, and according to the mapping relationship, the user can read the Key value in real time, so that the resource condition of the backend application service node can be grasped in real time.
In one embodiment, referring to fig. 4, step 402 further comprises:
step 4021: and providing the resource information of the application service node to a user in real time according to the mapping relation through the distributed load balancing cluster.
Referring to fig. 5, a plurality of user requests are sent to the distributed load balancing device cluster, and then the distributed load balancing device cluster reads a Key value from the distributed cache and forwards the Key value to the user, so that the purpose that the user grasps the resource information of the application service node in real time is achieved.
In one embodiment, referring to fig. 6, step 200 further comprises:
step 201: and writing the resource information of the application service node into the load object through a cloud management platform at the preset time interval.
A Cloud Management Platform (CMP) is a product form of an enterprise Cloud strategy first proposed by Gartner. The cloud management platform is a unified management platform for data center resources, and can manage multiple open-source or heterogeneous cloud computing technologies or products, such as cloudstock, OpenStack, Docker, and the like. Specific definitions from Gartner are as follows: a Cloud Management Platform (CMP) is a product that provides integrated management of public, private, and hybrid clouds. The cloud platform comprises the components of infrastructure, resource management, service delivery and access and management of users from the bottom layer to the top layer. The first layer from bottom to top is the infrastructure, that is, the infrastructure of a cloud is formed through virtualization, the infrastructure is not only server virtualization, but also storage virtualization and network virtualization, and various resources can be made into an elastic resource pool by the support of the infrastructure. The second layer above this is the lifecycle management of the resources, in particular the classification of the resources, i.e. into important and non-important, primary or secondary, etc. according to different services (e.g. production, development, testing, production). The third layer above this is to wrap the resources into a service. The resources are like the kitchen of a restaurant, various dishes and various raw materials are arranged in the kitchen, the dishes are required to be combined and fried for customers to enjoy, and the cloud platform is required to provide services for the outside and also to arrange and deliver the services. The portal is positioned at the uppermost layer, which is a part directly touched by the user and is the only thing which is actually visible and touchable by the general user. The four layers jointly form a cloud computing platform. Wherein, except the bottom-most infrastructure, the upper three layers are collectively called as a cloud pipe platform. The cloud management platform is attached to the bottom layer of virtualization and is a part of the cloud platform, and the development of the cloud management platform is consistent with the development of the whole cloud computing.
The tube platform has gone through three generations from the development to today: the first generation is a virtual machine stage, which is mainly the application of a virtual machine; the second generation is IaaS, and is mainly used for monitoring and managing the IaaS; the third generation is a converged cloud service, which is mainly integrated delivery, and not only delivers computing resources, storage resources, network resources, but also basic software, databases, middleware, and also delivers and manages a hybrid cloud. The cloud management platform is independent of IaaS and PaaS, manages resources and environments required by application operation based on cloud API, manages OS environments and applications of application operation in a proxy or non-proxy mode, supports various public cloud private clouds and traditional IT physical machine virtual machines for an infrastructure layer, and supports various architecture applications running on the IaaS or the physical machines. The development trend of the cloud management platform is to change from the original virtual machine-centered mode to the service application-centered mode, and meanwhile, delivered contents tend to be diversified, namely, an IaaS (infrastructure as a service) and later IaaS + or PaaS (infrastructure as a service), any IT-level service can be achieved at present, and meanwhile, managed resources are diversified day by day, namely, not only private clouds but also public clouds including different public clouds. The cloud management platform is a platform tool for fully exerting the advantages of cloud computing characteristics in the cloud era, greatly improving productivity and solving the problem of managing newly added mixed cloud and cloud resources.
Referring to fig. 5, a cloud management platform may be added between the distributed cache and the backend application service node, and the cloud management platform performs expansion and contraction of computing resources and data modification on the backend application service node according to application needs, and writes a change result to load object data in the distributed cache through the same Key value.
As can be seen from the above description, the present invention is a method for synchronizing configurations of objects loaded by a cluster composed of distributed load balancing devices in a distributed load balancing complex network architecture. When a plurality of distributed load balancing devices deal with a large amount of computing resources deployed by a back-end cloud and need to expand or contract or modify computing node data, in the prior art, a method for expanding or contracting or modifying back-end service nodes of each load balancing device is realized by modifying and configuring each load balancing device, so that the requirement of cloud deployment cannot be met, and application service resources cannot be rapidly provided for users in a short time.
The load object synchronization method based on distributed load balancing provided by the embodiment of the invention shares a Key value among clusters by designing a distributed load balancing node cluster, the Key value is used as an index and points to a load object stored in a high-availability cache system, and parameters in the Key value of the cache system are read in a time period taking seconds as a unit through timing setting to be used as the load object when load balancing equipment schedules a user access request. Meanwhile, the cloud management platform for cloud deployment realizes that the cloud deployment resource information is shared to all load balancing devices through the mechanism by writing the computing resource node information applied by the application into the Key value of the distributed cache. Through the method, the clusters formed by the load balancing devices can read the same load object information through the timing mechanism and the Key value index of the clusters, and update the load object information into the configuration of the clusters, so that the configuration synchronization among the load balancing devices in the clusters is realized.
In a specific embodiment, the present invention further provides a specific embodiment of a load object synchronization method based on distributed load balancing.
In this embodiment, a load object synchronization system based on distributed load balancing is also provided, and fig. 5 is a block diagram of the system. As shown in fig. 5, the system includes 1 a distributed load balancing device cluster, 2 a distributed cache, 3 a cloud management platform, and 4 a backend application service node. The invention deploys timing access programs on all 1 distributed load balancing equipment cluster equipment, a Key value is shared among the 1 distributed load balancing equipment cluster equipment, the Key value is used as an index by the equipment of each 1 distributed load balancing equipment cluster, the Key value points to load object data stored in a highly available 2 distributed cache, and parameters in the Key value of the cache system are read in a time period taking seconds as a unit through timing setting in the equipment of the 1 distributed load balancing equipment cluster, and the parameters are used as load objects when the load balancing equipment schedules user access requests. Meanwhile, the 3 cloud management platform performs expansion and contraction of computing resources and data modification on the 4 back-end application service nodes according to application requirements, and writes the change result to the load object data in the 2 distributed caches through the same Key value. Through the method, each device in the cluster formed by the distributed load balancing devices can read the latest successfully-scheduled load object information of the same 3-cloud management platform through the timing mechanism and the Key value index of the device, and update the latest successfully-scheduled load object information into the configuration of the device, so that the configuration synchronization among the load balancing devices in the cluster is realized.
Referring to fig. 7, based on the load object synchronization system based on distributed load balancing, the load object synchronization method based on distributed load balancing provided by this specific application example specifically includes:
s1: and sharing the Key value and accessing the distributed cache program regularly in the distributed load balancing equipment cluster.
S2: and the cloud management platform schedules the application service node resources according to the application requirements, and increases, deletes and changes the computing resources.
S3: and the cloud management platform updates the scheduled node results and writes the node results into the distributed cache.
S4: and each distributed load balancing device reads the node result in the distributed cache.
S5: and the load balancing node updates the node result in the distributed cache to the configuration of the load balancing node and releases the node result.
It can be seen from the above that, in the present invention, by designing a distributed load balancing node cluster, a Key value is shared among the clusters, and this Key value is used as an index to point to a load object stored in a highly available cache system, and by setting at regular time, in a time period taking seconds as a unit, a parameter in the Key value of the cache system is read and used as a load object when the load balancing device schedules a user access request. Meanwhile, the cloud management platform for cloud deployment realizes that the cloud deployment resource information is shared to all load balancing devices through the mechanism by writing the computing resource node information applied by the application into the Key value of the distributed cache. Through the method, the clusters formed by the load balancing devices can read the same load object information through the timing mechanism and the Key value index of the clusters, and update the load object information into the configuration of the clusters, so that the configuration synchronization among the load balancing devices in the clusters is realized.
As can be seen from the above description, embodiments of the present invention provide a load object synchronization method based on distributed load balancing, which relates to the field of distributed load balancing loads in a distributed architecture, and in particular relates to a method for synchronizing load objects, that is, backend application service nodes, among distributed load balancing nodes in a distributed load balancing complex network architecture.
Based on the same inventive concept, the embodiments of the present application further provide a load object synchronization apparatus based on distributed load balancing, which can be used to implement the methods described in the above embodiments, such as the following embodiments. Because the principle of solving the problem of the load object synchronization device based on the distributed load balancing is similar to that of the load object synchronization method based on the distributed load balancing, the implementation of the load object synchronization device based on the distributed load balancing can be implemented by referring to the implementation of the load object synchronization method based on the distributed load balancing, and repeated parts are not described again. As used hereinafter, the term "unit" or "module" may be a combination of software and/or hardware that implements a predetermined function. While the system described in the embodiments below is preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.
An embodiment of the present invention provides a specific implementation manner of a load object synchronization device based on distributed load balancing, which is capable of implementing a load object synchronization method based on distributed load balancing, and referring to fig. 8, the load object synchronization device based on distributed load balancing specifically includes the following contents:
a Key value setting module 10, configured to generate a Key value in the distributed load balancing cluster and the distributed cache according to the load object in the distributed cache;
a resource information writing module 20, configured to write the resource information of the application service node into the load object at preset time intervals;
and a load object synchronization module 30, configured to synchronize the load objects according to the Key values.
In an embodiment, referring to fig. 9, the load object synchronization apparatus based on distributed load balancing further includes: a resource information providing module 40, configured to provide the resource information of the application service node to the user in real time according to the Key value, in an embodiment, referring to fig. 10, the resource information providing module 40 includes:
a mapping relationship establishing unit 401, configured to establish a mapping relationship between the Key value and the load object;
a resource information providing unit 402, configured to provide the application service node resource information to the user in real time according to the mapping relationship.
In one embodiment, referring to fig. 11, the resource information providing unit 20 includes:
and the cluster forwarding unit 201 is configured to provide the application service node resource information to the user in real time according to the mapping relationship by using the distributed load balancing cluster.
In an embodiment, the resource information writing module 20 is specifically configured to write the resource information of the application service node into the load object through the cloud management platform at the preset time interval.
As can be seen from the foregoing description, an embodiment of the present invention provides a load object synchronization apparatus based on distributed load balancing, where first, according to a load object in a distributed cache, a Key value is generated in a distributed load balancing cluster and in the distributed cache; then, writing the resource information of the application service node into the load object at a preset time interval; and finally, synchronizing the load object according to the Key value. On one hand, the invention reduces the operation risk caused by each individual refreshing configuration of the distributed load balancing equipment; on the other hand, the quick reading expansibility of the rear end node of the load balancer equipment is improved, and the linear expansion of the application load balancing function is greatly improved.
An embodiment of the present application further provides a specific implementation manner of an electronic device, which is capable of implementing all steps in the load object synchronization method based on distributed load balancing in the foregoing embodiment, and referring to fig. 12, the electronic device specifically includes the following contents:
a processor (processor)1201, a memory (memory)1202, a communication Interface 1203, and a bus 1204;
the processor 1201, the memory 1202 and the communication interface 1203 complete communication with each other through the bus 1204; the communication interface 1203 is used for implementing information transmission between related devices such as server-side devices and client-side devices;
the processor 1201 is configured to call the computer program in the memory 1202, and the processor executes the computer program to implement all the steps in the load object synchronization method based on distributed load balancing in the foregoing embodiments, for example, the processor executes the computer program to implement the following steps:
step 100: generating a Key value in the distributed load balancing cluster and the distributed cache according to the load object in the distributed cache;
step 200: writing the resource information of the application service node into the load object at a preset time interval;
step 300: and synchronizing the load objects according to the Key values.
Embodiments of the present application further provide a computer-readable storage medium capable of implementing all steps in the load object synchronization method based on distributed load balancing in the foregoing embodiments, where the computer-readable storage medium stores a computer program, and the computer program, when executed by a processor, implements all steps of the load object synchronization method based on distributed load balancing in the foregoing embodiments, for example, when the processor executes the computer program, the processor implements the following steps:
step 100: generating a Key value in the distributed load balancing cluster and the distributed cache according to the load object in the distributed cache;
step 200: writing the resource information of the application service node into the load object at a preset time interval;
step 300: and synchronizing the load objects according to the Key values.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the hardware + program class embodiment, since it is substantially similar to the method embodiment, the description is simple, and the relevant points can be referred to the partial description of the method embodiment.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
Although the present application provides method steps as in an embodiment or a flowchart, more or fewer steps may be included based on conventional or non-inventive labor. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. When an actual apparatus or client product executes, it may execute sequentially or in parallel (e.g., in the context of parallel processors or multi-threaded processing) according to the embodiments or methods shown in the figures.
For convenience of description, the above devices are described as being divided into various modules by functions, and are described separately. Of course, in implementing the embodiments of the present description, the functions of each module may be implemented in one or more software and/or hardware, or a module implementing the same function may be implemented by a combination of multiple sub-modules or sub-units, and the like. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may therefore be considered as a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
The embodiments of this specification may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The described embodiments may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment. In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of an embodiment of the specification. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
The above description is only an example of the embodiments of the present disclosure, and is not intended to limit the embodiments of the present disclosure. Various modifications and variations to the embodiments described herein will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the embodiments of the present specification should be included in the scope of the claims of the embodiments of the present specification.

Claims (10)

1. A load object synchronization method based on distributed load balancing is characterized by comprising the following steps:
generating a Key value in the distributed load balancing cluster and the distributed cache according to the load object in the distributed cache;
writing the resource information of the application service node into the load object at a preset time interval;
and synchronizing the load objects according to the Key values.
2. The method for load object synchronization based on distributed load balancing according to claim 1, further comprising: providing the resource information of the application service node to the user in real time according to the Key value, wherein the resource information comprises the following steps:
establishing a mapping relation between the Key value and the load object;
and providing the resource information of the application service node to a user in real time according to the mapping relation.
3. The method for synchronizing load objects based on distributed load balancing according to claim 2, wherein the providing the resource information of the application service node to the user in real time according to the mapping relationship comprises:
and providing the resource information of the application service node to a user in real time according to the mapping relation through the distributed load balancing cluster.
4. The method for synchronizing load objects based on distributed load balancing according to claim 1, wherein the writing of the resource information of the application service node into the load object at the preset time interval includes:
and writing the resource information of the application service node into the load object through a cloud management platform at the preset time interval.
5. A load object synchronization device based on distributed load balancing is characterized by comprising:
the Key value setting module is used for generating a Key value in the distributed load balancing cluster and the distributed cache according to the load object in the distributed cache;
the resource information writing module is used for writing the resource information of the application service node into the load object at a preset time interval;
and the load object synchronization module is used for synchronizing the load object according to the Key value.
6. The distributed load balancing-based load object synchronization apparatus according to claim 5, further comprising: a resource information providing module, configured to provide resource information of the application service node to a user in real time according to the Key value, where the resource information providing module includes:
the mapping relation establishing unit is used for establishing the mapping relation between the Key value and the load object;
and the resource information providing unit is used for providing the resource information of the application service node to the user in real time according to the mapping relation.
7. The distributed load balancing-based load object synchronization apparatus according to claim 6, wherein the resource information providing unit includes:
and the cluster forwarding unit is used for providing the application service node resource information to the user in real time according to the mapping relation through the distributed load balancing cluster.
8. The load object synchronization device based on distributed load balancing according to claim 5, wherein the resource information writing module is specifically configured to write the application service node resource information into the load object through a cloud management platform at the preset time interval.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the distributed load balancing based load object synchronization method according to any one of claims 1 to 4 when executing the program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the distributed load balancing based load object synchronization method according to any one of claims 1 to 4.
CN202110692258.2A 2021-06-22 2021-06-22 Load object synchronization method and device based on distributed load balancing Active CN113407341B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110692258.2A CN113407341B (en) 2021-06-22 2021-06-22 Load object synchronization method and device based on distributed load balancing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110692258.2A CN113407341B (en) 2021-06-22 2021-06-22 Load object synchronization method and device based on distributed load balancing

Publications (2)

Publication Number Publication Date
CN113407341A true CN113407341A (en) 2021-09-17
CN113407341B CN113407341B (en) 2024-03-22

Family

ID=77682252

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110692258.2A Active CN113407341B (en) 2021-06-22 2021-06-22 Load object synchronization method and device based on distributed load balancing

Country Status (1)

Country Link
CN (1) CN113407341B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202650007U (en) * 2012-05-18 2013-01-02 苏州同程旅游网络科技有限公司 Index synchronous constructing device
CN107515809A (en) * 2017-08-18 2017-12-26 国网山东省电力公司信息通信公司 A kind of elastic telescopic method and system of power system
CN109587062A (en) * 2018-12-07 2019-04-05 北京金山云网络技术有限公司 Load-balancing information synchronous method, apparatus and processing equipment
CN111416875A (en) * 2020-04-10 2020-07-14 中国人民解放军国防科技大学 Service directory synchronization method and system oriented to cloud edge coordination
CN111756780A (en) * 2019-03-27 2020-10-09 厦门网宿有限公司 Method for synchronizing connection information and load balancing system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202650007U (en) * 2012-05-18 2013-01-02 苏州同程旅游网络科技有限公司 Index synchronous constructing device
CN107515809A (en) * 2017-08-18 2017-12-26 国网山东省电力公司信息通信公司 A kind of elastic telescopic method and system of power system
CN109587062A (en) * 2018-12-07 2019-04-05 北京金山云网络技术有限公司 Load-balancing information synchronous method, apparatus and processing equipment
CN111756780A (en) * 2019-03-27 2020-10-09 厦门网宿有限公司 Method for synchronizing connection information and load balancing system
CN111416875A (en) * 2020-04-10 2020-07-14 中国人民解放军国防科技大学 Service directory synchronization method and system oriented to cloud edge coordination

Also Published As

Publication number Publication date
CN113407341B (en) 2024-03-22

Similar Documents

Publication Publication Date Title
CN106506605B (en) SaaS application construction method based on micro-service architecture
US11509713B2 (en) Selection of leader nodes in distributed data services
WO2021147288A1 (en) Container cluster management method, device and system
US9596302B2 (en) Migrating applications between networks
TW202207030A (en) Distributed training method and apparatus of deep learning model
US9338254B2 (en) Service migration across cluster boundaries
CN109032796B (en) Data processing method and device
Convolbo et al. GEODIS: towards the optimization of data locality-aware job scheduling in geo-distributed data centers
CN112905854A (en) Data processing method and device, computing equipment and storage medium
CN105786603A (en) High-concurrency service processing system and method based on distributed mode
CN104754008A (en) Network storage node, network storage system and device and method for network storage node
WO2023207079A1 (en) Method for block state synchronization in blockchain, and first node
CN111258726A (en) Task scheduling method and device
Pujol et al. Scaling online social networks without pains
US8832156B2 (en) Distributed computing management
US20200004861A1 (en) Method and system for implementing parallel database queries
CN113407341B (en) Load object synchronization method and device based on distributed load balancing
CN116991562A (en) Data processing method and device, electronic equipment and storage medium
CN114629958B (en) Resource allocation method, device, electronic equipment and storage medium
Seybold et al. Gibbon: An availability evaluation framework for distributed databases
Chihoub et al. 10 ConsistencyManagement in Cloud Storage Systems
CN114625479A (en) Cloud edge collaborative application management method in edge computing and corresponding device
Cai et al. SMSS: Stateful Model Serving in Metaverse With Serverless Computing and GPU Sharing
CN113641476A (en) Task scheduling method, game engine, equipment and storage medium
US20140372581A1 (en) Systems and methods for stateless management of object properties

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant